http query params limit and offset are ignored when they are malformed
Bug #729400 reported by
Naveed Massjouni
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Titan |
Bug Description
A request to the openstack api that contains invalid values for the query params 'limit' or 'offset' returns a response as if limit or offset were not provided. For example: GET /servers?limit=foo. The api should return a 400 response. This happens on the trunk currently at rev. 760.
Related branches
lp://staging/~ironcamel/nova/http-error-codes
- Jay Pipes (community): Approve
- Rick Harris (community): Approve
- Todd Willey (community): Approve
- Titan: Pending requested
-
Diff: 114 lines (+40/-21)3 files modifiednova/api/openstack/common.py (+8/-5)
nova/tests/api/openstack/test_common.py (+4/-16)
nova/tests/api/openstack/test_servers.py (+28/-0)
Changed in nova: | |
assignee: | nobody → Titan (rackspace-titan) |
Changed in nova: | |
status: | New → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → 2011.2 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.