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

Make the FileManagerService use the normalized mime type when matching for FileImporters

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.9.5
    • Component/s: Excel Export

      Description

      Currently it matches only the input Blob mime type: this means we must register in the File Importer all the mime types of a normalised mime type to make it works => duplicated information.

      Matching also the normalised mime type will allow us to:

      • Register all the mime types that are related to photoshop files
        <mimetype normalized="application/photoshop" binary="false" iconPath="image.gif">
         <mimetypes>
           <mimetype>application/photoshop</mimetype>
           <mimetype>application/x-photoshop</mimetype>
           <mimetype>image/photoshop</mimetype>
           <mimetype>image/x-photoshop</mimetype>
           <mimetype>image/psd</mimetype>
           <mimetype>image/x-psd</mimetype>
           <mimetype>image/vnd.adobe.photoshop</mimetype>
           <mimetype>application/psd</mimetype>
           <mimetype>zz-application</mimetype>
           <mimetype>zz-winassoc-psd</mimetype>
         </mimetypes>
         <extensions>
           <extension>psd</extension>
         </extensions>
        </mimetype>
        
      • Add only the application/photoshop mime type in the ImagePlugin:
        <plugin name="Imageplugin"
          class="org.nuxeo.ecm.platform.picture.extension.ImagePlugin"
          order="10">
          ...
          <filter>application/photoshop</filter>
          ...
        </plugin>
        

      This way, all photoshop files, regardless of their specific mime types, will be imported through the ImagePlugin if their mime types are in the first contribution.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: