Author: deepak Date: Sat Mar 21 11:27:03 2015 New Revision: 1668239 URL: http://svn.apache.org/r1668239 Log: Manually merged fix from trunk r#r1668236 ============================================================ OFBIZ-6183: Update ComponentConfig code to allow empty mount point, as if need to mount website on root then mount-point should be "" instead of "/".
Modified: ofbiz/branches/release12.04/framework/base/src/org/ofbiz/base/component/ComponentConfig.java Modified: ofbiz/branches/release12.04/framework/base/src/org/ofbiz/base/component/ComponentConfig.java URL: http://svn.apache.org/viewvc/ofbiz/branches/release12.04/framework/base/src/org/ofbiz/base/component/ComponentConfig.java?rev=1668239&r1=1668238&r2=1668239&view=diff ============================================================================== --- ofbiz/branches/release12.04/framework/base/src/org/ofbiz/base/component/ComponentConfig.java (original) +++ ofbiz/branches/release12.04/framework/base/src/org/ofbiz/base/component/ComponentConfig.java Sat Mar 21 11:27:03 2015 @@ -741,13 +741,8 @@ public class ComponentConfig { this.position = element.getAttribute("position"); - // default mount point is name if none specified - if (UtilValidate.isEmpty(this.mountPoint)) { - this.mountPoint = this.name; - } - // check the mount point and make sure it is properly formatted - if (!"/".equals(this.mountPoint)) { + if (UtilValidate.isNotEmpty(this.mountPoint)) { if (!this.mountPoint.startsWith("/")) { this.mountPoint = "/" + this.mountPoint; }