tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkoli...@apache.org
Subject svn commit: r950809 - /tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java
Date Wed, 02 Jun 2010 22:54:49 GMT
Author: kkolinko
Date: Wed Jun  2 22:54:49 2010
New Revision: 950809

URL: http://svn.apache.org/viewvc?rev=950809&view=rev
Log:
Followup to r950587 which was a fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=49099
Fix lookup of the root context: its name is "", not "/".

Modified:
    tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java

Modified: tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java?rev=950809&r1=950808&r2=950809&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java (original)
+++ tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java Wed Jun  2 22:54:49
2010
@@ -1115,7 +1115,7 @@ public class CoyoteAdapter implements Ad
         }
             
         // Then look in ROOT context of default host
-        Context defaultContext = (Context) defaultHost.findChild("/");
+        Context defaultContext = (Context) defaultHost.findChild("");
         accessLog = findAccessLog(defaultContext);
         if (accessLog != null) {
             return accessLog;



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


Mime
View raw message