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

Fix wildcard behavior in sourceMimeType

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.10, 11.x
    • Fix Version/s: 10.10-HF51, 11.x, 2021.7
    • Component/s: Convert
    • Release Notes Summary:
      Image blobs can be exported to PDF.
    • Backlog priority:
      800
    • Sprint:
      nxplatform #40
    • Story Points:
      3

      Description

      Something funny happened with the change in NXP-30402

      When converting sourceMimeType image/tiff we need to match 'image/tiff' and 'image/*'. There are two converters in nuxeo-thumbnail for image/tiff (pdfAndImageToThumbnail and anyToThumbnail) and there is a converter for 'image/*' in nuxeo-platform-convert called  image2pdf

      In MimeTypeTranslationHelper the 'image/tiff' converters are fetched and placed in cos.

      This causes the converter with image/* to be skipped because cos is not empty. The end result is that no image can be exported as a PDF from the Web UI.

      The algorithm should be reworked to return converters matching the specific mime type and the wildcard. 

       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: