https://issues.apache.org/bugzilla/show_bug.cgi?id=56512

            Bug ID: 56512
           Summary: filter url-pattern xyz/* does not match xyz/
           Product: Tomcat 7
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: j...@yahoo.com

I was looking for what patterns are valid for url-pattern, and I was unable to
find any official documentation, so I went to the source:
http://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/ApplicationFilterFactory.java

I believe this line is an error:

                } else if ('/' == requestPath.charAt(testPath.length() - 2)) {

And I believe it should be:

                } else if ('/' == requestPath.charAt(testPath.length() - 1)) {

-- 
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