]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw, Policy should be url_decode when assume_role
authoryuliyang <yuliyang@cmss.chinamobile.com>
Sat, 22 Jun 2019 06:58:31 +0000 (14:58 +0800)
committeryuliyang <yuliyang@cmss.chinamobile.com>
Sat, 22 Jun 2019 06:58:31 +0000 (14:58 +0800)
Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
src/rgw/rgw_rest_sts.cc

index d620e504ae65fd8114bdca19055ca2279501497a..f508c70dbe4c53e80ce7dcb2b7e6520bc297a9b7 100644 (file)
@@ -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);