time not properly parsed in auth_token middleware throws exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
High
|
Ziad Sawalha |
Bug Description
on debian squeeze the time format returned is %Y-%m-%
def get_datetime(
""" Gets datetime object with microsecond accuracy from input string.
Handle strings which don't include microseconds
:param: time_string: datetime in %Y-%m-%
"""
result = time_string.
datetime_string = result[0]
microseconds = result[1] if len(result) > 1 else "0"
d1 = datetime.
ms = int(microsecond
return d1.replace(
Changed in keystone: | |
assignee: | nobody → Ziad Sawalha (ziad-sawalha) |
milestone: | none → essex-3 |
importance: | Undecided → High |
status: | New → Confirmed |
status: | Confirmed → In Progress |
Changed in keystone: | |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | essex-3 → 2012.1 |
Reviewed: https:/ /review. openstack. org/3185 github. com/openstack/ keystone/ commit/ 8c98285ad0c1b24 efe35a3ea777da5 8fb0d67054
Committed: http://
Submitter: Jenkins
Branch: master
commit 8c98285ad0c1b24 efe35a3ea777da5 8fb0d67054
Author: Ziad Sawalha <email address hidden>
Date: Thu Jan 19 11:19:13 2012 -0600
Fixes 918535: time not properly parsed in auth_token middleware
- replaced get_datetime() with expanded _convert_datetime()
function that uses datutil parser to handle any date
string.
- added tests
- fixes bug 918535
- also addresses bug 911197
Change-Id: I7f4e3c01b1b746 6fd5f30889c7b28 deae9fc9367