The error message can't be returned to client when HTTPUnprocessableEntity happens

Bug #1291726 reported by Haiwei Xu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Haiwei Xu

Bug Description

When HTTPUnprocessableEntity happens, error messages are not passed to the parameter, so the client can't receive the details of the exception, but just gets the default error message defined in the HTTPUnprocessableEntity class.

 873 class HTTPUnprocessableEntity(HTTPClientError):
 874 """
 875 subclass of :class:`~HTTPClientError`
 876
 877 This indicates that the server is unable to process the contained
 878 instructions. Only for WebDAV.
 879
 880 code: 422, title: Unprocessable Entity
 881 """
 882 ## Note: from WebDAV
 883 code = 422
 884 title = 'Unprocessable Entity'
 885 explanation = 'Unable to process the contained instructions'

That's not good, the error messages should be returned to the client.

Tags: api
Haiwei Xu (xu-haiwei)
Changed in nova:
assignee: nobody → Haiwei Xu (xu-haiwei)
Tracy Jones (tjones-i)
tags: added: api
Revision history for this message
Allison Randal (allison) wrote :

Thanks for the report. Could you provide some more details on the context where this error occurred?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.