FS#54977 - please resolve firefox "jpe" issue by changing mine-types

Attached to Project: Arch Linux
Opened by rain (rain1) - Sunday, 30 July 2017, 14:42 GMT
Last edited by Eli Schwartz (eschwartz) - Thursday, 11 January 2018, 03:29 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
Hello. Sometime when saving a jpeg image from firefox (if the file has a name such as "blahblah.jpg:large"), firefox adds a ".jpe" extension. This is a bug and it should instead add .jpg or .jpeg.

This can be fixed by removing jpe from the /etc/mime.types or moving to the last place. This problem could be solved in arch linux by either editing the mime-types file or importing the fedora one instead of the gentoo one.

Additional info:
* https://www.archlinux.org/packages/extra/any/mime-types/
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Thursday, 11 January 2018, 03:29 GMT
Reason for closing:  Fixed
Additional comments about closing:  We now use Fedora mailcap instead of Gentoo mime-types.
Comment by Jamie McClymont (JJJollyjim) - Saturday, 04 November 2017, 11:57 GMT
I can confirm that I experience this bug (images from Twitter are one example of jpegs-not-ending-with-a-proper-extension), and that moving jpe to the end of the line fixes the issue (seemingly firefox assumes the first thing in the list is the canonical one).

Potentially of note: if this fix were applied it would be the only instance in the file where the extensions are not in alphabetical order[1]. Perhaps the true bug is with firefox assuming that the first is the best?

[1]: cat /etc/mime.types | grep -Po '(?<=\t)[^\t].*$' | perl -pe '$_ = join(" ", sort(split(/ /)))' | md5sum
== cat /etc/mime.types | grep -Po '(?<=\t)[^\t].*$' | md5sum
Comment by rain (rain1) - Sunday, 05 November 2017, 14:14 GMT
thanks for confirming the problem and looking into it further!
Comment by Jan Alexander Steffens (heftig) - Wednesday, 22 November 2017, 19:59 GMT
I'm considering replacing Gentoo mime-types with Fedora mailcap.

Loading...