Merge lp:~stevenk/launchpad/proper-error-on-bug-attachment-bad-filename into lp:launchpad
Proposed by
Steve Kowalik
on 2012-09-04
| Status: | Merged |
|---|---|
| Approved by: | Steve Kowalik on 2012-09-04 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 15905 |
| Proposed branch: | lp:~stevenk/launchpad/proper-error-on-bug-attachment-bad-filename |
| Merge into: | lp:launchpad |
| Diff against target: |
118 lines (+29/-10) 3 files modified
lib/lp/bugs/tests/test_bugs_webservice.py (+14/-4) lib/lp/registry/errors.py (+6/-0) lib/lp/services/librarian/model.py (+9/-6) |
| To merge this branch: | bzr merge lp:~stevenk/launchpad/proper-error-on-bug-attachment-bad-filename |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Ian Booth (community) | 2012-09-04 | Approve on 2012-09-04 | |
|
Review via email:
|
|||
Commit Message
If adding an LFA raises an IntegrityError, catch it and re-raise it so the API gives Bad Request rather than an OOPS.
Description of the Change
If adding the LFA in IBug.addAttachment raises an IntegrityError, catch it and raise it as BadRequest.
To post a comment you must log in.
review:
Approve
