From ba5caffb1c3b406934992dcaa70da882d4d99b13 Mon Sep 17 00:00:00 2001 From: yuliyang Date: Sat, 22 Jun 2019 14:58:31 +0800 Subject: [PATCH] rgw, Policy should be url_decode when assume_role Signed-off-by: yuliyang --- src/rgw/rgw_rest_sts.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_rest_sts.cc b/src/rgw/rgw_rest_sts.cc index d620e504ae6..f508c70dbe4 100644 --- a/src/rgw/rgw_rest_sts.cc +++ b/src/rgw/rgw_rest_sts.cc @@ -355,7 +355,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); } s->info.args.append(key, value); -- 2.39.5