Merge lp:~benji/lazr.restful/error-on-multiple-ws.op-fields into lp:lazr.restful
Proposed by
Benji York
Status: | Merged |
---|---|
Merged at revision: | 195 |
Proposed branch: | lp:~benji/lazr.restful/error-on-multiple-ws.op-fields |
Merge into: | lp:lazr.restful |
Diff against target: |
62 lines (+37/-0) 2 files modified
src/lazr/restful/_resource.py (+8/-0) src/lazr/restful/tests/test_webservice.py (+29/-0) |
To merge this branch: | bzr merge lp:~benji/lazr.restful/error-on-multiple-ws.op-fields |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
j.c.sackett (community) | Approve | ||
Review via email: mp+74682@code.launchpad.net |
Description of the change
Bug 842917 describes an unhandled TypeError raised when more than one
value for ws.op is provided in web service requests. This branch fixes
that by simply ensuring there is only one ws.op value (which is a
string) and generating a 400 with an informative message if not.
To post a comment you must log in.
This looks good to land (based on http:// paste.ubuntu. com/685561/).