Claus Ibsen created CAMEL-27816:
-----------------------------------
Summary: 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
Fix For: 4.25.0
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_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)