2742fc2216272762bc0a3d3d8e280cca5e00ed74
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
Description
My contributions to versity/versitygw: 24 commits, 11 merged PRs
345 KiB
0 Stars
1 Watchers
0 Forks
Languages
Go
95.9%
Shell
4.1%