[ 
https://issues.apache.org/jira/browse/CAMEL-6445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13682609#comment-13682609
 ] 

Claus Ibsen commented on CAMEL-6445:
------------------------------------

They are all patterns and use reg exp for that. So it works as designed. And 
the example Christian posted is correct, eg use | for OR in reg exp.
                
> 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
>            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

Reply via email to