]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw, Policy should be url_decode when assume_role 28728/head
authoryuliyang <yuliyang@cmss.chinamobile.com>
Sat, 22 Jun 2019 06:58:31 +0000 (14:58 +0800)
committeryuliyang <yuliyang@cmss.chinamobile.com>
Tue, 25 Jun 2019 01:04:44 +0000 (09:04 +0800)
Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
(cherry picked from commit ba5caffb1c3b406934992dcaa70da882d4d99b13)

src/rgw/rgw_rest_sts.cc

index 072ee9c25c5937c5acf9f238b8b825e629fa6325..3791ef0f1adebe20ac5504ec609865564ef7894e 100644 (file)
@@ -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;