[ 
https://issues.apache.org/jira/browse/CAMEL-27833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18153190#comment-18153190
 ] 

Urmila Unni edited comment on CAMEL-27833 at 12/1/26, 5:34 AM:
---------------------------------------------------------------

PR: [https://github.com/apache/camel/pull/]31148

_Claude Code on behalf of Urmila Unni_

 


was (Author: JIRAUSER314431):
PR: https://github.com/apache/camel/pull/<number>

_Claude Code on behalf of Urmila Unni_

> camel-aws2-translate: a String CamelAwsTranslateTerminologyNames header is 
> ignored
> ----------------------------------------------------------------------------------
>
>                 Key: CAMEL-27833
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27833
>             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-translate for 
> CAMEL-23832 (commit 
> https://github.com/apache/camel/commit/ed21c0d35408d9c8fd340e12eb3bac97d585474f,
>  pull request https://github.com/apache/camel/pull/31141).
> This is a separate problem of the component; the descriptions change only 
> documents the current behavior.
> h4. A String terminology header is ignored
> {{Translate2Producer.translateText}} reads the header with 
> getHeader(TERMINOLOGY_NAMES, Collection.class); a String (one name, or "a,b") 
> converts to null, so the header is dropped without notice (confirmed with a 
> test). A String[] or a List works.
> Proposed change: also accept a String (one name or comma-separated), or fail 
> with a clear error.
> _Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to