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 07:06:35 UTC

[jira] Resolved: (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 resolved CAMEL-1716.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

Thanks a lot Oliver for reporting and providing a patch with unit test as well. That is great. Keep 'em coming :)

trunk: 785080.

> 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
>             Fix For: 2.0.0
>
>         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.