ChenSammi commented on code in PR #8557:
URL: https://github.com/apache/ozone/pull/8557#discussion_r2165749766
##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/BucketEndpoint.java:
##########
@@ -752,6 +771,97 @@ private void addKey(ListObjectResponse response, OzoneKey
next) {
response.addKey(keyMetadata);
}
+ private void verifyBucketOwner(String bucketName, HttpHeaders httpHeaders)
+ throws OS3Exception {
+ if (httpHeaders == null) {
+ return;
+ }
+ String expectedBucketOwner =
httpHeaders.getHeaderString("x-amz-expected-bucket-owner");
+ if (expectedBucketOwner == null || expectedBucketOwner.isEmpty()) {
+ return;
Review Comment:
Is this "x-amz-expected-bucket-owner" an optional or mandatory header?
--
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]