]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: RGWRESTStreamS3PutObj::send_init(), url encode dest
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 7 Nov 2017 00:18:41 +0000 (16:18 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 10 Apr 2018 15:05:39 +0000 (08:05 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_rest_client.cc

index 9baf60aa079c3eb16cd335febf5e808e4e3f78cc..7d6130a81eb54fc8a409bf157a05c398b567b3cf 100644 (file)
@@ -424,7 +424,8 @@ static void add_grants_headers(map<int, string>& grants, RGWEnv& env, map<string
 
 void RGWRESTStreamS3PutObj::send_init(rgw_obj& obj)
 {
-  string resource = obj.bucket.name + "/" + obj.get_oid();
+  string resource;
+  url_encode(obj.bucket.name + "/" + obj.get_oid(), resource);
   string new_url = url;
   if (new_url[new_url.size() - 1] != '/')
     new_url.append("/");