Files
floci/docs
Daniël van Ziel 804b503a33 fix(s3): refuse a canned ACL sent together with grant headers (#6919)
* 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.
2026-10-30 07:16:44 -04:00
..
2026-03-15 17:43:56 -05:00