]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: parse_copy_location defers url-decode 31651/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 11 Dec 2018 21:13:58 +0000 (16:13 -0500)
committerNathan Cutler <ncutler@suse.com>
Thu, 14 Nov 2019 18:30:00 +0000 (19:30 +0100)
commit3a7a8074b080f8b7d6620017c39295846f5f171c
tree69d6377432018b1a8b57a62bc008bd3f6358daea
parent7ab836dfa93e1fc657811e3e0ffdae4d832a5d76
rgw: parse_copy_location defers url-decode

don't url-decode until after we search for the ?, or we'll truncate
object names that contain a url-encoded ?

Fixes: http://tracker.ceph.com/issues/27217
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 804bb853f1c7b5ce546c100d61c6fc526838c134)
src/rgw/rgw_op.cc
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_rest_swift.cc