Skip to content

PathResourceResolver.getResource() does not log warning if Resource#getURL() throws exception #31623

Closed
@matthiaskraaz

Description

If ServletContextResource.getURL() throws a FileNotFoundException because ServletContext.getResource(String) returns null, then org.springframework.web.servlet.resource.PathResourceResolver.getResource(String, Resource) does not log a warning as intended.

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions