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

Default mimetype value must be application/octet-stream when uploading a file with an unknown mimetype

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0-HF15
    • Fix Version/s: 6.0-HF18
    • Component/s: Core

      Description

      When uploading a file with an unknown mimetype in the platform, the default mimetype property value is set to '???' that breaks the webengine blob download api

      <host>/nuxeo/site/api/v1/id/{docuid}/@blob/file:content

      because we try to set this mimetype in the response header (see attached log).

      [org.nuxeo.ecm.webengine.app.WebEngineExceptionMapper] Exception in JAX-RS processing
      java.lang.IllegalArgumentException: Error parsing media type '???'

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: