-
Type:
Service Pack Request
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 4.0.1
-
Fix Version/s: 4.2.1
-
Component/s: Tika, POI, and Metadata Extraction
-
Labels:None
-
Bug Priority:
-
ACT Numbers:
45804
-
Build Location:
[Steps to reproduce]
1) Put mimetypes-extension-map.xml in extension/mimetype/
this file extends Alfresco with 3 new mime types:
∙ application/x-xmind (extension: xmind, xmap)
∙ application/vnd.mindjet.mindmanager (extension: mmap, mmp, mmpt, mmat, mmmp, mmas)
∙ application/bizagi-modeler (extension: bpm)
2)Start Alfresco
3)Send via FTP the attached files to the repository
4) Check the mimetype of the uploaded files on the details properties page on Share
[ Actual Result]
Documents have ZIP mimetype
[Expected result]
Files should have the correct mimetype
[Notes]
∙ If files are uploaded through Share the correct mimetype is visible
∙ Sending the files via FTP org.alfresco.repo.content.MimetypeMap.guessMimetype(String, ContentReader) is invoked
Possible workaround/solution -> add MediaType.APPLICATION_ZIP.equals(type) check:
// If Tika has supplied a very generic type, go with the filename one,
// as it's probably a custom Text or XML format known only to Alfresco
if (MediaType.TEXT_PLAIN.equals(type) || MediaType.APPLICATION_XML.equals(type) || MediaType.APPLICATION_ZIP.equals(type))
- is related to by
-
SHA-123 Mime-type detection is not consistent across the Share and Explorer interfaces
- Open
-
MNT-2336 Files loose mimetype when the filename is changed
- Closed
-
MNT-6978 Alfresco Explorer assigns incorrect mimetype for rss xml files.
- Closed
- relates to
-
MNT-7719 Upgrade of Tika to 1.3-SNAPSHOT
- Closed