camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicola Ferraro (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-11106) camel-sql - allow using the $simple{} syntax for query arguments
Date Tue, 04 Apr 2017 13:01:41 GMT

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

Nicola Ferraro updated CAMEL-11106:
-----------------------------------
    Fix Version/s: 2.18.4

> camel-sql - allow using the $simple{} syntax for query arguments
> ----------------------------------------------------------------
>
>                 Key: CAMEL-11106
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11106
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-sql
>    Affects Versions: 2.18.3
>            Reporter: Nicola Ferraro
>            Assignee: Nicola Ferraro
>             Fix For: 2.18.4
>
>
> The $simple{} syntax is useful to avoid clash with spring property placeholders. The
camel-sql component does not recognize it, so when users create endpoints like:
> {code}
> <to id="_to1" uri="sql:select * from accounts where customerid = :#${header.xxx}?dataSource=dataSource"/>
> {code}
> I.e. use the id field and the "${header.xxx}" syntax, spring tries to find a property
named "header.xxx" and crashes.
> We should allow writing:
> {code}
> <to id="_to1" uri="sql:select * from accounts where customerid = :#$simple{header.xxx}?dataSource=dataSource"/>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message