.tar.bz2 download has wrong Content-Type

Bug #490224 reported by Jamu Kakar
14
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://edge.launchpad.net/storm/+milestone/0.16

and clicking the "storm-0.16.0.tar.bz2" link in the 'Download files
for this release' section.

Tags: lp-registry

Related branches

Curtis Hovey (sinzui)
affects: launchpad → launchpad-registry
Curtis Hovey (sinzui)
Changed in launchpad-registry:
status: New → Triaged
Revision history for this message
Curtis Hovey (sinzui) wrote :

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.
    mimetypes.init(mimetypes.knownfiles + ['path/to/launchpad,mimetypes'])

Both ProductReleaseAddDownloadFileView and Finder need the fix. Once the code is fixed, the DB needs an update to correct al the bz2 files.

Changed in launchpad-registry:
milestone: none → 3.1.12
importance: Undecided → High
Brad Crittenden (bac)
Changed in launchpad-registry:
status: Triaged → In Progress
assignee: nobody → Brad Crittenden (bac)
Brad Crittenden (bac)
Changed in dorsal:
status: New → Invalid
Revision history for this message
Brad Crittenden (bac) wrote :

First fix landed in r 10037

Changed in launchpad-registry:
status: In Progress → Fix Committed
Brad Crittenden (bac)
Changed in launchpad-registry:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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