You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2014/07/15 15:37:09 UTC

svn commit: r1610696 - in /ofbiz/branches/release11.04: ./ applications/content/script/org/ofbiz/content/content/ContentServices.xml

Author: jacopoc
Date: Tue Jul 15 13:37:08 2014
New Revision: 1610696

URL: http://svn.apache.org/r1610696
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/release11.04/   (props changed)
    ofbiz/branches/release11.04/applications/content/script/org/ofbiz/content/content/ContentServices.xml

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

Modified: ofbiz/branches/release11.04/applications/content/script/org/ofbiz/content/content/ContentServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release11.04/applications/content/script/org/ofbiz/content/content/ContentServices.xml?rev=1610696&r1=1610695&r2=1610696&view=diff
==============================================================================
--- ofbiz/branches/release11.04/applications/content/script/org/ofbiz/content/content/ContentServices.xml (original)
+++ ofbiz/branches/release11.04/applications/content/script/org/ofbiz/content/content/ContentServices.xml Tue Jul 15 13:37:08 2014
@@ -800,10 +800,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"/>