From: yuliyang Date: Sat, 22 Jun 2019 06:58:31 +0000 (+0800) Subject: rgw, Policy should be url_decode when assume_role X-Git-Tag: v14.2.3~135^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=84a91c108455cb256639ff50f95606b3c1009b27;p=ceph.git rgw, Policy should be url_decode when assume_role Signed-off-by: yuliyang (cherry picked from commit ba5caffb1c3b406934992dcaa70da882d4d99b13) --- diff --git a/src/rgw/rgw_rest_sts.cc b/src/rgw/rgw_rest_sts.cc index 072ee9c25c59..3791ef0f1ade 100644 --- a/src/rgw/rgw_rest_sts.cc +++ b/src/rgw/rgw_rest_sts.cc @@ -362,7 +362,7 @@ void RGWHandler_REST_STS::rgw_sts_parse_input() if (pos != string::npos) { std::string key = t.substr(0, pos); std::string value = t.substr(pos + 1, t.size() - 1); - if (key == "RoleArn") { + if (key == "RoleArn" || key == "Policy") { value = url_decode(value); } ldout(s->cct, 10) << "Key: " << key << "Value: " << value << dendl;