Skip to content

Cbor extension - set cbor magic priority to 50 - #44

Closed
LukeLiush wants to merge 2 commits into
apache:trunkfrom
LukeLiush:cborExtension
Closed

Cbor extension - set cbor magic priority to 50#44
LukeLiush wants to merge 2 commits into
apache:trunkfrom
LukeLiush:cborExtension

Conversation

@LukeLiush

Copy link
Copy Markdown

No description provided.

@Gagravarr

Copy link
Copy Markdown
Contributor

Any chance you could explain why this needs to be 50 not 40?

(A unit test which shows the problem would be ideal!)

@LukeLiush

Copy link
Copy Markdown
Author

Thanks @Gagravarr for asking.
please refer to the jira issue in the following link for details.
https://issues.apache.org/jira/browse/TIKA-1610
I believe cbor file is a prettified json, which might take content as its value , the content can be an entire html or xhtml doc. If xhtml is present in the cbor file, then tika will not even bother to look at those type that has priority lower than the xhtml's priority(i.e. 50); i am assigning 50 to cbor in tika-mime-types.xml to have that included in the magic possible list.

@asfgit asfgit closed this in 4fe1fc5 Apr 27, 2015
tballison pushed a commit to tballison/tika that referenced this pull request Feb 26, 2016
git-svn-id: https://svn.apache.org/repos/asf/tika/trunk@1676165 13f79535-47bb-0310-9956-ffa450edef68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants