Skip to content

webjar stops working [SPR-12432] #17038

Closed
@spring-projects-issues

Description

@spring-projects-issues

Titi Wangsa opened SPR-12432 and commented

The application manages to get the resources for webjar when using spring 4.1.0.
4.1.1 also works.
when i use 4.1.2, I get 404 errors
that is the only thing I changed.

example url:
http://localhost:8080/app1/webjars/jquery/2.1.1/jquery.min.js
works with spring 4.1.0
works with spring 4.1.1
does not work with 4.1.2 - giving 404 error

when i traced it, it lead to
org.springframework.web.servlet.resource.PathResourceResolver
the method "isResourceUnderLocation"
constantly returns false
this method is called by "checkResource", and this is new since 4.1.2.


Affects: 3.2.12, 4.0.8, 4.1.2

Backported to: 4.0.9, 3.2.13

Metadata

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