[jira] Created: (TIKA-258) AutoDetectParser does not allow to use alternative mime detector

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (TIKA-258) AutoDetectParser does not allow to use alternative mime detector

JIRA jira@apache.org
AutoDetectParser does not allow to use alternative mime detector
----------------------------------------------------------------

                 Key: TIKA-258
                 URL: https://issues.apache.org/jira/browse/TIKA-258
             Project: Tika
          Issue Type: Bug
    Affects Versions: 0.4
            Reporter: Maxim Valyanskiy


There is no way to use other mime-detector in AutoDetectParser since setMimeTypes method accepts only final class MimeTypes. Trivial patch that solved this is attached.

Alternative mime-detector is required to workaround TIKA-257 bug

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (TIKA-258) AutoDetectParser does not allow to use alternative mime detector

JIRA jira@apache.org

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

Maxim Valyanskiy updated TIKA-258:
----------------------------------

    Attachment: mimedetector.patch

Patch

> AutoDetectParser does not allow to use alternative mime detector
> ----------------------------------------------------------------
>
>                 Key: TIKA-258
>                 URL: https://issues.apache.org/jira/browse/TIKA-258
>             Project: Tika
>          Issue Type: Bug
>    Affects Versions: 0.4
>            Reporter: Maxim Valyanskiy
>         Attachments: mimedetector.patch
>
>
> There is no way to use other mime-detector in AutoDetectParser since setMimeTypes method accepts only final class MimeTypes. Trivial patch that solved this is attached.
> Alternative mime-detector is required to workaround TIKA-257 bug

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (TIKA-258) AutoDetectParser does not allow to use alternative mime detector

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Jukka Zitting resolved TIKA-258.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 0.4
         Assignee: Jukka Zitting

Good idea, thanks! I committed a slightly modified version of the patch in revision 793410. I renamed the MimeTypes field and related methods to better reflect that only the Detector functionality is used. Also added some simple javadocs.

> AutoDetectParser does not allow to use alternative mime detector
> ----------------------------------------------------------------
>
>                 Key: TIKA-258
>                 URL: https://issues.apache.org/jira/browse/TIKA-258
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 0.4
>            Reporter: Maxim Valyanskiy
>            Assignee: Jukka Zitting
>             Fix For: 0.4
>
>         Attachments: mimedetector.patch
>
>
> There is no way to use other mime-detector in AutoDetectParser since setMimeTypes method accepts only final class MimeTypes. Trivial patch that solved this is attached.
> Alternative mime-detector is required to workaround TIKA-257 bug

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (TIKA-258) AutoDetectParser does not allow to use alternative mime detector

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Jukka Zitting updated TIKA-258:
-------------------------------

    Component/s: parser

> AutoDetectParser does not allow to use alternative mime detector
> ----------------------------------------------------------------
>
>                 Key: TIKA-258
>                 URL: https://issues.apache.org/jira/browse/TIKA-258
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 0.4
>            Reporter: Maxim Valyanskiy
>            Assignee: Jukka Zitting
>             Fix For: 0.4
>
>         Attachments: mimedetector.patch
>
>
> There is no way to use other mime-detector in AutoDetectParser since setMimeTypes method accepts only final class MimeTypes. Trivial patch that solved this is attached.
> Alternative mime-detector is required to workaround TIKA-257 bug

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.