[
https://issues.apache.org/jira/browse/TIKA-4172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17789647#comment-17789647
]
Tilman Hausherr commented on TIKA-4172:
---------------------------------------
<mime-type type="application/applefile">
<magic priority="50">
<match value="0x00051600" type="string" offset="0"/>
</magic>
</mime-type>
Your file starts with 00 14 64 30.
See also https://www.iana.org/assignments/media-types/application/applefile
No I don't agree, because: what is a "binary" file after all? There is no fixed
definition for this, it's just a file that hasn't been classified.
> Apple binary file incorrectly identified as text/x-sql due to filename
> ----------------------------------------------------------------------
>
> Key: TIKA-4172
> URL: https://issues.apache.org/jira/browse/TIKA-4172
> Project: Tika
> Issue Type: Bug
> Components: general
> Affects Versions: 2.9.1
> Reporter: martin k.
> Priority: Minor
>
> This is related to [https://github.com/eikek/docspell/issues/2376] and
> [https://github.com/eikek/docspell/issues/2403.]
> Take the following Base64 encoding of a binary Apple-generated file. No idea
> what it does. You can get the file by piping the following to e.g. {{base64
> -d > something.sql}}
> {code:java}
> ABRkMDEwMWM2Nl9teVNRTDQwLnNxbAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbUJJTgAA
> AAAAAAAAAAAAAAAAAACCgf+/AAA=
> {code}
> If this file is name {{{}something.sql{}}}, then Tika will classify it as
> {{{}text/x-sql{}}}, which it is not. It seems like more weight is given to
> the filename (extension) than the fact that the file is binary anyway.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)