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 parsed PathPatterns are enabled for any HandlerMapping but it will skip doing that if ServletRequestPathUtils#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