[
https://issues.apache.org/jira/browse/CAMEL-27806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18152951#comment-18152951
]
Claus Ibsen commented on CAMEL-27806:
-------------------------------------
Also deprecate the header {{CamelAwsS3VectorsIndexStatus}}
({{AWS2S3VectorsConstants.INDEX_STATUS}}): the component never sets it, and an
S3 Vectors index has no status. Suggested in the review of
https://github.com/apache/camel/pull/31138 ({{@Deprecated(forRemoval = true)}}
plus a {{deprecationNote}}, as for similarityThreshold in the same file).
_Claude Code on behalf of davsclaus_
> camel-aws2-s3-vectors: an ARN path names the wrong bucket, the consumer
> checks vectorIndexName after starting
> -------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-27806
> URL: https://issues.apache.org/jira/browse/CAMEL-27806
> Project: Camel
> Issue Type: Bug
> Components: camel-aws2
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-aws2-s3-vectors for
> CAMEL-23832 (pull request https://github.com/apache/camel/pull/31138).
> These are separate problems of the component; the descriptions change only
> documents the current behavior.
> h4. 1. A bucket ARN in the path names a bucket that does not exist
> {{AWS2S3VectorsComponent.createEndpoint}} cuts a path that starts with "arn:"
> after its last ':'. A vector bucket ARN is
> {{arn:aws:s3vectors:<region>:<account>:bucket/<name>}}, so vectorBucketName
> becomes "bucket/<name>". The old option text promised ARN support; no test
> covers it.
> Proposed change: strip "bucket/" too, or pass the ARN as vectorBucketArn /
> indexArn on the requests.
> h4. 2. The consumer checks vectorIndexName after the scheduler started
> {{AWS2S3VectorsConsumer.doStart}} runs the required check after
> {{super.doStart()}}.
> Proposed change: check before.
> h4. 3. A non-numeric value in consumerQueryVector is skipped
> {{parseVectorString}} skips it with a WARN, so the query vector has the wrong
> dimension and every poll fails on the service side.
> Proposed change: fail at start.
> h4. 4. Minor
> The endpoint's own @UriPath vectorBucketName field is never set, so a trace
> log prints null; the CamelAwsS3VectorsIndexStatus header is never set.
> _Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)