[
https://issues.apache.org/jira/browse/CAMEL-6445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13682988#comment-13682988
]
Christian Müller commented on CAMEL-6445:
-----------------------------------------
I also think we should not make the Camel DSL more complicated if there is
already a solution for a given problem.
> 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: website
> Reporter: Ralf Steppacher
> Assignee: Christian Müller
>
> 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