Favicon not showing with Spring 6.2.x Spring Boot 3.4.x #4930
Labels
scope:spring-boot
Changes to the Spring Boot starter.
type:bug
Issues that describe a user-facing bug in the project.
Environment (Required on creation)
Environments with Spring Boot 3.4.* (7.22, 7.23).
Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket)
Camunda Webapps don't show the favicon with Spring Boot 3.4.x and related Spring versions.
The issue doesn't happen with earlier versions.
Steps to reproduce (Required on creation)
Start Camunda with Spring Boot 3.4.x.
For instance create a new setup with https://start.camunda.com/ and set versions to Camunda 7.22.2 and Spring Boot 3.4.2.
Observed Behavior (Required on creation)
Expected behavior (Required on creation)
Root Cause (Required on prioritization)
We define the favicon's resource location without trailing slash Source which until now was fine.
Recently, as the WARN log also suggests, Spring automatically adds a trailing slash to it.
Due to this trailing slash the resource resolution tries to load
![Image](https://private-user-images.githubusercontent.com/8102438/411555767-429fa957-3f88-4163-b379-727b252b64da.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDQwMzEsIm5iZiI6MTczOTMwMzczMSwicGF0aCI6Ii84MTAyNDM4LzQxMTU1NTc2Ny00MjlmYTk1Ny0zZjg4LTQxNjMtYjM3OS03MjdiMjUyYjY0ZGEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMTk1NTMxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjdmODI3YjNhMjExZGEyYTZmYWU5NWY1N2ZiOWM5NDk5YjM1ZmMzZjE0NGJhZjQ5ODMxMWVjZGQ1MGJkZjI5ZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.0fYsupTh3hh795elgAtWUlntI7vCAFzQo2NkKCx9y-0)
META-INF/resources/webjars/camunda/camunda/favicon.ico
instead ofMETA-INF/resources/webjars/camunda/favicon.ico
. With twice/camunda
in path:If we add a trailing slash then the favicon doesn't work with earlier Spring versions either.
Spring resource resolving:
relativePath
.META-INF/resources/webjars/camunda
META-INF/resources/webjars
+/camunda/favicon.ico
✅applicationPath
?META-INF/resources/webjars/camunda/
META-INF/resources/webjars/camunda
+/camunda/favicon.ico
❌Related issues:
Solution Ideas
ResourceResolver
for favicon: fix: add favicon resource resolver #4931applicationPath
. I suspect that might also have issues.Hints
Links
Breakdown
Pull Requests
Dev2QA handover
The text was updated successfully, but these errors were encountered: