The following behavior documented by org.springframework.web.filter.ServletRequestPathFilter
does not hold true with current version:
DispatcherServlet will parse and cache the
RequestPath
if it detects that parsedPathPatterns
are enabled for anyHandlerMapping
but it will skip doing that ifServletRequestPathUtils#PATH_ATTRIBUTE
already 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