Details
-
Bug
-
Status: Closed
-
High
-
Resolution: Fixed
-
3.2.0
-
None
-
Flagged
-
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
- is a backport of
-
CMS-10040 Regression - ods and odt files are identified as application/zip
- Closed