]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
ReST API: Return 400 for malformed JSON input
authorZane Bitter <zbitter@redhat.com>
Mon, 21 Jan 2013 15:36:21 +0000 (16:36 +0100)
committerZane Bitter <zbitter@redhat.com>
Mon, 21 Jan 2013 15:36:21 +0000 (16:36 +0100)
commit8a572c0b887a58df9bace67d567337a08ba3af18
treeb60e89adbe24dd27c4905a6ecda90a9d23f580e5
parent55c90321b462a409ffe4db124c31f3a9cec0490f
ReST API: Return 400 for malformed JSON input

Previously we had an unhandled exception that resulted in a 500 (Internal
Server Error) result and a stack trace when an invalid JSON file was
submitted in a POST/PUT request. Change to catching the exception and
returning a 400 (Bad Request) result.

bug 1102391

Change-Id: I7dde33ae732d9addbf988b1d36d4f06eacb634bf
Signed-off-by: Zane Bitter <zbitter@redhat.com>
heat/common/wsgi.py