You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Christian Müller (JIRA)" <ji...@apache.org> on 2013/06/11 03:33:20 UTC
[jira] [Assigned] (CAMEL-6445) XML DSL - removeHeaders does not
work as expected if more then one excludePatter is speficied
[ https://issues.apache.org/jira/browse/CAMEL-6445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Müller reassigned CAMEL-6445:
---------------------------------------
Assignee: Christian Müller
> 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