Ralf Steppacher created CAMEL-6445:
--------------------------------------
Summary: XML DSL - removeHeaders does not work as expected if more
then one excludePatter is speficied
Key: CAMEL-6445
URL: https://issues.apache.org/jira/browse/CAMEL-6445
Project: Camel
Issue Type: Bug
Components: camel-core
Affects Versions: 2.10.3
Reporter: Ralf Steppacher
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".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira