-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
s3api get-bucket-policy does not return valid policy #849
Comments
Yeah in this case we have the JSON policy within a JSON string so the quotes are escaped which I agree is not ideal. The only thing that makes this difficult is that this would be a breaking change to the output. As a workaround, you can use the |
|
I'd like to follow up on this issue. We can't really change the existing behavior because we need to stay backwards compatible, so we have a few options:
I'm leaning towards the first option, but I'm open to either. Thoughts? cc @kyleknap @mtdowling @rayluo @JordonPhillips |
For now we can start with an example: #1583 If we decide to add option 2, we can always update this example as needed. |
problem
$s3api get-bucket-policy
returns a JSON policy, buts3api put-bucket-policy
does not accept its returned policy data.
How to reproduce
create a bucket and set bucket policy
Retrieve bucket policy
As you see, API server's Response Body and aws cli's Response Body is different.
aws cli's response is
{ "Policy" : "api-server's-response-as-string"}
put s3's bucket policy back to the original bucket
aws s3api get-bucket-policy
should return API server's response body as is.Ref #678
The text was updated successfully, but these errors were encountered: