[
https://issues.apache.org/jira/browse/CAMEL-17591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen reopened CAMEL-17591:
---------------------------------
Assignee: Claus Ibsen
Yes it seems we should handle this better, thanks for the new test case.
CAMEL-13692 caused this problem.
> OgnlHelper problem after merge
> ------------------------------
>
> Key: CAMEL-17591
> URL: https://issues.apache.org/jira/browse/CAMEL-17591
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Reporter: Richard Groote
> Assignee: Claus Ibsen
> Priority: Minor
>
> Currently doing an migration from Apache Camel 2.25.x to 3.11.x and a simple
> expression using ognl is no longer working.
> Below is an example expression
> {code:java}
> ${body.replaceAll("Bik (Ru)","bik_ru").replaceAll("a","b") {code}
> In the 2.25.x OgnlHelper.splitOgnl the above works because the
> 'parenthesisBracket' where detected with a boolean. In the 3.x code base the
> parenthesisBracket is detected using a int and the number of '(' and ')' are
> not the same. The reason that the brackets are not the same is because there
> are more or less brackets within the string being replaced.
> It would be nice if the OgnlHelper would be capable of handling this
> situations.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)