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

Shorthand usage of property placeholders in onException does not work.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.10.1
    • 2.10.4, 2.11.0
    • None
    • None
    • Unknown

    Description

      The syntax propName does not resolve in the onException block and the header is set with the value propName. The syntax ${properties:propName} does work as expected. Further the shorthand syntax also works correctly in the usual route.

      <camel:onException>
      <camel:exception>java.lang.Exception</camel:exception>
      <camel:setHeader headerName="anyHeaderName">
      <camel:simple>myPropName</camel:simple>
      </camel:setHeader>
      ..
      </camel:onException>

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            adam.wehner Adam Wehner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: