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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: website
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: