]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: replace '+' with "%20" in canonical query string for s3 37467/head
authoryuliyang_yewu <yuliyang_yewu@cmss.chinamobile.com>
Wed, 22 Jul 2020 02:05:17 +0000 (10:05 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 29 Sep 2020 16:05:46 +0000 (18:05 +0200)
 v4 auth.

fix https://tracker.ceph.com/issues/45983

Signed-off-by: yuliyang_yewu <yuliyang_yewu@cmss.chinamobile.com>
(cherry picked from commit 9002be34aa8524816708db4f3429bfe8634b776a)

src/rgw/rgw_auth_s3.cc

index dc96471ff7a86967eecac53f4d50544f9531dc75..f7a8af6797a3b12c02e6b85680074ec80d71be82 100644 (file)
@@ -497,7 +497,7 @@ std::string get_v4_canonical_qs(const req_info& info, const bool using_qs)
   }
   if (params->find_first_of('+') != std::string::npos) {
     copy_params = *params;
-    boost::replace_all(copy_params, "+", " ");
+    boost::replace_all(copy_params, "+", "%20");
     params = &copy_params;
   }