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

Fix matching of subconverter's source MIME type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF48, 11.x, 2021.4
    • Component/s: Convert
    • Release Notes Summary:
      Wildcards in MIME types are allowed in chained converter subconverters.
    • Backlog priority:
      750
    • Sprint:
      nxplatform #35
    • Story Points:
      3

      Description

      When a converter is defined as a subconverter (e.g any2pdf in. anyToPdfToThumbnail), the source MIME type is strictly compared (at https://github.com/nuxeo/nuxeo/blob/bd979e3d525420f938ed72b55bc85f0dbeeb6d94/nuxeo-core/nuxeo-core-convert/src/main/java/org/nuxeo/ecm/core/convert/extension/ChainedConverter.java#L85), while pattern matching (at https://github.com/nuxeo/nuxeo/blob/11e9534422dc33b15536016ce129046a5ff07a50/nuxeo-core/nuxeo-core-convert/src/main/java/org/nuxeo/ecm/core/convert/service/ConversionServiceImpl.java#L360) is used when the converter is used as main converter.

      E.g. a blob with MIME type image/png will not be accepted if the subconverter has the sourceMimeType set to image/*.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: