You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Warn against unsafe static resource locations in MVC and WebFlux #36692
We already perform resource location checks in ResourceHandlerUtils, we should ensure that we log a WARN message if the application chooses a well-known unsafe location like "classpath:" for serving static resources.
changed the title [-]Warn against invalid static resource locations in MVC and WebFlux[/-][+]Warn against unsafe static resource locations in MVC and WebFlux[/+]on Apr 23, 2026
Activity
[-]Warn against invalid static resource locations in MVC and WebFlux[/-][+]Warn against unsafe static resource locations in MVC and WebFlux[/+]Warn against unsafe static resource locations
Reject unsafe resource handling locations
bclozel commentedon May 5, 2026
Reopening since the root Servlet context is a valid location.
Do not warn against Root Servlet context location
Reinstate invalid resource location checks