You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "alexandredavi (via GitHub)" <gi...@apache.org> on 2023/01/27 17:43:12 UTC
[GitHub] [camel] alexandredavi commented on a diff in pull request #9233: CAMEL-18979: Add delimiter and prefix to ListObjectsRequest
alexandredavi commented on code in PR #9233:
URL: https://github.com/apache/camel/pull/9233#discussion_r1089246494
##########
components/camel-aws/camel-aws2-s3/src/main/java/org/apache/camel/component/aws2/s3/AWS2S3Producer.java:
##########
@@ -562,7 +562,13 @@ private void listObjects(S3Client s3Client, Exchange exchange) throws InvalidPay
message.setBody(objectList.contents());
}
} else {
- ListObjectsResponse objectList = s3Client.listObjects(ListObjectsRequest.builder().bucket(bucketName).build());
+ final ListObjectsRequest listObjectsRequest = ListObjectsRequest
+ .builder()
+ .bucket(bucketName)
+ .delimiter(getConfiguration().getDelimiter())
Review Comment:
I did not checked if the delimiter and prefix are setted on the configuration because it already is null on the ListObjectsRequest builder and it will stay as null if is null on the configuration, but i can add the check to avoid an unecessary operation on the builder.
About the need of go also to main, should i do a cherry-pick?
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org