svn commit: r785538 - /ofbiz/branches/release09.04/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalEvents.java

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

svn commit: r785538 - /ofbiz/branches/release09.04/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalEvents.java

lektran
Author: lektran
Date: Wed Jun 17 10:21:48 2009
New Revision: 785538

URL: http://svn.apache.org/viewvc?rev=785538&view=rev
Log:
Merged r777794 from the trunk
Use the system userlogin for processing paypal notifications

Modified:
    ofbiz/branches/release09.04/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalEvents.java

Modified: ofbiz/branches/release09.04/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalEvents.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalEvents.java?rev=785538&r1=785537&r2=785538&view=diff
==============================================================================
--- ofbiz/branches/release09.04/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalEvents.java (original)
+++ ofbiz/branches/release09.04/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalEvents.java Wed Jun 17 10:21:48 2009
@@ -261,15 +261,12 @@
             Debug.logError("###### PayPal did not verify this request, need investigation!", module);
         }
         
-        // get the user
+        // get the system user
         GenericValue userLogin = null;
-        String userLoginId = request.getParameter("custom");
-        if (userLoginId == null)
-            userLoginId = "admin";
         try {
-            userLogin = delegator.findByPrimaryKey("UserLogin", UtilMisc.toMap("userLoginId", userLoginId));
+            userLogin = delegator.findByPrimaryKey("UserLogin", UtilMisc.toMap("userLoginId", "system"));
         } catch (GenericEntityException e) {
-            Debug.logError(e, "Cannot get UserLogin for: " + userLoginId + "; cannot continue", module);
+            Debug.logError(e, "Cannot get UserLogin for: system; cannot continue", module);
             request.setAttribute("_ERROR_MESSAGE_", UtilProperties.getMessage(resourceErr, "payPalEvents.problemsGettingAuthenticationUser", locale));
             return "error";
         }