Summary: | Glob isn't used when parent mimetype has matching magic | ||
---|---|---|---|
Product: | xdgmime | Reporter: | David Faure <faure> |
Component: | xdgmime | Assignee: | Jonathan Blandford <jrb> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
patch for freedesktop.org.xml.in and tests/list
sqlite2.kexi test file |
Description
David Faure
2008-10-17 10:38:12 UTC
Created attachment 19723 [details]
sqlite2.kexi test file
After fixing bug 18072, I'm hitting this bug again, with another case: test-template.dot, 'file' test: expected application/msword-template, got application/x-ole-storage This is because *.dot matches both msword-template and text/vnd.graphviz, so sniffing is used, which finds application/x-ole-storage, which should be used to say "ok, so it was msword-template", NOT to just return application/x-ole-storage as the final result. Please fix the xdgmime implementation. Kexi mimetypes committed. The bug can be seen by the presence of the last 'x' in the lines test-template.dot application/msword-template oxx and in the two kexi lines. But it doesn't matter that much I guess, since Alex Larsson told me that GIO does it right (and KIO does too). It's just a bit strange and confusing that the "reference implementation" would be more buggy than the real-world ones :) Yes, xdgmime does not implement the spec right here, however its not a huge practical problem because the major user of xdgmime (glib) uses the api in such a way that the mimetype detection works out rightly. Fixed in 3c8949ec482. This allows to have correct expected results in shared-mime-info's tests/list, now that other implementations share this test suite to ensure maximum interoperability. |
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.