]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: replace '+' with "%20" in canonical query string for s3 37338/head
authoryuliyang_yewu <yuliyang_yewu@cmss.chinamobile.com>
Wed, 22 Jul 2020 02:05:17 +0000 (10:05 +0800)
committerNathan Cutler <ncutler@suse.com>
Wed, 23 Sep 2020 11:17:05 +0000 (13:17 +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 bdee372b10d0fb9726b98eb3a2df0a11488d5780..f6348e05b797d8026e1452d4560d66d00f93d2ad 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;
   }