Skip to content

Warn against unsafe static resource locations in MVC and WebFlux #36692

@bclozel

Description

@bclozel

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:" or the root Servlet context for serving static resources.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions