Author: jleroux
Date: Sat Apr 3 21:07:37 2010
New Revision: 930580
URL:
http://svn.apache.org/viewvc?rev=930580&view=revLog:
A modified patch from BJ "Tenant login can cause a problem when contacting a delegator" (
https://issues.apache.org/jira/browse/OFBIZ-3578) - OFBIZ-3578
If the tenantid has leading/trailing spaces
Modified:
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/LoginWorker.java
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/LoginWorker.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/LoginWorker.java?rev=930580&r1=930579&r2=930580&view=diff==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/LoginWorker.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/LoginWorker.java Sat Apr 3 21:07:37 2010
@@ -334,6 +334,7 @@ public class LoginWorker {
String currentDelegatorTenantId = null;
if (delegatorNameHashIndex > 0) {
currentDelegatorTenantId = oldDelegatorName.substring(delegatorNameHashIndex + 1);
+ if (currentDelegatorTenantId != null) currentDelegatorTenantId.trim();
}
if (delegatorNameHashIndex == -1 || (currentDelegatorTenantId != null && !tenantId.equals(currentDelegatorTenantId))) {