PUT Bucket fails when specified owned bucket.

Bug #1433930 reported by Masaki Tsukuda
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Swift3
Confirmed
Undecided
Unassigned

Bug Description

When I call PUT Bucket twice with same bucket name in Swift3, it is returned '409 BucketAlreadyExists'.
In AWS S3, it is returned '200 OK'

@ Swift3
$ ./s3curl.pl --id test -- http://localhost:8080/test-owned-bucket -X PUT
$ ./s3curl.pl --id test -- http://localhost:8080/test-owned-bucket -X PUT
<?xml version='1.0' encoding='UTF-8'?>
<Error>
    <Code>BucketAlreadyExists</Code>
    <Message>The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.</Message>
    <RequestId>txb2593d1530d148bf8a0bb-00550a7062</RequestId>
    <BucketName>test-owned-bucket</BucketName>
</Error>

@ AWS S3
$ ./s3curl.pl --id aws -- https://s3.amazonaws.com/test-owned-bucket -X PUT
$ ./s3curl.pl --id aws -- https://s3.amazonaws.com/test-owned-bucket -X PUT

Revision history for this message
Kota Tsuyuzaki (tsuyuzaki-kota) wrote :

Note that this seems to depend on the regions.

US Standard, us-east-1: 200 OK
Others: BUcketAlreadyOwnedByYou (409 Conflict)

Anyways, we might fix the response however it seems not urgent because almost of S3 regions returns 409 Conflict and then Swift3 also does so (even though the message is different a bit).

See "BucketAlreadyOwnedByYou" description of the following link in detail:
http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html

Changed in swift3:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.