yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #12933
[Bug 1300982] Re: No headers in REST API auth request results in HTTP 500
I just attempted to reproduce this on a Havana install, and it seems to
report an appropriate response/error:
---------------------------------------------------------------------------------
# curl -v -A "" -H "Host:" -H "Accept:" -H "Content-Type:" -d @/tmp/request.txt "http://10.0.1.7:35357/v2.0/tokens"
* About to connect() to 10.0.1.7 port 35357 (#0)
* Trying 10.0.1.7... connected
* Connected to 10.0.1.7 (10.0.1.7) port 35357 (#0)
> POST /v2.0/tokens HTTP/1.1
> Content-Length: 103
>
< HTTP/1.1 400 Bad Request
< Vary: X-Auth-Token
< Content-Type: application/json
< Content-Length: 257
< Date: Wed, 02 Apr 2014 02:22:51 GMT
<
* Connection #0 to host 10.0.1.7 left intact
* Closing connection #0
{"error": {"message": "Expecting to find application/json in Content-Type header. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error.", "code": 400, "title": "Bad Request"}}
---------------------------------------------------------------------------------
I think we can go ahead and close this as "Invalid". Apologies for the
noise.
** Changed in: keystone
Status: Incomplete => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1300982
Title:
No headers in REST API auth request results in HTTP 500
Status in OpenStack Identity (Keystone):
Invalid
Bug description:
REQ to http://host.example.com:35357/v2.0/tokens:
{"auth":{"passwordCredentials":{"username": "admin", "password":"***"}, "tenant":"admin"}}
RESP:
Status Code: 500 Internal Server Error
Connection: keep-alive
Content-Length: 266
Content-Type: application/xml
Date: Wed, 11 Jul 2012 13:41:34 GMT
Vary: X-Auth-Token
<?xml version="1.0" encoding="UTF-8"?>
<error xmlns="http://docs.openstack.org/identity/api/v2.0" message="An unexpected error prevented the server from fulfilling your request. argument of type 'NoneType' is not iterable" code="500" title="Internal Server Error"/>
Adding header "Content-type: application/json" fixes the problem.
It would be nice to improve the return code/error message.
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1300982/+subscriptions
References