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

Mime types not being normalised when uploaded through REST API

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.1-SNAPSHOT
    • Fix Version/s: 11.1, 2021.0
    • Component/s: Rest API

      Description

      While trying to address NXP-27091, we found that Blobs uploaded using FileManager.Import get their mime type normalised by default and due to "noMimeTypeCheck" parameter.

      On the other hand, when the Blobs are uploaded using REST API, the mime type is not normalised.
      If, in theory, MimetypeIconUpdater would be the one responsible for the normalisation, it only occurs for very specific situations (please see here).

      It would be interesting to understand which should be the default behaviour, how can we get some coherency on blob uploads and also, how can we handle compatibility because documents with "non normalised" mime types would existing and customers and add-ons may rely on those mime types.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 2 hours
                  2d 2h