After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 110958 - content matchers taking precedence over extension matchers
content matchers taking precedence over extension matchers
Status: RESOLVED FIXED
Product: gnome-mime-data
Classification: Deprecated
Component: Default
2.0.x
Other Linux
: Normal major
: GNOME2.x
Assigned To: Seth Nickell
Seth Nickell
Depends on:
Blocks:
 
 
Reported: 2003-04-16 16:41 UTC by Gustavo Carneiro
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4



Description Gustavo Carneiro 2003-04-16 16:41:59 UTC
Ever since I compiled gnome 2.3, some mime types changed:
  .dia and .gnumeric files, when in uncompressed form, are detected as
text/xml.  When these files are compressed, though, they are detected
correctly.
  So, I'm convinced there must be a content matcher that detects text/xml
(which should be application/xml, btw), before any extension matcher is tried.
  This happened in gnome 2.3 only, it was working fine in 2.2.
Comment 1 Alexander Larsson 2003-04-22 07:43:24 UTC
This seems to be caused by a gnome-mime-data change:

2003-04-02  Paolo Maggi  <paolo.maggi@polito.it>
                                                                     
                                                        
        * gnome-vfs-mime-magic: added a simple rule to recognise xml files
                                                                     
                                                        
The addition of this breaks sniffing for all xml based file formats,
and should not have been added.
Comment 2 Gustavo Carneiro 2003-05-01 22:34:10 UTC
  So, can this be fixed?  Isn't it possible to lower the precedence of
that XML detection code, so that filename matchers get a first chance
to match?
Comment 3 Bastien Nocera 2003-05-02 08:02:27 UTC
2003-05-02  Bastien Nocera  <hadess@hadess.net>

	* gnome-vfs-mime-magic: move down the ranking the tests to recognise
	XML files, and move the xml-derived formats above it. This fixes
	detection of uncompressed Dia, Gnumeric and Abiword documents
	(Closes: #110958)
Comment 4 Gustavo Carneiro 2003-05-05 13:20:53 UTC
Bastien, I don't see your ChangeLog entry in gnome-vfs HEAD.  It
hasn't been checked in, has it?  Anyway, thanks for fixing it.
Comment 5 Bastien Nocera 2003-05-05 17:16:19 UTC
Gustavo, this was a bug in gnome-mime-data, not gnome-vfs. It's very
much checked in.
Comment 6 Gustavo Carneiro 2003-05-05 17:28:00 UTC
 Oh, sorry! I didn't realize it was in gnome-mime-data instead of
gnome-vfs.