You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2012/10/31 17:49:12 UTC

[jira] [Updated] (TIKA-953) Tika failed to recognize non-ustar Tar file?

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

Michael McCandless updated TIKA-953:
------------------------------------

    Attachment: test2.tar

"file" reports this as a tar archive, but:
{noformat}
cat test2.tar | java -jar tika-app/target/tika-app-1.3-SNAPSHOT.jar --detect
{noformat}
says application/octet-stream.

I created the tar file with 7z:
{noformat}
7z a -ttar test2.tar New\ Text\ Document.txt 
{noformat}
                
> Tika failed to recognize non-ustar Tar  file?
> ---------------------------------------------
>
>                 Key: TIKA-953
>                 URL: https://issues.apache.org/jira/browse/TIKA-953
>             Project: Tika
>          Issue Type: Bug
>          Components: mime
>    Affects Versions: 1.1
>            Reporter: Jing Li
>             Fix For: 1.2
>
>         Attachments: test2.tar, test.tar
>
>
> The file type indeed is "POSIX tar archive (GNU)" when I use command "file" in linux, but Tika recognize it as "application/xhtml+xml".  The class I used with is DefaultDetector. 
> Below is the head data of the file:
> 99, 102, 101, 114, 98, 114, 97, 99, 104, 101, 46, 48, 48, 54, 55, 54, 50, 55, 57, 45, 53, 54, 54, 55, 50, 52, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 48, 48, 48, 55, 48, 48, 0, 48, 48, 48, 48, 48, 48, 48, 0, 48, 48, 48, 48, 48, 48, 48, 0, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 0, 49, 49, 55, 55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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,... 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira