Skip to content
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

Attempt to put canned bucket ACL of "public-read" results in "Invalid Request" #561

Closed
lrm25 opened this issue May 13, 2024 · 1 comment · Fixed by #593
Closed

Attempt to put canned bucket ACL of "public-read" results in "Invalid Request" #561

lrm25 opened this issue May 13, 2024 · 1 comment · Fixed by #593
Labels
bug Something isn't working

Comments

@lrm25
Copy link
Contributor

lrm25 commented May 13, 2024

Describe the bug
Direct communication with AWS (after enabling ACLs and public access to the bucket) results in the expected behavior, but attempting to put the ACL via versity results in the following being returned:

An error occurred (InvalidRequest) when calling the PutBucketAcl operation: Invalid Request

To Reproduce

  1. Create a bucket in the Amazon S3 console.
  2. Select the bucket and select the Permissions tab.
  3. Check the Block public access section and select Edit and set Block all public access to off if not already off.
  4. Go to the Object Ownership section, select Edit, and select ACLs Enabled and set Object Ownership to Object Writer if this hasn't already been done.
  5. Set the AWS_ENDPOINT_URL value to point to the versity gateway, and send the following command: aws --no-verify-ssl s3api put-bucket-acl --bucket <name> --acl public-read

Expected behavior
The request succeeds, and the get-bucket-acl command returns a Grants element similar to the following:

{
     "Grantee": {
         "Type": "Group",
         "URI": "http://acs.amazonaws.com/groups/global/AllUsers"
     },
     "Permission": "READ"
 }

Server Version

Version  : v0.21
Build    : 10ed210
BuildTime: 2024-05-02_11:46:50PM
Darwin Lukes-MacBook-Pro.local 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:25 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6030 arm64
@lrm25 lrm25 added the bug Something isn't working label May 13, 2024
@jonaustin09
Copy link
Contributor

Thanks for the bug report, I'll take a look. For your information our implementation of Bucket ACLs differ from traditional AWS ACLs. Some features aren't supported in our end. I'll double check this part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants