svn commit: r1610695 - in /ofbiz/branches/release12.04: ./ 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: r1610695 - in /ofbiz/branches/release12.04: ./ applications/content/script/org/ofbiz/content/content/ContentServices.xml

jacopoc
Author: jacopoc
Date: Tue Jul 15 13:36:52 2014
New Revision: 1610695

URL: http://svn.apache.org/r1610695
Log:
Applied fix from trunk for revision: 1610692
===

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/branches/release12.04/   (props changed)
    ofbiz/branches/release12.04/applications/content/script/org/ofbiz/content/content/ContentServices.xml

Propchange: ofbiz/branches/release12.04/
------------------------------------------------------------------------------
  Merged /ofbiz/trunk:r1610692

Modified: ofbiz/branches/release12.04/applications/content/script/org/ofbiz/content/content/ContentServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release12.04/applications/content/script/org/ofbiz/content/content/ContentServices.xml?rev=1610695&r1=1610694&r2=1610695&view=diff
==============================================================================
--- ofbiz/branches/release12.04/applications/content/script/org/ofbiz/content/content/ContentServices.xml (original)
+++ ofbiz/branches/release12.04/applications/content/script/org/ofbiz/content/content/ContentServices.xml Tue Jul 15 13:36:52 2014
@@ -778,10 +778,10 @@
             <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">
             <field-to-result field="val" result-name="${key}"/>
         </iterate-map>
-
         <set field="mapIn.contentId"  from-field="persistOut.contentId"/>
         <!-- <set field="mapIn.fromDate"  from-field="nowTimestamp"/> -->
         <set field="mapIn.communicationEventId"  from-field="parameters.communicationEventId"/>