https://bz.apache.org/bugzilla/show_bug.cgi?id=58228

            Bug ID: 58228
           Summary: ApplicationContext.GET_RESOURCE_REQUIRE_SLASH vs
                    StandardRoot.getResource(String)
           Product: Tomcat 8
           Version: 8.0.24
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: thomas.mpp.mas...@gmail.com

If ApplicationContext.GET_RESOURCE_REQUIRE_SLASH == true then all is good: 
ApplicationContext.getResourceAsStream(String) checks whether the path has a
leading slash and, if not, returns null.

If ApplicationContext.GET_RESOURCE_REQUIRE_SLASH == false then
ApplicationContext.getResourceAsStream(String) ends up delegating to
StandardRoot.getResource(String) and thence to StandardRoot.validate(String),
which (regardless of the GET_RESOURCE_REQUIRE_SLASH value) throws
IllegalArgumentException if the path doesn't have a leading slash.

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