The OpenOffice.org mime types defined in freedesktop.org.xml don't specify the mime magic. Please apply the attached patch to add them.
Created attachment 2349 [details] [review] This patch adds the mime magic for OpenOffice.org and OpenDocument file types
I just stumbled over the problem with OOo 1.x Documents & Templates having the same mime magic. Should the templates become a sub-class of the documents ?
*** Bug 3145 has been marked as a duplicate of this bug. ***
Bug 3145 contained information that seemed to match the magic used in the patch. I've asked Caolan McNamara to double-check that it was spec'ed to have that string at that position in the file. If you're able to provide proof that this is the case, please feel free to add it to this bug.
See Chapter 17.4 of http://www.oasis-open.org/committees/download.php/12572/OpenDocument-v1.0-os.pdf
Oops, I didn't notice this bug so I filed bug #10100. Although, my patch (about the OpenDocument mimetypes only) is a bit better, as the magic matching is quite more precise (exact sequence of matching within the ZIP archive).
I'm marking this one as a duplicate of bug 10100 since Pino's patch is indeed better. *** This bug has been marked as a duplicate of bug 10100 ***
Thanks for your efforts though, Oliver! :)
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.