yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #23361
[Bug 1377302] [NEW] HEAD /auth/tokens returns 200 instead of 204
Public bug reported:
Given I have a valid token to validate
When I make a HEAD query to http://<keystone_host>:35357/v3/auth/tokens
Then I receive a 200 HTTP code
Expected: I receive a 204 HTTP code.
For example:
curl --header "X-Auth-Token: <auth_token>" --header "X-Subject-Token:
<subject_token>" --request HEAD --head
'http://<keystone_host>:35357/v3/auth/tokens'
HTTP/1.1 200 OK
X-Subject-Token: 53e97736a9c44f39bb408bff5b0b1ecb
Vary: X-Auth-Token
Content-Type: application/json
Content-Length: 297
Date: Fri, 03 Oct 2014 19:14:27 GMT
According to the Identity documentation
(https://git.openstack.org/cgit/openstack/identity-
api/tree/v3/src/markdown/identity-api-v3.md):
This call is identical to `GET /auth/tokens`, but no response body is provided,
even if an error occurs or the token is invalid. A 204 response indicates that
the `X-Subject-Token` is valid.
Tested on keystone master 4ac7ba4 (Thu Oct 2 18:30:10 2014 +0000).
** Affects: keystone
Importance: Undecided
Status: New
** Tags: docs identity keystone
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1377302
Title:
HEAD /auth/tokens returns 200 instead of 204
Status in OpenStack Identity (Keystone):
New
Bug description:
Given I have a valid token to validate
When I make a HEAD query to http://<keystone_host>:35357/v3/auth/tokens
Then I receive a 200 HTTP code
Expected: I receive a 204 HTTP code.
For example:
curl --header "X-Auth-Token: <auth_token>" --header "X-Subject-Token:
<subject_token>" --request HEAD --head
'http://<keystone_host>:35357/v3/auth/tokens'
HTTP/1.1 200 OK
X-Subject-Token: 53e97736a9c44f39bb408bff5b0b1ecb
Vary: X-Auth-Token
Content-Type: application/json
Content-Length: 297
Date: Fri, 03 Oct 2014 19:14:27 GMT
According to the Identity documentation
(https://git.openstack.org/cgit/openstack/identity-
api/tree/v3/src/markdown/identity-api-v3.md):
This call is identical to `GET /auth/tokens`, but no response body is provided,
even if an error occurs or the token is invalid. A 204 response indicates that
the `X-Subject-Token` is valid.
Tested on keystone master 4ac7ba4 (Thu Oct 2 18:30:10 2014 +0000).
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1377302/+subscriptions
Follow ups
References