]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: be more flexible with iso8601 timestamps 5651/head
authorAbhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Mon, 24 Aug 2015 17:41:35 +0000 (23:11 +0530)
committerAbhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Mon, 24 Aug 2015 17:41:35 +0000 (23:11 +0530)
commit136242b5612b8bbf260910b1678389361e86d22a
treeeeb2a173137273d0bc23acb8c835518581547a9b
parent7cf4b3a89ce515e2cf5797ee4b8dc0e467175298
rgw: be more flexible with iso8601 timestamps

make parsing 8601 more flexible by not restricting the length of seconds
to 5, this allows timestamp to be specified both as ms or us. Newer
keystone backends such as fernet token backend default to microseconds
when publishing iso8601 timestamps, so this allows these timestamps to
be allowed when specifying the token expiry time.

Fixes: #12761
Reported-by: Ian Unruh <ianunruh@gmail.com>
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
src/rgw/rgw_common.cc