SVG wallpaper identifies as xml document

Bug #91331 reported by Onkar Shinde
2
Affects Status Importance Assigned to Milestone
shared-mime
Fix Released
Medium
shared-mime-info (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gnome-control-center

Using feisty with latest updates.

While changing desktop background/wallpaper, a SVG wallpaper is identified as XML document. In my opinion it should show as SVG wallpaper.

Revision history for this message
Onkar Shinde (onkarshinde) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug, that's fixed with this upload:

 shared-mime-info (0.20-0ubuntu2) feisty; urgency=low
 .
   * debian/patches/071_change_svg_tag_range.patch:
     - change svg tag range, fix wrong Debian wallpaper mimetype listed
       (Ubuntu: #91331)

Changed in control-center:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: Unconfirmed → Fix Released
Revision history for this message
In , Sebastian Dröge (slomo) wrote :

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

Revision history for this message
In , Sebastian Dröge (slomo) wrote :

Created an attachment (id=9895)
debian-blueish-wallpaper.svg

Revision history for this message
In , Sebastian Dröge (slomo) wrote :

Created an attachment (id=9896)
071_change_svg_tag_range.patch

Changed in shared-mime:
status: Unknown → Confirmed
Revision history for this message
In , Christian Neumair (chris-gnome-de) wrote :

Thanks, fixed [for some more XML subtypes]. Closing.

Changed in shared-mime:
status: Confirmed → Fix Released
Changed in shared-mime:
importance: Unknown → Medium
Changed in shared-mime:
importance: Medium → Unknown
Changed in shared-mime:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.