Edit branch details form need input validation for non-existent product
Bug #59249 reported by
Diogo Matsubara
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
James Henstridge |
Bug Description
Steps to reproduce (using sample date):
1. Logged in as Sample Person, open:
http://
2. In 'Product' type in: foo (i.e. non-existent product);
3. Click 'Change branch';
3. Crash like: OOPS-248C572
description: | updated |
To post a comment you must log in.
The validate() function for that form should be using data.get('product') rather than data['product'].
Since the data from the request didn't result in a valid product name, the product object doesn't get added to the data dictionary. The validate() method needs to cope with this.