Bug 11843 - HTML misidentified as mozilla bookmarks file since 0.22
Summary: HTML misidentified as mozilla bookmarks file since 0.22
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: Other All
: medium major
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-04 02:38 UTC by Sebastian Dröge (slomo)
Modified: 2008-06-11 10:44 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Sebastian Dröge (slomo) 2007-08-04 02:38:56 UTC
Hi,
since 0.22 HTML files are misidentified as mozilla bookmark files (application/x-mozilla-bookmarks).

This happens on every HTML file I tested, no matter if I use gnomevfs-info -s or without -s.

This was probably added by:

2007-06-01  Christian Neumair  <cneumair@gnome.org>

	* freedesktop.org.xml.in: Remove "application/x-netscape-bookmarks"
	definition, make "application/x-netscape-bookmarks" an alias for
	"application/x-mozilla-bookmarks". Also associate extensions "*.html"
	and "*.htm" with Mozilla bookmarks. Fixes #266.

Bye


Debian Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=435819
Comment 1 Sebastian Dröge (slomo) 2007-08-14 14:31:32 UTC
Reverting that change fixes it btw...
Comment 2 D Bera 2007-10-20 18:13:04 UTC
This change is going to badly affect the desktop indexers which rely on shared-mime-info. Any update ?
Comment 3 Sebastian Dröge (slomo) 2007-10-21 03:29:01 UTC
Doesn't look like someone reads this bugreport or cares ;)
IMHO for now that change should simply be reverted until a real solution is found...
Comment 4 Bastien Nocera 2007-10-22 07:03:20 UTC
Being able to differentiate 2 mime-types with the same suffix isn't implemented in gnome-vfs or KDE yet (see discussions on the xdg list between David Faure and Alex Larsson). So I'm reverting the patch for now, but leaving this open for when do we have the ability to differentiate them.

2007-10-22  Bastien Nocera  <hadess@hadess.net>

        * freedesktop.org.xml.in: Revert associating *.htm and *.html to 
        mozilla bookmarks as the mime systems don't look at magic yet to
        choose the right mime type (Helps: #11843)
        * tests/: add another feed for testing
Comment 5 D Bera 2007-10-22 08:10:20 UTC
> Being able to differentiate 2 mime-types with the same suffix isn't 
> implemented
> in gnome-vfs or KDE yet (see discussions on the xdg list between David Faure
> and Alex Larsson). So I'm reverting the patch for now, but leaving this open
> for when do we have the ability to differentiate them.

Thanks. Unfortunately, I could not find any information on how to do the "same suffix" thing correctly. David's and Alex's discussion seems to talk about more changes to the spec to handle this but is there anything in the spec currently that allows us to do this correctly ? I asked this here before:
http://lists.freedesktop.org/archives/xdg/2007-October/008944.html
Comment 6 Darren Kenny 2008-05-26 02:43:01 UTC
Why are the bookmarks.htm(l) file being generically matched with simply .html or .htm?

I could be mistaken, but I don't think I've ever seen the bookmarks file called anything but bookmarks.htm(l) - surely using that specific name is the more correct thing to do right now than using simply *.htm(l).

Comment 7 Bastien Nocera 2008-06-11 10:44:33 UTC
If the application has special handling for Mozilla bookmarks files, then it can read the file and match it with magic. I don't think that the mime-type is of any use personally, but I'll leave it there as is, as it doesn't hurt.

The original bug is fixed.


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.