camunda-webapp-webjar 7.22.0 causes IllegalArgumentException on org.springframework.web.servlet.resource.ResourceHttpRequestHandler v6.2.0-RC3 #4753
Labels
type:bug
Issues that describe a user-facing bug in the project.
Environment
any
Description
camunda-webapp-webjar 7.22.0 causes IllegalArgumentException on org.springframework.web.servlet.resource.ResourceHttpRequestHandler v6.2.0-RC3
Steps to reproduce
create an application with spring boot 6.2.0-RC3 and camunda-webapp-webjar 7.22.0 included by camunda-bpm-spring-boot-starter-root 7.22.0
Observed Behavior
During context loading the ResourceHttpRequestHandler class scans all possible paths and if these do not end with "/" an IllegalArgumentException type exception is thrown with message "Resource location does not end with slash: …" (see ResourceHttpRequestHandler@283 the call to ResourceHandlerUtils::assertLocationPath). The path provided by your library is "classpath:/META-INF/resources/webjars/camunda" which as you can see does not contain the final "/". Could you fix it in a next minor? This is critical as the current version of camunda-webapp-webjar (7.22.0) is unusable with spring-boot 6.2.0-RC3.
Expected behavior (Required on creation)
All path from library should ends with "/"
Root Cause (Required on prioritization)
Path from library not ends with "/"
Solution Ideas
Add "/" on all path
Hints
Links
issue on spring-boot repo
STACKTRACE.txt
Breakdown
Pull Requests
Dev2QA handover
The text was updated successfully, but these errors were encountered: