peterxcli commented on code in PR #10309:
URL: https://github.com/apache/ozone/pull/10309#discussion_r3418839431
##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/BucketEndpoint.java:
##########
@@ -341,6 +342,11 @@ public MultiDeleteResponse multiDelete(
) throws OS3Exception, IOException {
S3GAction s3GAction = S3GAction.MULTI_DELETE;
+ if (request.getObjects() != null
+ && request.getObjects().size() > S3Consts.S3_DELETE_OBJECTS_MAX_KEYS) {
+ throw newError(S3ErrorTable.MALFORMED_XML, bucketName);
Review Comment:
@sreejasahithi thanks for providing the specific issue link, after take
deeper look I think you're right.
The existing mint test case only assert the http code
https://ozone.s3.peterxcli.dev/?q=delete_bucket&run=2026-06-15T07-46-21Z&caseSuite=s3_tests&test=test_multi_object_delete_key_limit#search-section
I've checked the minio archive code, and it indeed return `MALFORMED_XML`
for this delete object limit exceed case.
https://github.com/minio/minio/blob/7aac2a2c5b7c882e68c1ce017d8256be2feea27f/cmd/bucket-handlers.go#L472-L476
--
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]