boto/botocore — pull request #196 by takumn (2013-12-24 16:30:09+00:00)
Title: Choose proper XML label for structured payload

Some XML payloads built for requesting REST API are not conpatible with syntax.

Sample request from aws-cli:

aws s3api put-object-acl --bucket some-bucket-name --key some-key --access-control-policy '
{
"Grants": [
{
"Grantee": {
"ID": "3423e6294e24539a765a1430979cc6c619499eeb75ff49a134c851a87998ec28d569965bfbc868db0720ee92ce0cb01b",
"Type": "CanonicalUser"
},
"Permission": "READ"
}
]
}'

The expected XML payload for this request may be:
http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPUTacl.html#RESTObjectPUTacl-requests

3423e6294e24539a765a1430979cc6c619499eeb75ff49a134c851a87998ec28d569965bfbc868db0720ee92ce0cb01b

READ

but given:

3423e6294e24539a765a1430979cc6c619499eeb75ff49a134c851a87998ec28d569965bfbc868db0720ee92ce0cb01b

READ