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 2011/11/09 00:28:59 UTC
svn commit: r1199529 -
/tomcat/trunk/java/org/apache/catalina/core/ApplicationContext.java
Author: markt
Date: Tue Nov 8 23:28:59 2011
New Revision: 1199529
URL: http://svn.apache.org/viewvc?rev=1199529&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=52156
Need to use normalised path to look up resource in DirContext
Modified:
tomcat/trunk/java/org/apache/catalina/core/ApplicationContext.java
Modified: tomcat/trunk/java/org/apache/catalina/core/ApplicationContext.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/ApplicationContext.java?rev=1199529&r1=1199528&r2=1199529&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/ApplicationContext.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/ApplicationContext.java Tue Nov 8 23:28:59 2011
@@ -519,7 +519,7 @@ public class ApplicationContext
String fullPath = context.getPath() + normPath;
String hostName = context.getParent().getName();
try {
- resources.lookup(path);
+ resources.lookup(normPath);
return new URL
("jndi", "", 0, getJNDIUri(hostName, fullPath),
new DirContextURLStreamHandler(resources));
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org