tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Burch (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TIKA-658) Support pcap file format
Date Mon, 09 May 2011 16:04:03 GMT

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

Nick Burch commented on TIKA-658:

We can only have one mime type registered with a given extension, which generally is the most
common one. The magic matching is generally the best way to detect though, avoids these issues

> Support pcap file format
> ------------------------
>                 Key: TIKA-658
>                 URL: https://issues.apache.org/jira/browse/TIKA-658
>             Project: Tika
>          Issue Type: Task
>          Components: mime
>            Reporter: Michael Pisula
>            Priority: Trivial
> Currently the Mime checker does not recognize the pcap file format. As I need the recognition
for our project, I added it to the tike-mimetypes.xml:
>   <!-- MIME Type for pcap file format, see http://www.iana.org/assignments/media-types/application/vnd.tcpdump.pcap
>   <mime-type type="application/vnd.tcpdump.pcap">
>     <magic priority="50">
>       <match value="0xa1b2c3d4" type="big32" offset="0" />
>       <match value="0xd4c3b2a1" type="big32" offset="0" />
>     </magic>
>   	<glob pattern="*.pcap"/>
>   	<glob pattern="*.cap"/>
>   	<glob pattern="*.dmp"/>
>   </mime-type>
> *.cap is already used in image/x-raw-phaseone, so I had to comment it out to pass the
tests, but I'm sure there is a better way to deal with the conflict, just did not have the
time to look into it.
> With the configuration above pcap recognition works just fine for me, so I just wanted
to contribute this, in case anyone finds it useful.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message