[
https://issues.apache.org/jira/browse/CAMEL-27816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-27816:
--------------------------------
Description:
Found while improving the option descriptions of camel-aws2-rekognition for
CAMEL-23832 (commit
https://github.com/apache/camel/commit/76b15186608df88e4e2421561d9386dd56102b49,
pull request https://github.com/apache/camel/pull/31139).
This is a separate problem of the component; the descriptions change only
documents the current behavior.
h4. Features as Strings fail
For detectLabels, {{Rekognition2Producer}} passes the
CamelAwsRekognitionFeatures header as a raw Collection to
{{builder.features(...)}}; a Collection of Strings (for example from YAML)
fails with ClassCastException in the SDK copier.
Proposed change: use featuresWithStrings for String values, as the facial
attributes already do.
_Claude Code on behalf of davsclaus_
was:
Found while improving the option descriptions of camel-aws2-rekognition for
CAMEL-23832 (pull request https://github.com/apache/camel/pull/31139).
This is a separate problem of the component; the descriptions change only
documents the current behavior.
h4. Features as Strings fail
For detectLabels, {{Rekognition2Producer}} passes the
CamelAwsRekognitionFeatures header as a raw Collection to
{{builder.features(...)}}; a Collection of Strings (for example from YAML)
fails with ClassCastException in the SDK copier.
Proposed change: use featuresWithStrings for String values, as the facial
attributes already do.
_Claude Code on behalf of davsclaus_
> camel-aws2-rekognition: a CamelAwsRekognitionFeatures header of Strings fails
> with ClassCastException
> -----------------------------------------------------------------------------------------------------
>
> Key: CAMEL-27816
> URL: https://issues.apache.org/jira/browse/CAMEL-27816
> 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-rekognition for
> CAMEL-23832 (commit
> https://github.com/apache/camel/commit/76b15186608df88e4e2421561d9386dd56102b49,
> pull request https://github.com/apache/camel/pull/31139).
> This is a separate problem of the component; the descriptions change only
> documents the current behavior.
> h4. Features as Strings fail
> For detectLabels, {{Rekognition2Producer}} passes the
> CamelAwsRekognitionFeatures header as a raw Collection to
> {{builder.features(...)}}; a Collection of Strings (for example from YAML)
> fails with ClassCastException in the SDK copier.
> Proposed change: use featuresWithStrings for String values, as the facial
> attributes already do.
> _Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)