You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Alexander Chow (JIRA)" <ji...@apache.org> on 2011/01/20 17:01:44 UTC

[jira] Created: (TIKA-588) MIME detection for iWork documents returns application/zip

MIME detection for iWork documents returns application/zip
----------------------------------------------------------

                 Key: TIKA-588
                 URL: https://issues.apache.org/jira/browse/TIKA-588
             Project: Tika
          Issue Type: Bug
          Components: mime
    Affects Versions: 0.8
            Reporter: Alexander Chow
             Fix For: 0.9
         Attachments: iWork.patch

When using Tika.detect() on iWork files, it always returns application/zip. Although the ZipContainerDetector is called by the CompositeDetector, the iWork mime types (application/vnd.apple.keynote, application/vnd.apple.pages, application/vnd.apple.numbers) are not configured to be subtypes of application/vnd.apple.iwork or application/zip.

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


[jira] Commented: (TIKA-588) MIME detection for iWork documents returns application/zip

Posted by "Alexander Chow (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TIKA-588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987676#action_12987676 ] 

Alexander Chow commented on TIKA-588:
-------------------------------------

Excellent.  Thanks.

> MIME detection for iWork documents returns application/zip
> ----------------------------------------------------------
>
>                 Key: TIKA-588
>                 URL: https://issues.apache.org/jira/browse/TIKA-588
>             Project: Tika
>          Issue Type: Bug
>          Components: mime
>    Affects Versions: 0.8
>            Reporter: Alexander Chow
>             Fix For: 0.9
>
>         Attachments: iWork.patch
>
>
> When using Tika.detect() on iWork files, it always returns application/zip. Although the ZipContainerDetector is called by the CompositeDetector, the iWork mime types (application/vnd.apple.keynote, application/vnd.apple.pages, application/vnd.apple.numbers) are not configured to be subtypes of application/vnd.apple.iwork or application/zip.

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


[jira] Updated: (TIKA-588) MIME detection for iWork documents returns application/zip

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

Alexander Chow updated TIKA-588:
--------------------------------

    Attachment: iWork.patch

Patch file has been attached.

> MIME detection for iWork documents returns application/zip
> ----------------------------------------------------------
>
>                 Key: TIKA-588
>                 URL: https://issues.apache.org/jira/browse/TIKA-588
>             Project: Tika
>          Issue Type: Bug
>          Components: mime
>    Affects Versions: 0.8
>            Reporter: Alexander Chow
>             Fix For: 0.9
>
>         Attachments: iWork.patch
>
>
> When using Tika.detect() on iWork files, it always returns application/zip. Although the ZipContainerDetector is called by the CompositeDetector, the iWork mime types (application/vnd.apple.keynote, application/vnd.apple.pages, application/vnd.apple.numbers) are not configured to be subtypes of application/vnd.apple.iwork or application/zip.

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


[jira] Commented: (TIKA-588) MIME detection for iWork documents returns application/zip

Posted by "Nick Burch (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TIKA-588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987672#action_12987672 ] 

Nick Burch commented on TIKA-588:
---------------------------------

I've tweaked the mimetypes file with your change and a few related ones, thanks for your patch

TestContainerAwareDetector has tests which show that with the container aware detector we detect correctly. 

TestMimeTypes now has a new test which shows we can do it with the filename, but for pure data based you need a container detector

> MIME detection for iWork documents returns application/zip
> ----------------------------------------------------------
>
>                 Key: TIKA-588
>                 URL: https://issues.apache.org/jira/browse/TIKA-588
>             Project: Tika
>          Issue Type: Bug
>          Components: mime
>    Affects Versions: 0.8
>            Reporter: Alexander Chow
>             Fix For: 0.9
>
>         Attachments: iWork.patch
>
>
> When using Tika.detect() on iWork files, it always returns application/zip. Although the ZipContainerDetector is called by the CompositeDetector, the iWork mime types (application/vnd.apple.keynote, application/vnd.apple.pages, application/vnd.apple.numbers) are not configured to be subtypes of application/vnd.apple.iwork or application/zip.

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


[jira] Resolved: (TIKA-588) MIME detection for iWork documents returns application/zip

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

Nick Burch resolved TIKA-588.
-----------------------------

    Resolution: Fixed

> MIME detection for iWork documents returns application/zip
> ----------------------------------------------------------
>
>                 Key: TIKA-588
>                 URL: https://issues.apache.org/jira/browse/TIKA-588
>             Project: Tika
>          Issue Type: Bug
>          Components: mime
>    Affects Versions: 0.8
>            Reporter: Alexander Chow
>             Fix For: 0.9
>
>         Attachments: iWork.patch
>
>
> When using Tika.detect() on iWork files, it always returns application/zip. Although the ZipContainerDetector is called by the CompositeDetector, the iWork mime types (application/vnd.apple.keynote, application/vnd.apple.pages, application/vnd.apple.numbers) are not configured to be subtypes of application/vnd.apple.iwork or application/zip.

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