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 2009/06/16 06:56:35 UTC

[jira] Assigned: (CAMEL-1716) Simple language support for AND / OR to concat multiple expressions fails if string constants are enclosed in single quotation marks

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

Claus Ibsen reassigned CAMEL-1716:
----------------------------------

    Assignee: Claus Ibsen

> Simple language support for AND / OR to concat multiple expressions fails if string constants are enclosed in single quotation marks
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1716
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1716
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.0.0
>            Reporter: Oliver Hecker
>            Assignee: Claus Ibsen
>         Attachments: camel_1637_greedy_problem.fix.java.patch, camel_1637_greedy_problem.testcase.java.patch
>
>
> The current implementation for CAMEL-1637 fails if the string constants in the two expressions are enclosed in single quotation marks as given in the following example 
> {code}
> ${in.header.foo} == 'abc' and ${in.header.bar} == '123'
> {code}
> This is due to an issue with the GROUP_PATTERN regular expression in SimpleLanguageSupport.java. The matching pattern in between the single quotes is greedy and thus does not match correctly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.