The following behavior documented by org.springframework.web.filter.ServletRequestPathFilter does not hold true with current version:
DispatcherServlet will parse and cache the
RequestPathif it detects that parsedPathPatternsare enabled for anyHandlerMappingbut it will skip doing that ifServletRequestPathUtils#PATH_ATTRIBUTEalready exists.
This PR adds the logic to skip parse and cache RequestPath if ServletRequestPathUtils.PATH_ATTRIBUTE already exists.
The exception where multiple parsing must happen is for Forward requests.
Comment From: sergiuprdn
Updated javadoc as indicated by PR title. Please check