.tar.bz2 download has wrong Content-Type
Bug #490224 reported by
Jamu Kakar
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Dorsal |
Invalid
|
Undecided
|
Unassigned | ||
Launchpad itself |
Fix Released
|
High
|
Brad Crittenden |
Bug Description
I uploaded a tarball for Storm yesterday and the link, when clicked,
provides the contents of the tarball as plain text with an incorrect
Content-Type. I'm pretty sure that I chose the correct type, "Code
Release Tarball", when I uploaded the file.
You can reproduce the issue by visiting:
https:/
and clicking the "storm-
for this release' section.
Related branches
lp://qastaging/~bac/launchpad/bug-490224-content-type
- Curtis Hovey (community): Approve (code)
- Gary Poster (community): Approve (code)
- Canonical Launchpad Engineering: Pending requested
-
Diff: 116 lines (+71/-10)4 files modifiedlib/lp/bugs/model/bug.py (+0/-10)
lib/lp/services/mime.py (+33/-0)
lib/lp/services/tests/test_mime.py (+34/-0)
lib/site.py (+4/-0)
affects: | launchpad → launchpad-registry |
Changed in launchpad-registry: | |
status: | New → Triaged |
Changed in launchpad-registry: | |
status: | Triaged → In Progress |
assignee: | nobody → Brad Crittenden (bac) |
Changed in dorsal: | |
status: | New → Invalid |
Changed in launchpad-registry: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
There is a bug in python 2.4 and python2.5 mimetypes. guiess_ type that gets bz2 wrong. We may want our own mime-types file to ensure the common types are always matched. init(mimetypes. knownfiles + ['path/ to/launchpad, mimetypes' ])
mimetypes.
Both ProductReleaseA ddDownloadFileV iew and Finder need the fix. Once the code is fixed, the DB needs an update to correct al the bz2 files.