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

Conversion service does not validate that the underlying file cache entry is present

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 11.1, 2021.0
    • Component/s: Convert
    • Environment:
      Command line converter service, single instance, s3 binary storage, local disk converter storage.
    • Backlog priority:
      700
    • Sprint:
      nxplatform 11.1.28, nxplatform 11.1.29
    • Story Points:
      1

      Description

      Conversion service does not validate that the underlying file cache entry is present.  Conversion fails without any exception, warning, or error until the caller attempts to open the file stream for the blob.

      When the result is retrieved from the cache, the FileBlob is handed back to the caller without any validation that the underlying file is still present:

      https://github.com/nuxeo/nuxeo/blob/4e351e1830fc0dbe1ba19a2eb071aefba92c9113/nuxeo-core/nuxeo-core-convert/src/main/java/org/nuxeo/ecm/core/convert/service/ConversionServiceImpl.java#L335

      The construction of the file blob does not guarantee existence of the file:

      https://github.com/nuxeo/nuxeo/blob/4e351e1830fc0dbe1ba19a2eb071aefba92c9113/nuxeo-core/nuxeo-core-convert/src/main/java/org/nuxeo/ecm/core/convert/cache/SimpleCachableBlobHolder.java#L62

      Something else is removing the converter cache entry, either by TTL or size.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h