You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Andrew Jackson (JIRA)" <ji...@apache.org> on 2012/04/23 16:09:34 UTC

[jira] [Commented] (TIKA-900) Tika fails to detect ISO9660 disk images

    [ https://issues.apache.org/jira/browse/TIKA-900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259615#comment-13259615 ] 

Andrew Jackson commented on TIKA-900:
-------------------------------------

I re-uploaded the patch as it had an extra format that is not necessary for this patch. Also I noticed a typo in my original issue description. The offset should be 32769, not 37633.
                
> Tika fails to detect ISO9660 disk images
> ----------------------------------------
>
>                 Key: TIKA-900
>                 URL: https://issues.apache.org/jira/browse/TIKA-900
>             Project: Tika
>          Issue Type: Bug
>          Components: mime
>    Affects Versions: 1.1
>         Environment: Any.
>            Reporter: Andrew Jackson
>            Priority: Minor
>         Attachments: iso-image-detection.patch
>
>
> I have been testing Tika's ability to identify ISO9660 disk image file systems, and discovered two problems. Firstly, the offset match matcher was wrong (37633 instead of 37633). Secondly, and more seriously, it was impossible for that signaure to ever match, because the default buffer size was far to small. It is currently set to 8KB, and as this signature is some 36KB into the file, Tika could never find the match. The attached patch fixes the magic, and extends the buffer to 64KB.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira