HTTP 500 (Internal Server Error) was being returned when a
request (eg node-list) specified an invalid sort_key. This is
because a DB exception was being raised that we weren't
handling.
We now raise an InvalidParameterValue exception with a message
that indicates that the sort key is invalid. The response is now
an HTTP 400 (Bad Request).
Reviewed: https:/ /review. openstack. org/179159 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=243128ecf41 763d49cca4a2146 8826b6f33f3f00
Committed: https:/
Submitter: Jenkins
Branch: master
commit 243128ecf41763d 49cca4a21468826 b6f33f3f00
Author: Ruby Loo <email address hidden>
Date: Thu Apr 30 16:49:26 2015 +0000
Return HTTP 400 for invalid sort_key
HTTP 500 (Internal Server Error) was being returned when a
request (eg node-list) specified an invalid sort_key. This is
because a DB exception was being raised that we weren't
handling.
We now raise an InvalidParamete rValue exception with a message
that indicates that the sort key is invalid. The response is now
an HTTP 400 (Bad Request).
Change-Id: I237856ccb10e39 5bf2b42307804f6 07963b5dcbb
Closes-Bug: #1450552