svn commit: r634802 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataEvents.java

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

svn commit: r634802 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataEvents.java

jaz-3
Author: jaz
Date: Fri Mar  7 12:21:09 2008
New Revision: 634802

URL: http://svn.apache.org/viewvc?rev=634802&view=rev
Log:
updated streaming event to allow passing parameters in as path info (using UtilHttp.getParameterMap())

Modified:
    ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataEvents.java

Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataEvents.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataEvents.java?rev=634802&r1=634801&r2=634802&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataEvents.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataEvents.java Fri Mar  7 12:21:09 2008
@@ -65,7 +65,10 @@
 
         GenericValue userLogin = (GenericValue) session.getAttribute("userLogin");
         String userAgent = request.getHeader("User-Agent");
-        String contentId = request.getParameter("contentId");
+
+        Map httpParams = UtilHttp.getParameterMap(request);
+        String contentId = (String) httpParams.get("contentId");
+        //String contentId = request.getParameter("contentId");
         if (UtilValidate.isEmpty(contentId)) {
             String errorMsg = "Required parameter contentId not found!";
             Debug.logError(errorMsg, module);