v2 tokens validated on the v3 API are missing timezones
Bug #1476329 reported by
Dolph Mathews
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Medium
|
werner mendizabal |
Bug Description
v3 tokens contain the issued_at and expires_at timestamps for each token. If a token is created on the v2 API and then validated on the v3 API, this timezone information is missing (the 'Z' at the end of the timestamp), and thus cannot be validated as ISO 8601 extended format timestamps.
This patch contains two FIXMEs which, if uncommented, will reproduce this bug:
https:/
This appears to affect all token formats.
description: | updated |
description: | updated |
Changed in keystone: | |
status: | Triaged → Fix Committed |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
assignee: | nobody → Akanksha Agrawal (akanksha-aha) |
Changed in keystone: | |
milestone: | none → mitaka-rc1 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/203250 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=425a17b50a1 a2e882d82d4aa95 835e280bbb8c6c
Committed: https:/
Submitter: Jenkins
Branch: master
commit 425a17b50a1a2e8 82d82d4aa95835e 280bbb8c6c
Author: Dolph Mathews <email address hidden>
Date: Fri Jul 17 21:20:31 2015 +0000
Refactor: clean up TokenAPITests
Because many of these tests are intermixing v2 and v3 tokens between the
v2 and v3 APIs, I found these tests to be particularly difficult to grok
without coffee, so I coffee'd up and clarified them.
- Chose more explicit variable names. This helps communicate the
difference between "token_data" (which is changed to "v3_token_data")
and "v2_token_data", for example.
- Removed unnecessary variables.
- Added extra assertions against v3 token response bodies, two of which
fail due to bug 1476329. In short, it's because v2 tokens validated on
the v3 API are missing the Zulu timezone suffix ('Z').
- Fixed grammatical issues in comments.
Change-Id: I780776d761b295 c96516266d2154b f50260278fd
Related-Bug: 1476329