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: ericjvandervel...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to