[
https://issues.apache.org/jira/browse/TIKA-1898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15194363#comment-15194363
]
Nick Burch commented on TIKA-1898:
----------------------------------
I've just tried with your test file, and Tika is able to detect the file
correctly with the data only (no filename). That makes me think that the
mimetype is correct:
{code}
$ java -jar tika-app-1.13-SNAPSHOT.jar --detect < test.mif
application/vnd.mif
{code}
Are you able to produce a junit unit test that shows your detection issue, and
ideally shows your proposed patch fixes it? (Bonus marks if it's as a Github
Pull Request or a Patch attached to the JIRA!)
> backslashes in mime-type : application/vnd.mif are wrong
> ---------------------------------------------------------
>
> Key: TIKA-1898
> URL: https://issues.apache.org/jira/browse/TIKA-1898
> Project: Tika
> Issue Type: Bug
> Components: config, core
> Environment: Win64, Eclipse
> Reporter: Steffen Netz
> Priority: Minor
> Labels: easyfix, patch
> Attachments: test.doc, test.fm, test.mif, tika-bug.log
>
>
> In
> tika-core\src\main\resources\org\apache\tika\mime\tika-mimetypes.xml
> there are the lines:
> <match value="\<MakerFile" type="string" offset="0" />
> <match value="\<MIFFile" type="string" offset="0" />
> <match value="\<MakerDictionary" type="string" offset="0" />
> <match value="\<MakerScreenFont" type="string" offset="0" />
> <match value="\<MML" type="string" offset="0" />
> <match value="\<Book" type="string" offset="0" />
> <match value="\<Maker" type="string" offset="0" />
> wrong.
> the backslashes must be removed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)