Bug 16813

Summary: desktop-entry-validate should catch invalid characters in MimeType
Product: desktop-file-utils Reporter: Götz Waschk <waschk>
Component: generalAssignee: Vincent Untz <vuntz>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium Keywords: NEEDINFO
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Götz Waschk 2008-07-23 02:06:33 UTC
This is the error message from update-desktop-database when MimeType of file-roller.desktop contained a space:
File '/usr/share/applications/file-roller.desktop' contains invalid MIME
type ' application/x-gtar' that contains invalid characters

The desktop entry validated just fine with desktop-file-utils 0.15 on Mandriva Cooker. 

$ fgrep MimeType file-roller.desktop
MimeType=application/x-7z-compressed;application/x-7z-compressed-tar;application/x-ace;application/x-alz;application/x-ar;application/x-arj;application/x-bzip;application/x-bzip-compressed-tar;application/x-bzip1;application/x-bzip1-compressed-tar;application/x-cabinet;application/x-cbr;application/x-cbz;application/x-cd-image;application/x-compress;application/x-compressed-tar;application/x-cpio;application/x-deb;application/x-ear;application/x-executable; application/x-gtar;application/x-gzip;application/x-gzpostscript;application/x-java-archive;application/x-lha;application/x-lhz;application/x-lzma;application/x-lzma-compressed-tar;application/x-lzop;application/x-lzop-compressed-tar;application/x-rar;application/x-rar-compressed;application/x-rpm;application/x-rzip;application/x-tar;application/x-tarz;application/x-stuffit;application/x-war;application/x-zip;application/x-zip-compressed;application/x-zoo;application/zip;multipart/x-zip;
$ desktop-file-validate file-roller.desktop
$
Comment 1 Vincent Untz 2008-07-23 03:01:20 UTC
Can you either attach the file here or test with HEAD? I think it's fixed there.
Comment 2 Götz Waschk 2008-07-23 03:15:24 UTC
Indeed, it is fixed in CVS. 

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.