Bug 16813 - desktop-entry-validate should catch invalid characters in MimeType
Summary: desktop-entry-validate should catch invalid characters in MimeType
Status: RESOLVED FIXED
Alias: None
Product: desktop-file-utils
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Vincent Untz
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2008-07-23 02:06 UTC by Götz Waschk
Modified: 2008-07-23 03:15 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.