IllegalArgumentException on org.springframework.web.servlet.resource.ResourceHttpRequestHandler v6.2.0-RC3 if resource doesn't end with slash #42929
Labels
for: external-project
For an external project and not something we can fix
During context loading the
ResourceHttpRequestHandler
class scans all possible paths and if these do not end with "/" anIllegalArgumentException
type exception is thrown with message "Resource location does not end with slash: …" (seeResourceHttpRequestHandler@282
the call toResourceHttpRequestHandler::assertLocationPath
) this cause several issue with various jar included (in our casecamunda-webapp-webjar
7.22.0 - included bycamunda-bpm-spring-boot-starter-root
7.22.0).The path provided by the library is "classpath:/META-INF/resources/webjars/camunda" which as you can see does not contain the final "/". makes it unusable with
spring-boot
6.2.0-RC3.We temporary fixed creating a copy of
org.springframework.web.servlet.resource.ResourceHttpRequestHandler
in our src folder and modifying starting from line 282 from:ResourceHandlerUtils.assertLocationPath(location);
to:
this solved the issue. Could you please fix it in a next minor?
KR.
Giuseppe.
STACKTRACE.txt
The text was updated successfully, but these errors were encountered: