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
Priority: Minor
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