yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #25523
[Bug 1402339] [NEW] Status code from HEAD requests must be consistent
Public bug reported:
Bug 'HEAD and GET inconsistencies in Keystone' [1] reported that HEAD
should be identical to GET except that there is no body returned, as
defined on the HTTP 1.1 specification [2], then 200 status code have to
be returned [3].
Some inconsistencies were removed, but there is still some work to be
done:
1) For all HEAD APIs:
a) Fix return from 204 to 200, if change applies;
b) Fix related tests, e.g checking a grant [4];
c) Fix identity v3 API specification, that reports 204 is returned on most of HEAD APIs (except for /auth/tokens).
2) Default status code asserted on test_v3 [5] should be 200 instead of 204
[1] https://bugs.launchpad.net/keystone/+bug/1334368
[2] http://tools.ietf.org/html/rfc2616#section-9.4
[3] http://tools.ietf.org/html/rfc2616#section-10.2.1
[4] https://github.com/openstack/keystone/blob/master/keystone/tests/test_v3_assignment.py#L881
[5] https://github.com/openstack/keystone/blob/master/keystone/tests/test_v3.py#L479
** Affects: keystone
Importance: Undecided
Assignee: Samuel de Medeiros Queiroz (samuel-z)
Status: New
** Changed in: keystone
Assignee: (unassigned) => Samuel de Medeiros Queiroz (samuel-z)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1402339
Title:
Status code from HEAD requests must be consistent
Status in OpenStack Identity (Keystone):
New
Bug description:
Bug 'HEAD and GET inconsistencies in Keystone' [1] reported that HEAD
should be identical to GET except that there is no body returned, as
defined on the HTTP 1.1 specification [2], then 200 status code have
to be returned [3].
Some inconsistencies were removed, but there is still some work to be
done:
1) For all HEAD APIs:
a) Fix return from 204 to 200, if change applies;
b) Fix related tests, e.g checking a grant [4];
c) Fix identity v3 API specification, that reports 204 is returned on most of HEAD APIs (except for /auth/tokens).
2) Default status code asserted on test_v3 [5] should be 200 instead of 204
[1] https://bugs.launchpad.net/keystone/+bug/1334368
[2] http://tools.ietf.org/html/rfc2616#section-9.4
[3] http://tools.ietf.org/html/rfc2616#section-10.2.1
[4] https://github.com/openstack/keystone/blob/master/keystone/tests/test_v3_assignment.py#L881
[5] https://github.com/openstack/keystone/blob/master/keystone/tests/test_v3.py#L479
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1402339/+subscriptions
Follow ups
References