unspecified MIME type of attachment defaults to chemical/x-mopac-input

Bug #204560 reported by rbertran
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

I reported a bug and when I uploaded an audio/x-musepack file as attachment it was detected as chemical/x-mopac-input MIME type. I checked the MIME type locally and the MIME type is audio/x-musepack . The name of the file is "08 - Seven Faces.mpc" . You can see the error in https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/203470 (the fourth and the five comments).
Thanks a lot.
Salut!

Tags: lp-bugs
Changed in malone:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Martin Pool (mbp) wrote :

I hit this, or something like it: if you attach a file through the API and you don't specify the mime type, it gets set to chemical/x-mopac-input, which I would guess is alphabetically first.

It would be more reasonable to use application/binary.

This reproduces it:

bug.addAttachment(comment='comment', data='attachment data', description='description',
            filename='attachment.dat')

summary: - Incorrect MIME type when uploading an audio/x-musepack (*.mpc) file
+ unspecified MIME type of attachment defaults to chemical/x-mopac-input
Revision history for this message
Martin Pool (mbp) wrote : description

comment

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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