Bug #41189
closed
rgw: Put User Policy is sensitive to whitespace
Added by Abhishek Lekshmanan over 4 years ago.
Updated over 4 years ago.
Description
Currently a json document like
{
"Version":"2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:ListAllMyBuckets",
"Resource": ["*"],
"Condition": {
"BoolIfExists": {
"sts:Authentication": "false"
}
}
}
]
}
would fail Put User Policy which is usually processed as a POST request and form is urlencoded as expected.
Abhishek Lekshmanan wrote:
Currently a json document like
[...]
would fail Put User Policy which is usually processed as a POST request and form is urlencoded as expected.
eg. reproducer using aws cli
aws iam put-user-policy --user-name s3test1 --endpoint=http://localhost:8000 --policy-name foo --policy-document=file://user.json
- Status changed from New to Fix Under Review
- Pull request ID set to 29578
- Status changed from Fix Under Review to 17
- Status changed from 17 to Pending Backport
- Copied to Backport #41459: nautilus: rgw: Put User Policy is sensitive to whitespace added
- Status changed from Pending Backport to Resolved
While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".
Also available in: Atom
PDF