[ https://issues.apache.org/jira/browse/TIKA-1898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15209418#comment-15209418 ]
Nick Burch commented on TIKA-1898: ---------------------------------- Ah, ok, got it. We had a random impenetrable hex string magic too, which turned out to be "<MIFFile " which is what was working for the `test.mif` file. (Another reason to try to avoid hex-encoded magic when plain strings can be used) I've fixed this in c94236a along with a unit test, based on your previously problematic file. Thanks for you help with this! > 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 > Fix For: 1.13 > > 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)