Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Unknown
-
Regression
Description
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
${body.replaceAll("Bik (Ru)","bik_ru").replaceAll("a","b")
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.
Attachments
Issue Links
- relates to
-
CAMEL-13962 OgnlHelper.splitOgnl not able to handle Regex properly
- Resolved