mirror of
https://github.com/versity/versitygw.git
synced 2026-04-10 08:09:05 +00:00
Fixes #1869 Generally, when object ownership is not explicitly specified during bucket creation, it defaults to `BucketOwnerEnforced`. With `BucketOwnerEnforced`, ACLs are disabled and any attempt to set one results in an `InvalidBucketAclWithObjectOwnership` error. However, there is an edge case. When the `private` canned ACL is used during bucket creation—which is effectively the default ACL for all buckets—`BucketOwnerEnforced` is still permitted. Moreover, if no explicit object ownership is specified together with the `private` canned ACL, the ownership defaults to `BucketOwnerPreferred`. This fix also resolves the issue with rclone bucket creation, since rclone sends `x-amz-acl: private` by default: ``` rclone mkdir vgw:test ```