Account registration form should not crash when missing a element

Bug #130182 reported by Diogo Matsubara
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Invalid
Low
Unassigned

Bug Description

While registering a new account, the form was submitted without the hide_email_addresses form field, causing the code to crash, as seen in OOPS-579D2611

KeyError: 'hide_email_addresses'

We should raise an UnexpectedFormData in cases like this.

Revision history for this message
Curtis Hovey (sinzui) wrote :

The schema should define a default, or validate() should verify the data[] keys before the action's success is entered.

Changed in launchpad-registry:
importance: Undecided → Low
status: New → Triaged
Curtis Hovey (sinzui)
affects: launchpad-registry → launchpad-foundations
Revision history for this message
Guilherme Salgado (salgado) wrote :

That code will be removed in the next release.

Changed in launchpad-foundations:
assignee: nobody → Guilherme Salgado (salgado)
milestone: none → 10.03
Gary Poster (gary)
Changed in launchpad-foundations:
milestone: 10.03 → 10.04
Changed in launchpad-foundations:
assignee: Guilherme Salgado (salgado) → nobody
status: Triaged → Invalid
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.