From f16fa4b252b1601b00149f17ed1516bc90cbedf3 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 23 May 2017 13:56:59 +0800 Subject: [PATCH] rgw: multipart copy-part remove '/' for s3 java sdk request header. Fixes: http://tracker.ceph.com/issues/20075 Signed-off-by: donglinpeng@cmss.chinamobile.com (cherry picked from commit d60ddddfaf6964364faed40f45b18eb88a841023) --- src/rgw/rgw_rest_s3.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index e99c3866a5168..56e40bf85517e 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -1073,6 +1073,7 @@ int RGWPutObj_ObjStore_S3::get_params() /* handle x-amz-copy-source */ if (copy_source) { + if (*copy_source == '/') ++copy_source; copy_source_bucket_name = copy_source; pos = copy_source_bucket_name.find("/"); if (pos == std::string::npos) { -- 2.39.5