fmorg-git commented on code in PR #12094:
URL: https://github.com/apache/ozone/pull/12094#discussion_r4635263045
##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/MultiDeleteRequestUnmarshaller.java:
##########
@@ -35,4 +48,20 @@ public MultiDeleteRequestUnmarshaller() {
super(MultiDeleteRequest.class);
}
+ @Override
+ public MultiDeleteRequest readFrom(Class<MultiDeleteRequest> clazz, Type
type, Annotation[] annotations,
+ MediaType mediaType, MultivaluedMap<String, String> httpHeaders,
InputStream inputStream)
+ throws WebApplicationException {
+ final byte[] body;
+ try {
+ body = IOUtils.toByteArray(inputStream);
Review Comment:
should there be a bound on the size of this array, similar to
`AWSSignatureProcessor.readAllBytes()`?
--
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]