]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: be more flexible with iso8601 timestamps 6162/head
authorAbhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Mon, 24 Aug 2015 17:41:35 +0000 (23:11 +0530)
committerLoic Dachary <ldachary@redhat.com>
Fri, 2 Oct 2015 14:49:44 +0000 (16:49 +0200)
commit6119b152412ddfa2a614c1862aad52a123a4fe8e
tree17297b5444d8e46677c859e51a02918c9587323c
parente72bdc3bf1541e445f74def70b5aa185f1757468
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>
(cherry picked from commit 136242b5612b8bbf260910b1678389361e86d22a)
src/rgw/rgw_common.cc