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

            Bug ID: 62968
           Summary: Avoid unnecessary call to WebResourceRoot.getResource
                    in Mapper.internalMapWrapper
           Product: Tomcat 9
           Version: 9.0.x
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: awilkin...@pivotal.io
  Target Milestone: -----

When considering rule 7, Mapper.internalMapWrapper makes a call to
WebResourceRoot.getResource(String) that is only necessary if
Context.getMapperDirectoryRedirectEnabled() returns true. It looks like the
logic could be reworked so that enablement of the redirect is checked first,
and the getResource(String) call is then only made when it is enabled.

This was originally discussed with Mark Thomas in the context of a Spring Boot
issue. Please see
https://github.com/spring-projects/spring-boot/issues/8522#issuecomment-443177285
for further details.

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