You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Marco Quaranta (JIRA)" <ji...@apache.org> on 2012/06/21 10:17:43 UTC
[jira] [Updated] (TIKA-940) Support detecting 7-zip format
[ https://issues.apache.org/jira/browse/TIKA-940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marco Quaranta updated TIKA-940:
--------------------------------
Description:
Tika now detects 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>
was:
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>
> 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
> Labels: 7z, 7zip, detection, mime
>
> Tika now detects 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