Comment 2 for bug 1450552

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (master)

Reviewed: https://review.openstack.org/179159
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=243128ecf41763d49cca4a21468826b6f33f3f00
Submitter: Jenkins
Branch: master

commit 243128ecf41763d49cca4a21468826b6f33f3f00
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 InvalidParameterValue exception with a message
    that indicates that the sort key is invalid. The response is now
    an HTTP 400 (Bad Request).

    Change-Id: I237856ccb10e395bf2b42307804f607963b5dcbb
    Closes-Bug: #1450552