tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Quaranta (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TIKA-940) Support detecting 7-zip format
Date Thu, 21 Jun 2012 08:17:43 GMT
Marco Quaranta created TIKA-940:
-----------------------------------

             Summary: Support detecting 7-zip format
                 Key: TIKA-940
                 URL: https://issues.apache.org/jira/browse/TIKA-940
             Project: Tika
          Issue Type: Improvement
          Components: mime
    Affects Versions: 1.1
            Reporter: Marco Quaranta
            Priority: Minor


Tika now detect 7-zip archive as application/octect-stream.
Adding this fragment in tika-mimetypes.xml registry Tika mime magic detector will correctly
recognize 7z files:

<mime-type type="application/x-7z-compressed">
        <acronym>7zip</acronym>
        <_comment>7-zip archive</_comment>
        <magic priority="50">
            <!-- Magic: '7', 'z', 0xBC, 0xAF, 0x27, 0x1C -->
            <match value="7z" type="string" offset="0:1" >
                <match value="0xBCAF271C" type="string" offset="2:5" />
            </match>           
        </magic>
        <glob pattern="*.7z" />
    </mime-type>




--
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

        

Mime
View raw message