You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2011/08/30 08:32:37 UTC
[jira] [Assigned] (CAMEL-3619) Improve the Simple Expression
Language parser to detect syntax errors
[ https://issues.apache.org/jira/browse/CAMEL-3619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-3619:
----------------------------------
Assignee: Claus Ibsen
> Improve the Simple Expression Language parser to detect syntax errors
> ---------------------------------------------------------------------
>
> Key: CAMEL-3619
> URL: https://issues.apache.org/jira/browse/CAMEL-3619
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 2.4.0
> Reporter: Xavier Coulon
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: Future
>
>
> The example below contains a syntax error that is not detected at runtime (a '.' before the 'regex' operator at line 3) :
> {noformat} <choice>
> <when>
> <simple>${in.body}.regex '^D1.*$'</simple>
> <to uri="seda:dataintegration.filtered.elements" />
> </when>
> <otherwise>
> <to uri="seda:dataintegration.ignored.elements" />
> </otherwise>
> </choice>{noformat}
> In that situation, all messages are sent to the first endpoint, no matter what their body contains.
> See the discussion thread : http://camel.465427.n5.nabble.com/Filtering-messages-with-simple-regex-td3369198.html
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira