tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Collin Peters (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TIKA-2409) Tar has different mime type by name vs contents
Date Fri, 30 Jun 2017 22:16:00 GMT
Collin Peters created TIKA-2409:
-----------------------------------

             Summary: Tar has different mime type by name vs contents
                 Key: TIKA-2409
                 URL: https://issues.apache.org/jira/browse/TIKA-2409
             Project: Tika
          Issue Type: Bug
          Components: mime
            Reporter: Collin Peters


[TestMimeTypes.java#L360|https://github.com/apache/tika/blob/master/tika-parsers/src/test/java/org/apache/tika/mime/TestMimeTypes.java#L360]
has the following:

{code}
assertTypeByName("application/x-tar",  "test.tar");
assertTypeByData("application/x-gtar",  "test-documents.tar"); // GNU TAR
{code}

The {{tar}} extension is detected as a {{application/x-tar}} by name, but a {{application-x-gtar}}
by contents. This doesn't seem to match up.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message