[ 
https://issues.apache.org/jira/browse/CAMEL-27362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen reassigned CAMEL-27362:
-----------------------------------

    Assignee: Claus Ibsen

> camel-yaml-dsl - endpoint parameters: keys with a dash are turned into 
> camelCase, which breaks map options such as cxf properties.*
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-27362
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27362
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-yaml-dsl
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.24.0
>
>
> {{YamlSupport}} (camel-yaml-dsl-common) builds the endpoint URI from a 
> {{parameters:}} mapping with 
> {{parameters.put(StringHelper.dashToCamelCase(key), ...)}}. That suits the 
> options of the component, but a key of a map option (multiValue prefix) is 
> passed on to the library as it is, and it is changed too:
> {code:yaml}
> - to:
>     uri: cxf://http://localhost:8080/orders
>     parameters:
>       properties.ws-security.username: alice
>       properties.security.callback-handler: "#myHandler"
> {code}
> The keys become {{properties.wsSecurity.username}} and 
> {{properties.security.callbackHandler}}, which CXF ignores. The same happens 
> in Kamelet templates, which use the YAML DSL.
> Expected: only the option name is camelCased; the part after a multiValue 
> prefix (such as {{properties.}}) is kept as written.
> Found while adding new Kamelets to the Kamelet catalog 
> (apache/camel-kamelets, 2026-11-21).



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

Reply via email to