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

Nick Burch commented on TIKA-1792:
----------------------------------

Luckily these files use the same mimetype storage convention as ODF does, so 
our existing Zip-aware container detector was able to handle them as-is

In r1713677, I've added your test files (thanks!), slightly tweaked mimetype 
entries, and unit tests

> Add ASiC-E and ASiC-S mime types
> --------------------------------
>
>                 Key: TIKA-1792
>                 URL: https://issues.apache.org/jira/browse/TIKA-1792
>             Project: Tika
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.11
>            Reporter: Roberto Benedetti
>            Priority: Minor
>             Fix For: 1.12
>
>         Attachments: report-7.asics, report-8.asice
>
>
> These are the references:
> * 
> [http://www.iana.org/assignments/media-types/application/vnd.etsi.asic-e+zip]
> * 
> [http://www.iana.org/assignments/media-types/application/vnd.etsi.asic-s+zip]
> My {{custom-mimetypes.xml}} is:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <mime-info>
>   <mime-type type="application/vnd.etsi.asic-e+zip">
>     <acronym>ASiC-E</acronym>
>     <_comment>Extended Associated Signature Container</_comment>
>     <magic priority="50">
>       <match value="PK\003\004" type="string" offset="0">
>         <match value="mimetypeapplication/vnd.etsi.asic-e+zip" type="string" 
> offset="30" />
>       </match>
>     </magic>
>     <glob pattern="*.asice" />
>   </mime-type>
>   <mime-type type="application/vnd.etsi.asic-s+zip">
>     <acronym>ASiC-S</acronym>
>     <_comment>Simple Associated Signature Container</_comment>
>     <magic priority="50">
>       <match value="PK\003\004" type="string" offset="0">
>         <match value="mimetypeapplication/vnd.etsi.asic-s+zip" type="string" 
> offset="30" />
>       </match>
>     </magic>
>     <glob pattern="*.asics" />
>   </mime-type>
> </mime-info>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to