Neutron API - problem parsing semi-colon in Accept header
Bug #1887815 reported by
Dan Radez
This bug report is a duplicate of:
Bug #1829042: Some API requests (GET networks) fail with "Accept: application/json; charset=utf-8" header and WebOb>=1.8.0.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
In Progress
|
High
|
Dan Radez |
Bug Description
when GET is sent with “Accept: application/json; charset=utf-8”, we receive the following Neutron error:
$ curl -s -H "Accept: application/json; charset=utf-8" -H "X-Auth-Token: $OS_TOKEN" "http://
{
"NeutronError": {
"detail": "",
"message": "The server could not comply with the request since it is either malformed or otherwise incorrect.",
"type": "HTTPNotAcceptable"
}
}
This happens on core resources and not extension resources.
WebOb seems to be handling this properly according to this github issue: /github. com/Pylons/ webob/issues/ 403
https:/
According to the RFC this Accept header is valid syntax: /tools. ietf.org/ html/rfc7231# section- 3.1.1
https:/