commit 433da2654372cf6e1841b24266d3318c7d0c14af
Author: Luis A. Garcia <email address hidden>
Date: Tue Aug 6 18:36:02 2013 +0000
Ensure all REST API error responses are consistent
Heat exceptions are serialized into JSON/XML responses by the fault app,
which is at the end of the WSGI pipeline. Some REST API errors however
are raised as HTTPExceptions, which are treated by WSGI as responses
ready to be sent back to the user, and they can't reach the fault app.
This patch set disguises HTTPExceptions raised by the wsgi.Resource so
they can reach the app that will serialize them just like all other
errors.
Reviewed: https:/ /review. openstack. org/40503 github. com/openstack/ heat/commit/ 433da2654372cf6 e1841b24266d331 8c7d0c14af
Committed: http://
Submitter: Jenkins
Branch: master
commit 433da2654372cf6 e1841b24266d331 8c7d0c14af
Author: Luis A. Garcia <email address hidden>
Date: Tue Aug 6 18:36:02 2013 +0000
Ensure all REST API error responses are consistent
Heat exceptions are serialized into JSON/XML responses by the fault app,
which is at the end of the WSGI pipeline. Some REST API errors however
are raised as HTTPExceptions, which are treated by WSGI as responses
ready to be sent back to the user, and they can't reach the fault app.
This patch set disguises HTTPExceptions raised by the wsgi.Resource so
they can reach the app that will serialize them just like all other
errors.
Fixes bug 1208620
Change-Id: Id98dbc1e3b2084 01be8f0119a6d72 d4561a2221a