Merge lp:~bac/launchpad/bug-520476 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 10904 |
Proposed branch: | lp:~bac/launchpad/bug-520476 |
Merge into: | lp:launchpad |
Diff against target: |
69 lines (+20/-12) 2 files modified
lib/lp/registry/browser/person.py (+9/-5) lib/lp/registry/browser/tests/gpg-views.txt (+11/-7) |
To merge this branch: | bzr merge lp:~bac/launchpad/bug-520476 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
Review via email: mp+25713@code.launchpad.net |
Commit message
Throw and UnexpectedFormData exception when +editpgpkeys has no action.
Description of the change
= Summary =
Somehow (dumb browser, network fart, who knows?) the +editpgpkeys form
has been submitted with the form action set to None, which causes the
call to getattr to fail. Add defensive programming to not allow that to
happen and produce a better failure.
== Proposed fix ==
Remove the test for non-None before throwing UnexpectedFormData.
== Pre-implementation notes ==
Talk with Curtis.
== Implementation details ==
As above.
== Tests ==
bin/test -vvt gpg-views.txt
== Demo and Q/A ==
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files:
lib/lp/
lib/lp/
== Pylint notices ==
lib/lp/
1944: [C0301] Line too long (83/78)
Pre-existing lint problem. Will fix before submitting.
Thanks for doing this. As we discussed, the root cause was probably on the client, which is still an oops, but one that the client needs to address, not us.