Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24410

Batch should not remove blob's files directly

    XMLWordPrintable

    Details

      Description

      When trying to Integrate a BinaryManager with a KeyValueTransientStore using a MemKeyValueStore and Performing the Cleanup Job on a Batch, the `removeFileEntry` specifically removes Blob's Parent directory, which in this case is the LRUFileCache (used by S3BinaryManager) base directory, causing `getTempFile()` call to throw a FileNotFoundException (Base Directory Deleted).

      After discussing this issue with Florent Guillaume and Antoine Taillefer, we concluded that this Logic was added before moving this responsability to the TransientStore itself and it should be removed from the Batch class, since it's a "Business Object" and it should not have any specific implementation.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h