500 Error is returned when specifying string that is partial matched to "application/json" as format of HTTP header.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
Kengo Hobo |
Bug Description
Currently, 'get_content_type' method in neutron/wsgi.py checks
specified format by 'in' statement.
Thus, string(e.g. 'application/j') that is partial matched to
'application/json' is returned.
However, we cannot find valid serializer from the format,
and request fails with unexpected error.
request
=======
ubuntu@
HTTP/1.1 500 Internal Server Error
Content-Length: 114
Content-Type: text/plain; charset=UTF-8
X-Openstack-
Date: Fri, 12 Aug 2016 03:18:14 GMT
500 Internal Server Error
The server has either erred or is incapable of performing the requested operation.
=======
trace in neutron-server
=======
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
__call__
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.259 13757 ERROR oslo_middleware
2016-08-12 03:18:14.262 13757 INFO neutron.wsgi [req-c82ae85b-
=======
Changed in neutron: | |
assignee: | nobody → Kengo Hobo (hobo-kengo) |
description: | updated |
Changed in neutron: | |
importance: | Undecided → Low |
Fix proposed to branch: master /review. openstack. org/354551
Review: https:/