Project

General

Profile

Actions

Bug #17398

open

S3 CreateBucket should issue 409 BucketAlreadyOwnedByYou or 400 IllegalLocationConstraintException for mismatched placement pool

Added by Robin Johnson over 7 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Old buckets have a placement pool of an empty string.

Newer configurations, per the multisite documentation have a default_placement of "default-placement".

If you issue a new CreateBucket, for an existing old bucket that's under your user, it will return 409 BucketAlreadyExists, which has the additional meaning that the bucket is owned by a user OTHER than you.

I think in this case, it should be generating 409 BucketAlreadyOwnedByYou, as a specific case of the design intent of the 409 response: 409 Conflict. The bucket DOES already exist, and is accessible to the present user, but the creation parameters may not match the existing bucket (placement-rule or zonegroup)

Actions

Also available in: Atom PDF