You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "James OConnor (JIRA)" <ji...@apache.org> on 2008/01/24 11:03:43 UTC

[jira] Created: (TIKA-119) Add method in MimeTypes.java fails to add some magics

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.


[jira] Assigned: (TIKA-119) Add method in MimeTypes.java fails to add some magics

Posted by "Chris A. Mattmann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TIKA-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris A. Mattmann reassigned TIKA-119:
--------------------------------------

    Assignee: Chris A. Mattmann

> 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.


[jira] Resolved: (TIKA-119) Add method in MimeTypes.java fails to add some magics

Posted by "Sami Siren (JIRA)" <ji...@apache.org>.
     [ 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.