Bug 10880 - SVG misdetected as general XML document (patch included)
Summary: SVG misdetected as general XML document (patch included)
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-07 14:25 UTC by Sebastian Dröge (slomo)
Modified: 2007-06-27 11:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
debian-blueish-wallpaper.svg (18.31 KB, image/svg+xml)
2007-05-07 14:26 UTC, Sebastian Dröge (slomo)
Details
071_change_svg_tag_range.patch (644 bytes, patch)
2007-05-07 14:27 UTC, Sebastian Dröge (slomo)
Details | Splinter Review

Description Sebastian Dröge (slomo) 2007-05-07 14:25:55 UTC
Hi,
currently shared-mime-info's magic for SVG files has a too small range. Attached is a sample file where it would fail if the extension of the file is not taken into account (i.e. when renaming it to bla instead of bla.svg and running gnomevfs-info --slow-mime bla). The mimetype would be reported as application/xml.

Attached patch fixes this.

Ubuntu Bug: https://bugs.launchpad.net/ubuntu/+source/shared-mime-info/+bug/91331

Bye
Comment 1 Sebastian Dröge (slomo) 2007-05-07 14:26:35 UTC
Created attachment 9895 [details]
debian-blueish-wallpaper.svg
Comment 2 Sebastian Dröge (slomo) 2007-05-07 14:27:08 UTC
Created attachment 9896 [details] [review]
071_change_svg_tag_range.patch
Comment 3 Christian - Manny Calavera - Neumair 2007-06-27 11:41:25 UTC
Thanks, fixed [for some more XML subtypes]. Closing.


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.