[prev in list] [next in list] [prev in thread] [next in thread] 

List:       synapse-dev
Subject:    [jira] [Assigned] (SYNAPSE-1060) Property mediator configuration changes with requests if the type =
From:       "Isuru Udana Loku Narangoda (JIRA)" <jira () apache ! org>
Date:       2016-10-31 2:07:58
Message-ID: JIRA.13016495.1477879648000.129439.1477879678414 () Atlassian ! JIRA
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/SYNAPSE-1060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Isuru Udana Loku Narangoda reassigned SYNAPSE-1060:
---------------------------------------------------

    Assignee: Isuru Udana Loku Narangoda  (was: Hiranya Jayathilaka)

> Property mediator configuration changes with requests if the type = OM
> ----------------------------------------------------------------------
> 
> Key: SYNAPSE-1060
> URL: https://issues.apache.org/jira/browse/SYNAPSE-1060
> Project: Synapse
> Issue Type: Bug
> Reporter: Isuru Udana Loku Narangoda
> Assignee: Isuru Udana Loku Narangoda
> 
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <sequence xmlns="http://ws.apache.org/ns/synapse" name="main">
> <property name="AA">
> <a xmlns=""/>
> </property>
> <enrich>
> <source type="inline">
> <b xmlns=""/>
> </source>
> <target xmlns:ns="http://org.apache.synapse/xsd" action="child" xpath="$ctx:AA"/>
> </enrich>
> <log>
> <property name="AA" expression="$ctx:AA"/>
> </log>
> </sequence>
> {code}
> Here initial configuration of the property mediator getting updated with each and \
> every request. Fix would be to clone the valueElement at the \
> PropertyMediatorFactory Instead of 
> {code}
> if (value != null) {
> propMediator.setValue(value.getAttributeValue(), dataType);
> } else if (valueElement != null) {
> propMediator.setValueElement(valueElement);
> {code}
> we need to use
> {code}
> if (value != null) {
> propMediator.setValue(value.getAttributeValue(), dataType);
> } else if (valueElement != null) {
> propMediator.setValueElement(valueElement.cloneOMElement());
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic