Red Hat Bugzilla – Bug 357231
default attachment type should be "text/plain"
Last modified: 2013-06-23 22:47:00 EDT
Description of problem: When creating an attachment, then bugzilla assumes that
the mime type is "application/octet-stream". Instead, the default type should
be "text/plain". The reason for this is that "application/octet-stream" does
not display at all in the default viewer, and it is too easy to forget to choose
"text/plain" explicitly, and cumbersome to change the mime type.
Version-Release number of selected component (if applicable):
Bugzilla Version 2.18-rh
How reproducible: always
Steps to Reproduce:
1. Create an attachment: Browse to select a file, enter description, enter
comment, forget to select type (leave it as "bugzilla should guess")
Actual results: Mime type is application/octet-stream.
Expected results: Mime type should be text/plain.
Or, bugzilla's guess should be text/plain if the first 1KB of the file is
I've stumbled on this a few times in the past two weeks. All my attachments are
either plain text, or gzip'ed plain text. The difference is obvious to the
'file' command, and bugzilla should make the correct choice, too.
Red Hat Bugzilla is now using version 3.2 of the Bugzilla codebase and therefore this bug will need to be re-verified against the new release. With the updated code this bug may no longer be relevant or may have been fixed in the new code.
Updating bug version to 3.2.
This should be filed upstream as we are not using stock attachment code.