Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-10059

[Backport 10.2] - Regression - ods and odt files are identified as application/zip

    XMLWordPrintable

    Details

    • Similar issues:
    • Flagged:
      Flagged
    • Processed by team:
      Tiger

      Description

      Upload a file of type odt in the cms and it will get the type application/zip. This is technically correct but also misleading. Expected is application/vnd.oasis.opendocument.text.

      The underlying issue is that Tika misidentifies this file. It actually does detect the correct type, but has earlier identified it as application/zip and does not see application/vnd.oasis.opendocument.text as a specialization of zip. If the detectors were reversed it would actually return the desired type. This is (arguably) an issue for Tika. Tika is certainly aware of of the odt mime type.

      The previous behavior in Hippo 7.8 used eu.medsea.mimeutil.MimeType but that was also incorrect. However the code at that time explicitly handled this case. When the detected type was application/zip it returned an extension based mime type, which would also work in this case.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jfloor Jasper Floor
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: