On Mon, Jan 04, 2021 at 11:23:48AM -0300, Antonio Terceiro wrote: > Package: lighttpd > Version: 1.4.57-1 > Severity: grave > Justification: renders package unusable > > Dear Maintainer, > > After media-types has been upgraded to 1.1.0, lighttpd fails to start, > complaining about duplicated media types. > > jan 04 11:17:27 lemur systemd[1]: Starting Lighttpd Daemon... > jan 04 11:17:27 lemur lighttpd[22434]: Duplicate mimetype: '.png' => > 'image/vnd.mozilla.apng' (already have 'image/png'), merging to > 'application/octet-stream' > jan 04 11:17:27 lemur lighttpd[22434]: Duplicate mimetype: '.pcx' => > 'image/vnd.zbrush.pcx' (already have 'image/pcx'), merging to > 'application/octet-stream' > jan 04 11:17:28 lemur lighttpd[22430]: Error: duplicate array-key: .pgb. > Please get rid of the duplicate entry. > jan 04 11:17:28 lemur lighttpd[22430]: 2021-01-04 11:17:27: > (configfile.c.1966) source: /usr/share/lighttpd/create-mime.conf.pl line: 495 > pos: 8 parser failed somehow near here: (COMMA) > jan 04 11:17:28 lemur lighttpd[22430]: 2021-01-04 11:17:27: > (configfile.c.1966) source: /etc/lighttpd/lighttpd.conf line: 48 pos: 8 > parser failed somehow near here: (EOL)
[...] > The new /etc/mime.types has both lowercase and uppercase file extensions > for the same mime type: > > $ grep pgb /etc/mime.types > image/vnd.globalgraphics.pgb PGB pgb > > I'm copying the media-types maintainers just so that they know about > this, but it seems to me that this should be handled properly in > lighttpd. Thank you for reporting this. Yes, lighttpd could handle this better and I have just pushed a patch to salsa.debian.org/debian/lighttpd master branch. An update to lighttpd is scheduled to be released to testing some time later next week. However, I also urge the media-types maintainers to review their change. Of the 800+ lines in /etc/mime.types, only this new addition lists both uppercase and lowercase for the same extension. It is unnecessary and wasteful. If they are going to duplicate uppercase and lowercase for pgb, then they should do so for all extensions, e.g. jpg and JPG, png and PNG, etc One quickly realizes that this is excessive and wasteful and not the convention in /etc/mime.types. Therefore 'image/vnd.globalgraphics.pgb PGB pgb' is the outlier that should be changed to conform to the existing conventions. Cheers, Glenn