-
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.
-
Tags:
-
Backlog priority:750
-
Sprint:nxplatform #35
-
Story Points:3
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/*.