ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r1667736 - /ofbiz/branches/release14.12/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java
Date Thu, 19 Mar 2015 13:05:14 GMT
Author: deepak
Date: Thu Mar 19 13:05:14 2015
New Revision: 1667736

URL: http://svn.apache.org/r1667736
Log:
Applied fix from trunk r#1667733.
=========================================
OFBIZ-6183: Fixed String index out of range exception if webapp mounted on "". 

Modified:
    ofbiz/branches/release14.12/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java

Modified: ofbiz/branches/release14.12/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release14.12/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java?rev=1667736&r1=1667735&r2=1667736&view=diff
==============================================================================
--- ofbiz/branches/release14.12/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java
(original)
+++ ofbiz/branches/release14.12/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java
Thu Mar 19 13:05:14 2015
@@ -71,7 +71,8 @@ public class ControlServlet extends Http
         super.init(config);
         if (Debug.infoOn()) {
             ServletContext servletContext = config.getServletContext();
-            Debug.logInfo("Loading webapp [" + servletContext.getContextPath().substring(1)
+ "], located at " + servletContext.getRealPath("/"), module);
+            String webappName = servletContext.getContextPath().length() != 0 ? servletContext.getContextPath().substring(1)
: "";
+            Debug.logInfo("Loading webapp [" + webappName + "], located at " + servletContext.getRealPath("/"),
module);
         }
 
         // configure custom BSF engines



Mime
View raw message