Avoid truncating API Response
Removes unnecessary escape characters from an exception message so that it does not get truncated by the fault middleware in the wsgi pipeline. Closes-Bug: #1335807 Change-Id: I20281042e617199b1f5a0507c56adca6a6dc601f
This commit is contained in:
parent
b160972b08
commit
240468e9ec
@ -625,8 +625,8 @@ class Resource(object):
|
||||
request, **action_args)
|
||||
except TypeError as err:
|
||||
logging.error(_('Exception handling resource: %s') % err)
|
||||
msg = _('The server could not comply with the request since\r\n'
|
||||
'it is either malformed or otherwise incorrect.\r\n')
|
||||
msg = _('The server could not comply with the request since '
|
||||
'it is either malformed or otherwise incorrect.')
|
||||
err = webob.exc.HTTPBadRequest(msg)
|
||||
http_exc = translate_exception(err, request.best_match_language())
|
||||
# NOTE(luisg): We disguise HTTP exceptions, otherwise they will be
|
||||
|
Loading…
Reference in New Issue
Block a user