Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

camunda-webapp-webjar 7.22.0 causes IllegalArgumentException on org.springframework.web.servlet.resource.ResourceHttpRequestHandler v6.2.0-RC3 #4753

Open
1 task
milazzo-g opened this issue Oct 31, 2024 · 1 comment
Assignees
Labels
type:bug Issues that describe a user-facing bug in the project.

Comments

@milazzo-g
Copy link

milazzo-g commented Oct 31, 2024

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

1

2

STACKTRACE.txt

Breakdown

Pull Requests

No tasks being tracked yet.

Dev2QA handover

  • Does this ticket need a QA test and the testing goals are not clear from the description? Add a Dev2QA handover comment
@milazzo-g milazzo-g added the type:bug Issues that describe a user-facing bug in the project. label Oct 31, 2024
@venetrius venetrius self-assigned this Nov 4, 2024
@venetrius
Copy link
Member

Hi @milazzo-g,
Thanks for reporting this issue. I will look into it and get back to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Issues that describe a user-facing bug in the project.
Projects
None yet
Development

No branches or pull requests

2 participants