Gargi Jaiswal created HDDS-15608:
------------------------------------

             Summary: Return BucketAlreadyOwnedByYou when the same S3 owner 
recreates an existing bucket
                 Key: HDDS-15608
                 URL: https://issues.apache.org/jira/browse/HDDS-15608
             Project: Apache Ozone
          Issue Type: Sub-task
          Components: S3
            Reporter: Gargi Jaiswal
            Assignee: Gargi Jaiswal


s3-tests {color:#00875a}{{test_bucket_create_exists}}{color} fails when the 
same S3 client creates a bucket twice. Ozone S3 Gateway always returns 409 with 
error code {*}{{BucketAlreadyExists}}{*}.

AWS S3 expects:
||Scenario||HTTP||Error code||
|Same S3 owner creates a bucket that already 
exists|409|{{BucketAlreadyOwnedByYou}}|
|Different S3 owner creates a bucket with an existing global 
name|409|{{BucketAlreadyExists}}|

Add *{{BUCKET_ALREADY_OWNED_BY_YOU}}* to {color:#00875a}{{S3ErrorTable}}{color} 
({{{}BucketAlreadyOwnedByYou{}}}, HTTP 409) and return when same S3 owner 
creates a bucket that already exists



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to