Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17591

OgnlHelper problem after merge

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.16.0
    • camel-core
    • 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

          Activity

            People

              davsclaus Claus Ibsen
              r.groote@beinformed.com Richard Groote
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: