svn commit: r1610692 - /ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentServices.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1610692 - /ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentServices.xml

jacopoc
Author: jacopoc
Date: Tue Jul 15 13:35:56 2014
New Revision: 1610692

URL: http://svn.apache.org/r1610692
Log:
Fix for bug reported in OFBIZ-5338: prevent the risk of adding fields to the response map that are not part of the OUT attributes of the service definition.

Modified:
    ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentServices.xml

Modified: ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentServices.xml?rev=1610692&r1=1610691&r2=1610692&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentServices.xml (original)
+++ ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentServices.xml Tue Jul 15 13:35:56 2014
@@ -778,13 +778,13 @@
             <results-to-map map-name="persistOut"/>
         </call-service>
 
-        <iterate-map key="key" value="val" map="persistOut">
+        <set-service-fields service-name="createCommContentDataResource" mode="OUT" map="persistOut" to-map="filteredPersistOut"/>
+        <iterate-map key="key" value="val" map="filteredPersistOut">
             <if-compare field="key" operator="equals" value="responseMessage">
                 <continue/>
             </if-compare>
             <field-to-result field="val" result-name="${key}"/>
         </iterate-map>
-
         <set field="mapIn.contentId"  from-field="persistOut.contentId"/>
         <set field="mapIn.communicationEventId"  from-field="parameters.communicationEventId"/>
         <set field="mapIn.sequenceNum"  from-field="parameters.sequenceNum"/>