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

XML DSL - removeHeaders does not work as expected if more then one excludePatter is speficied

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • website
    • None
    • Unknown

    Description

      To reproduce put the following in a route:

      <camel:setHeader headerName="header1">
      <camel:constant>1</camel:constant>
      </camel:setHeader>

      <camel:setHeader headerName="header2">
      <camel:constant>2</camel:constant>
      </camel:setHeader>

      <camel:setHeader headerName="header3">
      <camel:constant>3</camel:constant>
      </camel:setHeader>

      <camel:removeHeaders pattern="*" excludePattern="header1,header2" />

      Expected behavior: "header3" should be gone.
      Actual behavior: All headers are gone.

      Specifying only one exclude pattern works. I.e.

      <camel:removeHeaders pattern="*" excludePattern="header1" />

      removes headers "header2" and "header3" but leaves "header1".

      Attachments

        Activity

          People

            muellerc Christian Müller
            ralfsteppacher Ralf Steppacher
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: