[
https://issues.apache.org/jira/browse/CAMEL-28037?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrea Cosentino reassigned CAMEL-28037:
----------------------------------------
Fix Version/s: 4.25.0
Assignee: Andrea Cosentino
> camel-aws2-s3: listObjects and listBuckets drop the continuation token, and
> the documentation advertises two operations that do not exist
> -----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-28037
> URL: https://issues.apache.org/jira/browse/CAMEL-28037
> Project: Camel
> Issue Type: Bug
> Components: camel-aws2-s3
> Reporter: Andrea Cosentino
> Assignee: Andrea Cosentino
> Priority: Major
> Fix For: 4.25.0
>
>
> Found during an audit of the cloud components (camel-aws, camel-azure,
> camel-google, camel-huawei) at commit 7c0644752e17. Every item below was
> verified against the source.
> h4. 1. listObjects and listBuckets never page
> {{AWS2S3Producer.listObjects}} builds a {{ListObjectsV2Request}} with bucket,
> delimiter and prefix only, calls {{listObjectsV2}} once and sets
> {{objectList.contents()}} as the body. The continuation token of the response
> is neither followed nor surfaced, and {{maxKeys}} is never set, so a bucket
> with more than 1000 keys is silently truncated and the route has no way to
> ask for the next page. {{AWS2S3Constants}} has no token, marker, maxKeys or
> truncated constant at all. listBuckets has the same shape.
> Proposed change: read a continuation token and a max-keys header, and set the
> next token (and an is-truncated flag) on the out message, like aws2-lambda
> does with marker/maxItems.
> h4. 2. The producer operations table lists two operations that do not exist
> {{aws2-s3-producer-operations.adoc}} has table rows for {{uploadObject}}
> (marked "(default)") and {{multipartUpload}}. Neither is a constant of
> {{AWS2S3Operations}}; multipartUpload is actually the boolean
> {{multiPartUpload}} option, and the default behaviour has no operation name.
> A user who copies the table writes a URI that fails with "Unsupported
> operation".
> Proposed change: describe the default behaviour and the multiPartUpload
> option as what they are, and remove the two rows from the operations table.
> _Claude Code on behalf of oscerd_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)