tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sami Siren (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (TIKA-119) Add method in MimeTypes.java fails to add some magics
Date Sat, 20 Sep 2008 15:37:46 GMT

     [ https://issues.apache.org/jira/browse/TIKA-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sami Siren resolved TIKA-119.
-----------------------------

    Resolution: Duplicate

> 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
>            Assignee: Chris A. Mattmann
>            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.


Mime
View raw message