Bug 1130693
Summary: | file-libs magic is broken for msooxml | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Arcadiy Ivanov <arcadiy> | ||||
Component: | file | Assignee: | Jan Kaluža <jkaluza> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 20 | CC: | jkaluza, lnie | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | file-5.19-6.fc21 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2014-09-09 22:10:15 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
This is fixed in upstream commit https://github.com/file/file/commit/bf3fea9e6c0b18e9a645d2a796a1e3ae29be5ee5 file-5.19-6.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/file-5.19-6.fc21 file-5.19-6.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/file-5.19-6.fc20 Tested with file-5.19-6.fc20 ,it seems that the bug is still there How did you test it? You should *not* use File as described in Comment 0 with the "magic" and "magic.bak" files from test archive. Instead, just use: file hal-console-2.2.6.Final-overlay.zip (In reply to Jan Kaluža from comment #5) > How did you test it? You should *not* use File as described in Comment 0 > with the "magic" and "magic.bak" files from test archive. Instead, just use: > > file hal-console-2.2.6.Final-overlay.zip Just followed the reproduce steps in com0,and I got exactly the same results. The output is : file hal-console-2.2.6.Final-overlay.zip: hal-console-2.2.6.Final-overlay.zip: Zip archive data, at least v1.0 to extract This looks OK. In the old version, it shows "Microsoft OOXML", in the new version it shows "Zip archive data, at least v1.0 to extract", so the bug seems to be fixed. Package file-5.19-6.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing file-5.19-6.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-10254/file-5.19-6.fc21 then log in and leave karma (feedback). file-5.19-6.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. file-5.19-6.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. |
Created attachment 927325 [details] Original magic, modified magic and test zip archive Description of problem: Due to magic definition for MS OOXML every zip archive I've encountered is detected as MS OOXML. This breaks mc's virtual fs and view functions and who knows what else. Version-Release number of selected component (if applicable): file-libs-5.19-1.fc20.x86_64 How reproducible: Attached is a tar containing three files: hal-console-2.2.6.Final-overlay.zip - test archive that is not OOXML magic - modified magic with OOXML detection commented out magic.bak - original magic from file-libs-5.19-1 Steps to reproduce: Untar TGZ and cd into the directory. Follow examples below. Actual results: # file -m magic.bak hal-console-2.2.6.Final-overlay.zip hal-console-2.2.6.Final-overlay.zip: Microsoft OOXML # file -m magic hal-console-2.2.6.Final-overlay.zip hal-console-2.2.6.Final-overlay.zip: Zip archive data, at least v1.0 to extract Expected results: # file -m magic.bak hal-console-2.2.6.Final-overlay.zip hal-console-2.2.6.Final-overlay.zip: Zip archive data, at least v1.0 to extract # file -m magic hal-console-2.2.6.Final-overlay.zip hal-console-2.2.6.Final-overlay.zip: Zip archive data, at least v1.0 to extract Additional info: None