diff --git a/src/main/java/org/gaul/s3proxy/S3ProxyHandler.java b/src/main/java/org/gaul/s3proxy/S3ProxyHandler.java index 9409942..094f097 100644 --- a/src/main/java/org/gaul/s3proxy/S3ProxyHandler.java +++ b/src/main/java/org/gaul/s3proxy/S3ProxyHandler.java @@ -1589,6 +1589,10 @@ public class S3ProxyHandler { throw new S3Exception(S3ErrorCode.MALFORMED_X_M_L); } + if (dmor.objects.size() > 1_000) { + throw new S3Exception(S3ErrorCode.INVALID_ARGUMENT); + } + Collection blobNames = new ArrayList<>(); for (DeleteMultipleObjectsRequest.S3Object s3Object : dmor.objects) {