camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Hecker (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAMEL-1716) Simple language support for AND / OR to concat multiple expressions fails if string constants are enclosed in single quotation marks
Date Mon, 15 Jun 2009 21:22:35 GMT

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

Oliver Hecker updated CAMEL-1716:
---------------------------------

    Attachment: camel_1637_greedy_problem.fix.java.patch
                camel_1637_greedy_problem.testcase.java.patch

A patch file to extend the given unit tests to reproduce the problem and a patch containing
the fix for the issue.

> 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
>         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.


Mime
View raw message