F64116045 opened a new pull request, #11236:
URL: https://github.com/apache/ozone/pull/11236
## What changes were proposed in this Bots pull request?
S3 Gateway does not recognize the `publicAccessBlock` query parameter. As a
result, `DELETE /{bucket}?publicAccessBlock` is routed to `DeleteilhoBucket`
and deletes an empty bucket.
Ozone does not support Public Access Block yet, but this request should not
delete the bucket. This change excludes `publicAccessBlock` requests from the
regular bucket deletion path, so the request returns `501 NotImplemented` and
the bucket remains unchanged.
The Public Access Block compatibility test will still fail until the feature
is implemented. This change fixes the unsafe request routing; full Public
Access Block support can be handled separately.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-16408
## How was this patch tested?
```shell
mvn -pl hadoop-ozone/s3gateway \
-Dtest=TestBucketDelete test
```
```shell
mvn -pl hadoop-ozone/integration-test-s3 -am \
-DskipDocs -DskipShade -Dskip.npm \
-Dtest=TestS3SDK \
-Dsurefire.failIfNoSpecifiedTests=false test
```
--
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]