mirror of
https://github.com/ceph/ceph
synced 2025-02-24 03:27:10 +00:00
Merge pull request #31124 from theanalyst/rgw/user-policy-args
rgw: iam: add all http args to req_info Reviewed-By: Casey Bodley <cbodley@redhat.com> Reviewed-By: Pritha Srivastava <prsivas@redhat.com> Reviewed-By: Yuval Lifshitz <yuvalif@yahoo.com>
This commit is contained in:
commit
7933cd191f
@ -26,13 +26,8 @@ void RGWHandler_REST_IAM::rgw_iam_parse_input()
|
||||
for (const auto& t : tokens) {
|
||||
auto pos = t.find("=");
|
||||
if (pos != string::npos) {
|
||||
const auto key = t.substr(0, pos);
|
||||
if (key == "Action") {
|
||||
s->info.args.append(key, t.substr(pos + 1, t.size() - 1));
|
||||
} else if (key == "AssumeRolePolicyDocument" || key == "Path" || key == "PolicyDocument") {
|
||||
const auto value = url_decode(t.substr(pos + 1, t.size() - 1));
|
||||
s->info.args.append(key, value);
|
||||
}
|
||||
s->info.args.append(t.substr(0,pos),
|
||||
url_decode(t.substr(pos+1, t.size() -1)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user