Bug 20604

Summary: Word document misidentified as ole storage
Product: shared-mime-info Reporter: Sebastien Bacher <seb128>
Component: freedesktop.org.xmlAssignee: Jonathan Blandford <jrb>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: nandhp
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Sebastien Bacher 2009-03-11 09:14:24 UTC
The bug has been opened on https://bugs.launchpad.net/bugs/335081

"The application/x-msi clause in /usr/share/mime/packages/freedesktop.org.xml is misidentifying a Word document as a Windows Installer package.

The file is correctly identified by the "file" command, though I notice the same magic string is in the /usr/share/file/magic file, but commented out due to "False positive with PPT (also currently this string is too long)".

http://launchpadlibrarian.net/23157807/foo
    * Test case (26.0 KiB, application/octet-stream)

I am using Ubuntu Intrepid 8.10, fully up-to-date.

I am attaching a test case (I can't seem to create a document that demonstrates this problem, so I've blacked out the personal information from the one I discovered the bug with)

It appears that the file cannot have a ".doc" extension. I suppose the extension takes precedence over the magic."
Comment 1 Sebastien Bacher 2009-03-11 09:15:34 UTC
it seems to be identified as ole storage in the current version which is still wrong
Comment 2 Sebastien Bacher 2009-03-11 09:18:17 UTC
that's using shared-mime-info 0.60
Comment 3 Bastien Nocera 2009-04-20 09:42:41 UTC
* freedesktop.org.xml.in:
* tests/foo.doc:
* tests/list: And another magic for Word documents, and a test case
(Closes: #20604)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.