Reviewed: https://review.openstack.org/176804 Committed: https://git.openstack.org/cgit/stackforge/wsme/commit/?id=8d9f82d7fefd357b22c5d51754069ac05fd17159 Submitter: Jenkins Branch: master
commit 8d9f82d7fefd357b22c5d51754069ac05fd17159 Author: Stéphane Bisinger <email address hidden> Date: Thu Apr 23 16:37:14 2015 +0200
Return a 400 status code on invalid JSON input
Instead of returning a 500 HTTP status code, return a 400 status code when the received input is invalid JSON. Also add a unit test for this case.
Closes-Bug: #1428462 Change-Id: Id02de0a7b8fcbcb07f7ac534519dcdc1cbb04839
Reviewed: https:/ /review. openstack. org/176804 /git.openstack. org/cgit/ stackforge/ wsme/commit/ ?id=8d9f82d7fef d357b22c5d51754 069ac05fd17159
Committed: https:/
Submitter: Jenkins
Branch: master
commit 8d9f82d7fefd357 b22c5d51754069a c05fd17159
Author: Stéphane Bisinger <email address hidden>
Date: Thu Apr 23 16:37:14 2015 +0200
Return a 400 status code on invalid JSON input
Instead of returning a 500 HTTP status code, return a 400 status code when the
received input is invalid JSON.
Also add a unit test for this case.
Closes-Bug: #1428462 b07f7ac534519dc dc1cbb04839
Change-Id: Id02de0a7b8fcbc