Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenDocument formats detection #38

Merged
merged 1 commit into from
Mar 30, 2021

Conversation

valeronm
Copy link
Contributor

@valeronm valeronm commented Mar 30, 2021

Currently OpenDocument files are incorrectly detected as application/zip while the definitions for them are present on tika.xml. This happens because type detection definitions for OpenDocument file types (and some others too) has no priority attribute on magic node in tika.xml file. In this case priority with value 50 should be assumed (related lines in Tika source code) but current code falls back to priority 0 pushing these definitions to the lowest priority. This PR fixes default priority value.

@georgeclaghorn georgeclaghorn merged commit a42089b into rails:main Mar 30, 2021
@valeronm valeronm deleted the opendocument_files_detection branch March 30, 2021 19:06
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