AttributeError on potemplate page
Bug #507498 reported by
Diogo Matsubara
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Adi Roiban |
Bug Description
As seen on OOPS-1474EA597, when opening a page like:https:/
Note that the page won't oops if the logged in user is a rosetta admin (e.g. Henning tried to open the page and it opened successfully)
Related branches
lp:~henninge/launchpad/bug-507498-oops-subset
Rejected
for merging
into
lp:launchpad
- Guilherme Salgado (community): Approve (code)
-
Diff: 40 lines (+18/-1)2 files modifiedlib/canonical/launchpad/security.py (+1/-1)
lib/lp/translations/doc/potemplate.txt (+17/-0)
lp:~adiroiban/launchpad/bug-340662-take-2
- Brad Crittenden (community): Approve (code)
-
Diff: 275 lines (+72/-52)5 files modifiedlib/canonical/launchpad/security.py (+3/-28)
lib/lp/translations/browser/configure.zcml (+2/-2)
lib/lp/translations/browser/potemplate.py (+9/-8)
lib/lp/translations/configure.zcml (+2/-2)
lib/lp/translations/stories/standalone/xx-potemplate-edit.txt (+56/-12)
description: | updated |
Changed in rosetta: | |
importance: | Undecided → Critical |
status: | New → Triaged |
assignee: | nobody → Henning Eggers (henninge) |
milestone: | none → 10.01 |
Changed in rosetta: | |
status: | Triaged → In Progress |
Changed in rosetta: | |
assignee: | Henning Eggers (henninge) → Adi Roiban (adiroiban) |
Changed in rosetta: | |
status: | In Progress → Fix Committed |
tags: | added: qa-needstesting |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in rosetta: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Actually that oops is on a +translate page. We're clearly doing an EditByOwnersOrA dmins check on a POTemplateSubset, and a POTemplateSubset has no owner. I don't know why the check isn't looking at POFile instead.
Being a translations admin must bypass the broken check.