rich7420 opened a new pull request, #12216:
URL: https://github.com/apache/ozone/pull/12216

   ## What changes were proposed in this pull request?
   
   S3 Gateway ignores the CreateBucket request body, so a request with 
`Type=Directory` creates a bucket with the default layout 
(`ozone.s3g.default.bucket.layout`, OBS by default) instead of a directory 
bucket.
   
   With this change:
   
   - `Bucket` with `Type=Directory` creates an FSO bucket, which 
ListDirectoryBuckets (HDDS-15450) already lists as a directory bucket.
   - Without a body or a bucket type the default layout is used, as before. 
`Location`, `DataRedundancy` and `LocationConstraint` are still ignored.
   - A malformed body or an unknown bucket type is rejected with `MalformedXML`.
   
   The AWS name format (`base-name--zone-id--x-s3`) is not required: AWS 
clients use S3 Express session auth (CreateSession) for such names by default, 
which S3 Gateway does not implement.
   
   `ObjectStore` gets `createS3Bucket(String, BucketLayout)` so that S3 Gateway 
can choose the layout.
   
   In `us-east-1` the AWS SDK for Java drops a configuration that has no 
`Location`, `LocationConstraint` or tags, so the SDK test sets `Location`.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-17904
   
   ## How was this patch tested?
   
   Added tests in `TestBucketPut` and `AbstractS3SDKV2Tests`.
   Fork CI: pending
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to