X Tutup
Skip to content

Neutron: Fix not acceptable Header#43

Merged
olivergondza merged 1 commit intoopenstack4j:masterfrom
LmV4corbeau:38-Bug-Not-Acceptable-Header-in-http-client-connector
Mar 12, 2020
Merged

Neutron: Fix not acceptable Header#43
olivergondza merged 1 commit intoopenstack4j:masterfrom
LmV4corbeau:38-Bug-Not-Acceptable-Header-in-http-client-connector

Conversation

@LmV4corbeau
Copy link
Copy Markdown

The MediaType 'JSON_UTF_8' appends a charset parameter to the
'applicatiob/json' of the Accept header, which is partly not accepted
by the openstack.

Resolves: #38

The MediaType 'JSON_UTF_8' appends a charset parameter to the
'applicatiob/json' of the Accept header, which is partly not accepted
by the openstack.

Resolves: openstack4j#38
@olivergondza
Copy link
Copy Markdown
Member

Putting aside the API formerly used is anotated beta, the idea we have no explicit control over the values we send is disturbing, so +1.

Did you managed to find a reasoning why the original values is rejected by OpenStack (bug, documentation, etc.)?

@LmV4corbeau
Copy link
Copy Markdown
Author

The words of the current Openstack Train:

Response format¶
The Networking API v2.0 always responds with the JSON data serialization format. The Accept header is ignored.

But:

curl -v -s -X GET -H "X-Auth-Token: "$OS_TOKEN -H "Accept: application/json; charset=utf-8" -H "Content-Type: application/json" http://xXX.XXX.XXX.XXX:9696/v2.0/ports\?limit\=500 | jq .
 {
   "NeutronError": {
     "message": "The server could not comply with the request since it is either malformed or otherwise incorrect.",
     "type": "HTTPNotAcceptable",
     "detail": ""
   }
 }

@olivergondza
Copy link
Copy Markdown
Member

@olivergondza olivergondza merged commit 5031215 into openstack4j:master Mar 12, 2020
@olivergondza olivergondza changed the title Fix not acceptable Header Neutron: Fix not acceptable Header Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Not Acceptable Header in list Requests Networks,Subnets and Ports

3 participants

X Tutup