Skip to contentSkip to conversation

bugzilla: problem with "content-disposition" for patch files

Buildroot Grant Edwards 2 participants 3 messages Apr 9, 2010 – Apr 10, 2010

lore
Share & tools
lore
#0 lore raw

This may seem trivial, but it's getting to be pretty annoying.

When you click on a link to a patch file in bubzilla, the content-disposition is sent as "attachment". This disables the ability of Firefox users to set a default action for that file type.

Can this be fixed?

A brief explanation of the problem from http://kb.mozillazine.org/File_types_and_download_actions#Unable_to_set_an_automatic_action

In some cases, you may not be able to set an automatic download action. This can occur when a misconfigured web server assigns an incorrect MIME type, such as "application/octet-stream" (shown above in SeaMonkey 1.x) or if the server assigns "Content-Disposition: attachment" to the file download (shown at right in SeaMonkey 1.x). [6] When this happens, the option to always perform the same action will either be "grayed-out" (as shown here in SeaMonkey 1.x) or, in Firefox, selecting the "Do this automatically" option will not seem to have an effect and you will again be asked what to do when you next encounter that file type (see below for related bug reports). There is little you can do in these cases because the problem is at the server end.

Signature · 3 lines
Grant Edwards               grant.b.edwards        Yow! NANCY!!  Why is
                                  at               everything RED?!
                              gmail.com            
#1 lore raw
Quoted 7 lines · On Fri, 9 Apr 2010 15:29:55 +0000 (UTC) Grant Edwards…

This may seem trivial, but it's getting to be pretty annoying.

When you click on a link to a patch file in bubzilla, the content-disposition is sent as "attachment". This disables the ability of Firefox users to set a default action for that file type.

Can this be fixed?

I agree, this would be nice.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#2 lore raw
Quoted 5 lines · Thomas Petazzoni
Quoted 2 lines · On Fri, 9 Apr 2010 15:29:55 +0000 (UTC) Grant Edwards…

This may seem trivial, but it's getting to be pretty annoying.

Quoted 7 lines
Quoted 5 lines

When you click on a link to a patch file in bubzilla, the content-disposition is sent as "attachment". This disables the ability of Firefox users to set a default action for that file type.

Can this be fixed?

I agree, this would be nice.

I had hoped there might be a way to fix it in Firefox, but the Firefox dev's really have a stick up their rear on this one. They're absolutely positive they're right and everybody else in the world is wrong. People have been asking for this to be fixed in Firefox for years and years (other browsers don't seem to have this "feature"), but the Firefox devs are sticking to the "one true path" with a religious fervor. From the looks of their bug-tracking system, they must have one dev who's full time job is to change the state of new reports of this problem to "duplicate" and tell all of the posters of "me too, please fix this" comments to frack off.

They claim letting users set a default handler for files that are "content-disposition: attachment" would be "security problem" -- though I've read and was completely unable to follow their reasoning. If only they put as much effort into plugging other security holes as they put into defending this feature.

I think it's a case of "security problem" being double-speak for "the bug doesn't bother us, so we're not going to fix it."

So, the only hope is that bugzilla could be changed. [I don't really understand the reasoning behind bugzilla's setting the content-disposition to "attachment" either, but I haven't looked into that side of it.]

Signature · 1 line
Grant