Mimetypes modification not working
Bug #496701 reported by
Brad Crittenden
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Brad Crittenden |
Bug Description
The fix for bug 490224 is not actually solving the problem. The customization to the mimetypes module is done at startup via a call in lib/site.py, and is shown to be called, but when the browser class is called to process the request the modifications are no longer present.
Gary suggested moving the initialization to the [scripts] stanza of buildout.cfg. An experiment showed that doing the initialization there results in the correct behavior.
Related branches
lp://qastaging/~bac/launchpad/bug-496701-mimetypes
- Данило Шеган (community): Approve (release-critical)
- Curtis Hovey (community): Approve (code)
-
Diff: 51 lines (+11/-5)3 files modifiedbuildout.cfg (+4/-0)
lib/lp/services/tests/test_mime.py (+7/-1)
lib/site.py (+0/-4)
Changed in launchpad-registry: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Brad Crittenden (bac) |
milestone: | none → 3.1.12 |
tags: | added: current-rollout-blocker |
tags: | added: test |
tags: | removed: test |
Changed in launchpad-registry: | |
status: | In Progress → Fix Committed |
Changed in launchpad-registry: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.