UrlHandlerFilter should not strip the trailing slash from the contextPath URL #33565
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Although #33444 has been fixed for root URLs, it looks like there is still a problem with the
UrlHandlerFilter
whenserver.servlet.contextPath
is specified.Here is a minimal application to reproduce it: https://github.com/bdshadow/SpringTrailingSlashTestProject
And use the following
UrlHandlerFilter
:And in this case, both
http://localhost:8080/myApp/greeting
andhttp://localhost:8080/myApp/greeting
work fine, however,http://localhost:8080/myApp
andhttp://localhost:8080/myApp/
don't and return 404.Controller for the root looks like this:
The text was updated successfully, but these errors were encountered: