Commit Graph
7 Commits
Author SHA1 Message Date
upstream efecf29ac0 Upstream versity/versitygw state of the touched files before 91e4790870 2026-09-15 00:03:16 +02:00
dualfroz d5ed12db2b move location constraint validation to s3api/utils 2026-09-14 20:29:22 +02:00
upstream 87a4aee115 Upstream versity/versitygw state of the touched files before caf29a97fa 2026-09-14 20:28:40 +02:00
dualfroz 9abdd46f7b test: send the location constraint when creating buckets outside us-east-1 2026-09-14 02:17:22 +02:00
upstream 5207fe5e36 Upstream versity/versitygw state of the touched files before 61e5eb836d 2026-09-14 02:17:22 +02:00
dualfroz 2742fc2216 fix: return IllegalLocationConstraintException for a mismatched LocationConstraint
A region specific endpoint requires CreateBucket to name that same region
in `LocationConstraint`. The gateway reported a mismatch as
`InvalidLocationConstraint`, which AWS reserves for a constraint that is
not a valid location at all, and accepted a request that omitted the
constraint entirely.

Keep `InvalidLocationConstraint` for the global `us-east-1` endpoint,
which takes no constraint, and return
`IllegalLocationConstraintException` when a region specific endpoint gets
a constraint naming another region, or none.

Fixes #2246
2026-09-13 15:08:58 +02:00
upstream 2a5705ab02 Upstream versity/versitygw state of the touched files before b237f0cf7a 2026-09-11 23:12:57 +02:00