tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48033] New: ProxyDirContext.cacheLookup
Date Wed, 21 Oct 2009 10:01:17 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48033

           Summary: ProxyDirContext.cacheLookup
           Product: Tomcat 6
           Version: 6.0.20
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: ericjvandervelden@gmail.com


Hi,

   protected CacheEntry cacheLookup(String name) {
        if (cache == null)
            return (null);
        if (name == null)
            name = "";
        for (int i = 0; i < nonCacheable.length; i++) {
            if (name.startsWith(nonCacheable[i])) {

In my case, 

 nonCacheable[0] = "/WEB-INF/lib/"
 nonCacheable[1] = "/WEB-INF/classes/"
 name = "/WEB-INF/classes"

So name.startsWith(nonCacheable[i])==false, even when i==1, because name
doesn't end with a "/". Is this the intention?

Thanks, 

Eric J.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


Mime
View raw message