librarian trusts user browser supplied mime type for bug attachments (can set type to text/html though it should be text/plain)
Bug #34758 reported by
StefanPotyra
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
If a browser supplies an incorrect mime type when uploading a bug attachment, we honour that and don't allow it to be corrected.
E.g.
http://
get's its content type set to text/html, which makes it quite unreadable in the browser.
strange enough, the diffstat (http://
Workarounds
===========
Get the attachment with wget
Or do that and reupload it with a better browser.
Changed in malone: | |
assignee: | bjornt → allenap |
milestone: | none → 1.99 |
Changed in malone: | |
status: | Confirmed → In Progress |
Changed in malone: | |
milestone: | 1.99 → 2.1.8 |
Changed in malone: | |
milestone: | 2.1.8 → 2.1.9 |
Changed in malone: | |
milestone: | 2.1.10 → none |
Changed in malone: | |
assignee: | Gavin Panella (allenap) → nobody |
status: | In Progress → Triaged |
To post a comment you must log in.
The librarian is serving those attachments with the mime type it was told to. So we need to work out why it was uploaded as text/html in the first place.
What bug is that file attached to?