You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Nick Burch (JIRA)" <ji...@apache.org> on 2011/05/10 16:27:47 UTC

[jira] [Resolved] (TIKA-658) Support pcap file format

     [ https://issues.apache.org/jira/browse/TIKA-658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Burch resolved TIKA-658.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 1.0

> 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
>             Fix For: 1.0
>
>
> 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