Reviewed: https://review.opendev.org/676028 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=d74d764c1561dbea2759db9930a7ce9f3f8cc5b7 Submitter: Zuul Branch: stable/queens
commit d74d764c1561dbea2759db9930a7ce9f3f8cc5b7 Author: Takashi NATSUME <email address hidden> Date: Fri Jul 12 12:29:49 2019 +0900
Retrun 400 if invalid query parameters are specified
The following APIs return 500 error currently if an invalid sort key or an invalid sort direction query parameter is specified.
- GET /flavors - GET /flavors/detail
Make the APIs return 400 error in that case.
Change-Id: I1d6d2c1f734b28dbea5c67cf88717149dd4911d7 Closes-Bug: #1835925 (cherry picked from commit ae7ebdf45eb6c9c4406d851ab8ee6f2e47d5f275) (cherry picked from commit d7e4e47d57c13bb6944ce3af0d16361f1129078a) (cherry picked from commit 7b216e08cfa2c2a39c2dad378d67ab0114312326)
Reviewed: https:/ /review. opendev. org/676028 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=d74d764c156 1dbea2759db9930 a7ce9f3f8cc5b7
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit d74d764c1561dbe a2759db9930a7ce 9f3f8cc5b7
Author: Takashi NATSUME <email address hidden>
Date: Fri Jul 12 12:29:49 2019 +0900
Retrun 400 if invalid query parameters are specified
The following APIs return 500 error currently
if an invalid sort key or an invalid sort direction
query parameter is specified.
- GET /flavors
- GET /flavors/detail
Make the APIs return 400 error in that case.
Change-Id: I1d6d2c1f734b28 dbea5c67cf88717 149dd4911d7 4406d851ab8ee6f 2e47d5f275) 6944ce3af0d1636 1f1129078a) 39c2dad378d67ab 0114312326)
Closes-Bug: #1835925
(cherry picked from commit ae7ebdf45eb6c9c
(cherry picked from commit d7e4e47d57c13bb
(cherry picked from commit 7b216e08cfa2c2a