invalid MIME type in /usr/share/applications/gnumeric.desktop

Bug #570836 reported by Laurent Bonnaud
30
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Gnumeric
Fix Released
Medium
desktop-file-utils
Confirmed
Medium
gnumeric (Debian)
Fix Released
Unknown
gnumeric (Fedora)
Fix Released
Medium
gnumeric (Mandriva)
Fix Released
Medium
gnumeric (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: gnumeric

Here is the problem:

# update-desktop-database
[...]
Error in file "/usr/share/applications/gnumeric.desktop": "zz-application/zz-winassoc-xls" is an invalid MIME type ("zz-application" is an unregistered media type)

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: gnumeric-common 1.10.1-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic-pae 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic-pae i686
NonfreeKernelModules: fglrx
Architecture: i386
Date: Tue Apr 27 19:04:03 2010
Dependencies:

EcryptfsInUse: Yes
PackageArchitecture: all
SourcePackage: gnumeric

Revision history for this message
In , Michal (michal-redhat-bugs) wrote :

Description of problem:

The following is reported during an installation:

Error in file "/usr/share/applications/fedora-gnumeric.desktop": "zz-application/zz-winassoc-xls" is an invalid MIME type ("zz-application" is an unregistered media type)

This is likely an old entry but something started to care.

Version-Release number of selected component (if applicable):
gnumeric-1.10.0-1.fc14

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :
Revision history for this message
Lorenzo De Liso (blackz) wrote :

I can reproduce that.

Changed in gnumeric (Ubuntu):
status: New → Confirmed
Lorenzo De Liso (blackz)
Changed in gnumeric (Ubuntu):
importance: Undecided → Low
Revision history for this message
Charlie Kravetz (charlie-tca) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in gnumeric (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

This bug is fixed in Mandriva.

Changed in gnumeric (Ubuntu):
status: Incomplete → Confirmed
Changed in gnumeric (Mandriva):
status: Unknown → Fix Released
Changed in gnumeric:
status: Unknown → New
Changed in gnumeric:
status: New → Incomplete
Changed in gnumeric:
status: Incomplete → Won't Fix
Revision history for this message
In , Bug (bug-redhat-bugs) wrote :

This bug appears to have been reported against 'rawhide' during the Fedora 14 development cycle.
Changing version to '14'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Revision history for this message
In , Dave (dave-redhat-bugs) wrote :

This bug also affects Fedora 13 (gnumeric-1.10.0-1.fc13.i686)
and earlier releases

Revision history for this message
In , Julian (julian-redhat-bugs) wrote :

*** Bug 587620 has been marked as a duplicate of this bug. ***

Changed in gnumeric:
importance: Unknown → Medium
Revision history for this message
In , M (m-redhat-bugs) wrote :

The problem is in the checker, not in Gnumeric.

"zz-application/zz-winassoc-xls" is real mime type. See, for example,
http://filetonic.com/blog/tag/file-extension/. It is unregistered and
probably violates a spec or two somewhere, but it is real. When the
spec and reality disagree, the spec is due for service.

Upstream bug is here https://bugzilla.gnome.org/show_bug.cgi?id=619303
I am not sure why it is WONTFIX as opposed to NOTABUG.

Revision history for this message
In , Michal (michal-redhat-bugs) wrote :

(In reply to comment #4)
> The problem is in the checker, not in Gnumeric.
....
> I am not sure why it is WONTFIX as opposed to NOTABUG.

It is clearly a BUG. Maybe not that crucial after all but it is there. Where and how it should be fixed is another question.

Revision history for this message
Charlie Kravetz (charlie-tca) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please answer these questions:

* What specific steps should we take to recreate this bug?
* What effect does this have on using Gnumeric? Is it simply an annoying warning at some time?

This will help us to find and resolve the problem.

Changed in gnumeric (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote : Re: [Bug 570836] Re: invalid MIME type in /usr/share/applications/gnumeric.desktop

On Wed, 2011-01-12 at 14:56 +0000, Charlie Kravetz wrote:

> * What specific steps should we take to recreate this bug?

Run update-desktop-database as root.

> * What effect does this have on using Gnumeric? Is it simply an
> annoying warning at some time?

Just an annoying warning at install time, not only for Gnumeric but for
all packages whose postinst script runs update-desktop-database.

--
Laurent Bonnaud.
http://www.lis.inpg.fr/pages_perso/bonnaud/

Changed in gnumeric (Ubuntu):
status: Incomplete → Confirmed
Changed in gnumeric (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
In , Julian (julian-redhat-bugs) wrote :
Revision history for this message
In , Julian (julian-redhat-bugs) wrote :

Similar to 587566.

Changed in gnumeric (Mandriva):
importance: Unknown → Medium
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

This bug is still in oneiric in this package version:

Package: gnumeric
Version: 1.10.17-1ubuntu1

Revision history for this message
In , Hans de Goede (j-w-r-degoede) wrote :

update-desktop-database complains about mime-types starting with zz-application, for example on a system with gnumeric installed:

Error in file "/usr/share/applications/fedora-gnumeric.desktop": "zz-application/zz-winassoc-xls" is an invalid MIME type ("zz-application" is an unregistered media type)

gnumeric upstream refuses to fix this, see:
https://bugzilla.gnome.org/show_bug.cgi?id=619303

I believe they are right in refusing to fix this, the zz-application/zz-winassoc-* mime-types, although not standards compliant, are widely used out there, see for example:
http://publib.boulder.ibm.com/infocenter/p8docs/v4r5m1/index.jsp?topic=%2Fcom.ibm.p8.doc%2Fadmin%2Fpublishing%2Fpub_supported_gold_list.htm
http://www.forensicswiki.org/wiki/Word_Document_%28DOC%29
https://packetprotector.org/trac/browser/USB_dir_2.x/trunk/packetprotector/etc/dansguardian/lists/downloadmanagers/managedmimetypelist?rev=268

zz-application/zz-winassoc-* can thus be encountered in http / email mime headers in the wild. Thus it makes sense for applications who can handle them to specify so in their .desktop file.

I suggest adding zz-application to the known_fdo_media_types array like this was done with the chemical media type. The fact that currently desktop-file-utils warns over this each time a package post installation script runs update-desktop-database is very annoying. So annoying that almost all distros have a bug for tracking this, and if you google for zz-winassoc-xls the first 7 hits are all bugreports about this.

If you agree that zz-application should be added to the known_fdo_media_types array I'll happily provide a patch for this.

Thanks,

Hans

Revision history for this message
In , Vincent Untz (vuntz) wrote :

Sure, patch welcome :-)

Revision history for this message
In , Vincent Untz (vuntz) wrote :

Btw, I realize we mark zz-application/zz-winassoc-cdr as discouraged. This might be a good approach too for zz-application/zz-winassoc-xls and others (although I understand the argument that this mime type might be referenced in old mails)

Revision history for this message
In , Hans (hans-redhat-bugs) wrote :

I've filed a bug upstream for this:
https://bugs.freedesktop.org/show_bug.cgi?id=41286

Revision history for this message
In , Hans de Goede (j-w-r-degoede) wrote :

Created attachment 51795
PATCH: mimeutils: deal with various zz-application/zz-winassoc-XXX mime types

Hi,

(In reply to comment #2)
> Btw, I realize we mark zz-application/zz-winassoc-cdr as discouraged. This
> might be a good approach too for zz-application/zz-winassoc-xls and others
> (although I understand the argument that this mime type might be referenced in
> old mails)

I've been thinking a bit about this. I think discouraging them is the right thing to do in general. But for types which apps really want to claim for interoperability reasons, and thus consciously claim like gnumeric upstream refusing to stop using zz-application/zz-winassoc-xls, discouraging them does not help.

Discouraging these will still cause update-desktop-database to complain, which as experience shows (see google results for zz-application/zz-winassoc-xls), leads to lots of bugreports for all distributions.

So I've come up with a patch which makes mimeutils deal with this in 2 different ways:
1) For the "popular" ones (doc and xls) simply accept them
2) For the others, advice the standard mime type for these files

I hope this is an acceptable solution. If it is the patch is git format-patch output, so all you need to do is git am it :)

Regards,

Hans

Revision history for this message
In , Vincent Untz (vuntz) wrote :

I've been thinking about this again. We probably need to update shared-mime-info to have all the aliases you added here, as well as aliases for zz-application/zz-winassoc-doc and zz-application/zz-winassoc-xls.

And once we get those last two aliases, I'm actually unsure we need to put those two as exceptions -- I would think that our mime stack would be clever enough to think: "want to open zz-application/zz-winassoc-xls, which is an alias to application/vnd.ms-excel, so want to open application/vnd.ms-excel".

What do you think?

Revision history for this message
In , Hans de Goede (j-w-r-degoede) wrote :

(In reply to comment #4)
> I've been thinking about this again. We probably need to update
> shared-mime-info to have all the aliases you added here, as well as aliases for
> zz-application/zz-winassoc-doc and zz-application/zz-winassoc-xls.
>

That sounds like a good idea.

> And once we get those last two aliases, I'm actually unsure we need to put
> those two as exceptions -- I would think that our mime stack would be clever
> enough to think: "want to open zz-application/zz-winassoc-xls, which is an
> alias to application/vnd.ms-excel, so want to open application/vnd.ms-excel".
>
> What do you think?

I think that wrt "our mime stack would be clever enough", that the proof is in the pudding. IOW we need to make sure that is the case (and then convince the gnumeric people of this and that since the alias is now in shared-mime-info, that they can drop it from their desktop file).

I've no idea how to quickly / easily test this though, and I don't have a lot of time to spend on this. So I would like to move forward with my latest patch for now, I'll also do a patch for shared-mime-info, and then maybe later we can see if the aliases can be removed from desktop files since our mime infra takes care of it.

Revision history for this message
In , Vincent Untz (vuntz) wrote :

Hans: first, thanks for your time :-)

So I checked our mime system is sane:

 - application/x-wordperfect is an alias for application/vnd.wordperfect

 - $ grep -rl application/x-wordperfect /usr/share/applications/
   $

 - $ grep -rl application/vnd.wordperfect /usr/share/applications/
   /usr/share/applications/defaults.list
   /usr/share/applications/writer.desktop
   /usr/share/applications/mimeinfo.cache

 - $ gvfs-mime --query application/x-wordperfect
   Default application for 'application/x-wordperfect': writer.desktop
   Registered applications:
           writer.desktop

So it works as expected. I'll talk to the gnumeric people.

Changed in desktop-file-utils:
importance: Unknown → Medium
status: Unknown → Confirmed
Changed in gnumeric:
status: Won't Fix → New
Revision history for this message
In , Vincent Untz (vuntz) wrote :

I committed your patch, and then changed them all to aliases. This depends on the following bugs in shared-mime-info to work really properly, though: bug 41989, bug 41708, bug 36036, bug 41680, bug 41684.

Revision history for this message
Andreas J Guelzow (aguelzow) wrote :

See the related https://bugs.freedesktop.org/show_bug.cgi?id=41286#c6 Gnumeric will adjust its mime types when the patch from that becomes common in distributions.

Revision history for this message
In , Cristian (cristian-redhat-bugs) wrote :

gnumeric-1.10.17-1.fc16.x86_64 is affected, too.

Changed in gnumeric:
status: New → Confirmed
Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

This message is a notice that Fedora 14 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 14. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 14 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Revision history for this message
In , Cristian (cristian-redhat-bugs) wrote :

Fixed in gnumeric-1.11.5-1.fc17.x86_64.

Changed in gnumeric (Debian):
status: Unknown → New
Changed in gnumeric (Debian):
status: New → Fix Released
Revision history for this message
Jeremy Bícha (jbicha) wrote :

Closing per the following comment on Debian bug:

This problem was fixed with specification update recently accommodated
by "desktop-file-utils" package.

Thank you for reporting the bug, which will now be closed.

Changed in gnumeric (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
In , Laurent Bonnaud (laurent-bonnaud) wrote :

Hi,

this bug has been closed, however the error message is still there in Debian sid and Ubuntu 14.10:

# update-desktop-database
Warning in file "/usr/share/applications/gnumeric.desktop": usage of MIME type "zz-application/zz-winassoc-xls" is discouraged ("zz-application/zz-winassoc-xls" should be replaced with "application/vnd.ms-excel")

Revision history for this message
J. McDonald (mcdonald-joseph) wrote :

I'm also getting the error message in Mint 17.1 (Rebecca/Trusty).

Revision history for this message
In , Vincent Untz (vuntz) wrote :

Sorry for the noise, reassigning to new maintainer.

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

Other bug subscribers

Remote bug watches

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