PUT Bucket fails when specified owned bucket.
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 BucketAlreadyEx
In AWS S3, it is returned '200 OK'
@ Swift3
$ ./s3curl.pl --id test -- http://
$ ./s3curl.pl --id test -- http://
<?xml version='1.0' encoding='UTF-8'?>
<Error>
<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>
<BucketName
</Error>
@ AWS S3
$ ./s3curl.pl --id aws -- https:/
$ ./s3curl.pl --id aws -- https:/
Changed in swift3: | |
status: | New → Confirmed |
Note that this seems to depend on the regions.
US Standard, us-east-1: 200 OK nedByYou (409 Conflict)
Others: BUcketAlreadyOw
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 "BucketAlreadyO wnedByYou" description of the following link in detail: docs.aws. amazon. com/AmazonS3/ latest/ API/ErrorRespon ses.html
http://