camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (CAMEL-3619) Improve the Simple Expression Language parser to detect syntax errors
Date Mon, 27 Jun 2011 09:51:47 GMT

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

Claus Ibsen edited comment on CAMEL-3619 at 6/27/11 9:51 AM:
-------------------------------------------------------------

We may consider a real grammar for the simple language.

      was (Author: davsclaus):
    We may consider a real grammer for the simple language.
  
> 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
>             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

        

Mime
View raw message