You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2013/01/08 21:22:01 UTC

svn commit: r1430486 - /tomcat/trunk/java/org/apache/catalina/webresources/StandardRoot.java

Author: markt
Date: Tue Jan  8 20:22:01 2013
New Revision: 1430486

URL: http://svn.apache.org/viewvc?rev=1430486&view=rev
Log:
Need to follow new rules on paths

Modified:
    tomcat/trunk/java/org/apache/catalina/webresources/StandardRoot.java

Modified: tomcat/trunk/java/org/apache/catalina/webresources/StandardRoot.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/webresources/StandardRoot.java?rev=1430486&r1=1430485&r2=1430486&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/webresources/StandardRoot.java (original)
+++ tomcat/trunk/java/org/apache/catalina/webresources/StandardRoot.java Tue Jan  8 20:22:01 2013
@@ -442,9 +442,9 @@ public class StandardRoot extends Lifecy
             f = new File(((Host)context.getParent()).getAppBaseFile(), f.getName());
         }
         if (f.isDirectory()) {
-            main = new DirResourceSet(this, f.getAbsolutePath(), "", "");
+            main = new DirResourceSet(this, f.getAbsolutePath(), "/", "/");
         } else if(f.isFile() && docBase.endsWith(".war")) {
-            main = new JarResourceSet(this, f.getAbsolutePath(), "", "");
+            main = new JarResourceSet(this, f.getAbsolutePath(), "/", "/");
         } else {
             throw new IllegalArgumentException(
                     sm.getString("standardRoot.startInvalidMain"));



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org