mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 15:49:33 -05:00
* fix(s3): refuse a canned ACL sent together with grant headers PutBucketAcl, PutObjectAcl, PutObject, CopyObject and CreateMultipartUpload now answer 400 InvalidRequest, as S3 does, when x-amz-acl and any x-amz-grant-* header are both set, instead of applying the canned ACL and dropping the grants. The check moves from CreateBucket into the shared ACL header resolver so every operation is covered; blank values still count as absent. Fixes #5826 * docs(s3): note that a canned ACL and grant headers are refused together * refactor(s3): share the grant-header check and test header list Compute one hasGrants flag in resolveObjectAclXml for both the canned-ACL refusal and the no-ACL fallback, and list the five grant headers once in a @MethodSource.