-
Notifications
You must be signed in to change notification settings - Fork 67
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
ZIP archive misidentified as video/x-ms-wmv #77
Comments
Here's my workaround for now, added to an initializer. if Marcel::MimeType.for("PK\03\04wmv2") == 'video/x-ms-wmv'
Marcel::Magic.remove('video/x-ms-wmv')
end |
Just been bitten by this for a PDF as well - looking at the definition here it seems like that any instance of the string Lines 7701 to 7715 in 8e28563
Seems wildly broad as a magic string but I think the issue is the Tika rule is designed to match a codec type so would only apply in the context of a file ending in |
I have a valid ZIP archive that happens to include the bytes
wmv2
in the first four kilobytes. Active Storage misidentifies the file as Windows Media Video. When scanning over such a broad range of bytes, WMV magic needs a lower priority than other matches.The text was updated successfully, but these errors were encountered: