Querying /v2/samples with a q.field of metaquery causes 500
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Fix Released
|
Medium
|
ZhiQiang Fan |
Bug Description
If you make a request like this:
- name: list samples with bad field
url: /v2/samples?
status: 400
response_
- metaquery
- unrecognized field in query
The response says that metaquery is a valid field, so if you then do this:
- name: list samples with metaquery field
url: /v2/samples?
the server will fail with:
{"error_
Traceback below. Presumably the right outcome is a 400. A bad query string shouldn't cause a 5xx of any sort.
Traceback (most recent call last):
File "/home/
result = f(self, *args, **kwargs)
File "ceilometer/
pecan.
File "ceilometer/
require_
File "ceilometer/
improve_
File "/home/
return iter(d.
AttributeError: 'unicode' object has no attribute 'iteritems'
Changed in ceilometer: | |
assignee: | nobody → ZhiQiang Fan (aji-zqfan) |
Changed in ceilometer: | |
milestone: | none → kilo-rc1 |
importance: | Undecided → Medium |
Changed in ceilometer: | |
status: | Fix Committed → Fix Released |
Changed in ceilometer: | |
milestone: | kilo-rc1 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/160074
Review: https:/