← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1377302] Re: HEAD /auth/tokens returns 200 instead of 204

 

This is actually a documentation bug, as we previously both mis-
specified and mis-implemented the behavior for HEAD requests. Keystone's
new behavior is correct, but unfortunately it looks like we did not
update the documentation.

** Project changed: keystone => openstack-api-site

** Tags removed: docs keystone

** Changed in: openstack-api-site
       Status: New => Confirmed

** Tags added: low-hanging-fruit

-- 
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 API documentation site:
  Confirmed

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/openstack-api-site/+bug/1377302/+subscriptions


References