Bug 1146496 - Empty context mapper maps all the context properties
Summary: Empty context mapper maps all the context properties
Keywords:
Status: NEW
Alias: None
Product: JBoss Fuse Service Works 6
Classification: JBoss
Component: SwitchYard
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Rob Cernich
QA Contact: Matej Melko
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-25 10:40 UTC by Martin Basovník
Modified: 2021-11-08 10:23 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SWITCHYARD-2349 0 Major Open Empty context mapper maps all the context properties 2014-09-25 10:40:08 UTC

Description Martin Basovník 2014-09-25 10:40:07 UTC
Empty context mapper in switchyard.xml maps all the context properties.

<http:contextMapper />

I think that If the context mapper does not include anything in and does not exclude anything, no property should be mapped. BaseRegexContextMapper should behave differently in this situation.

https://github.com/jboss-switchyard/components/blob/2.0.0.Alpha2/common/common/src/main/java/org/switchyard/component/common/composer/BaseRegexContextMapper.java#L122

includes: []
excludes []

boolean matches = green || !red => false || ! false = true


Note You need to log in before you can comment on or make changes to this bug.