Add method in MimeTypes.java fails to add some magics
-----------------------------------------------------
Key: TIKA-119
URL: https://issues.apache.org/jira/browse/TIKA-119
Project: Tika
Issue Type: Bug
Components: mime
Affects Versions: 0.2-incubating
Reporter: James OConnor
Priority: Minor
When reading the MimeTypes and creating the internal structures, the add method
in MimeTypes.java fails to add magics for some types to the Magics Treeset in
MimeTypes.java.
I think this is due to the compareTo method in Magic.java returning 0 if the
priority and size values both match, so maybe something different / extra is
required for this test, but am not comfortable enough with the code to suggest
anything yet.
Types that have magics, but fail to insert them are :-
application/vnd.ms-excel
application/vnd.oasis.opendocument.image
application/vnd.oasis.opendocument.image-template
application/vnd.oasis.opendocument.formula
application/vnd.oasis.opendocument.text-master
application/vnd.oasis.opendocument.text-web
and
application/rtf ( but only after I added a magic value to this )
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.