Quarkus 2.5.0.CR1 / Final: Assets loaded from jar/classpath are not served (parsed?) correctly anymore
See original GitHub issueDescribe the bug
Hey there,
I just tried to update our Keycloak.X distribution (mutable-jar) from 2.4.2.Final to 2.5.0.Final.
Sadly, when opening the main login page with a freshly started distribution, it seems that the assets we load from classpath/jar are not loaded correctly anymore, and thus the page looks like this:
I then checked also with 2.5.0.CR1 -> Bug also appears.
Then with same codebase from our side and 2.4.2.Final -> Assets get served correctly.
I then checked request logs -> assets get “served” with a 200 success message.
Then I checked the actual contents which are served => all served assets (images, css, js) seem to be served, but the actual content seems to be “cut-off”. So the Issue seems to be the parsing of the css/js/png files from the jar. (see screenshot in actual behaviour).
I’ll try to narrow it down more now, but wanted to reach out to you people to ask if you might have an idea what could cause this new behaviour?
Expected behavior
Assets get served correctly as with 2.4.2.Final
Actual behavior
Assets (images, css, js) do not get served correctly. Looks like something has changed in the parsing of these files, resulting in them being kind of cut-off. See e.g.:
How to Reproduce?
- Build Keycloak.X Distribution with pom.xml in quarkus package set to 2.5.0.Final (and postgres to 42.3.1), use e.g.
mvn clean install -DskipTests -Pdistribution
in root directory (or see readme here: https://github.com/keycloak/keycloak/tree/main/quarkus ). - unpack zip from distribution/server-x-dist/target
- cd <dist>/bin
- run ./kc.sh start-dev
- open localhost:8080
(feel free to reach out to get a dist package with 2.4.2.Final/2.5.0.CR1/2.5.0.Final)
Output of uname -a
or ver
Darwin dguhr-mac 20.6.0 Darwin Kernel Version 20.6.0: Tue Oct 12 18:33:42 PDT 2021; root:xnu-7195.141.8~1/RELEASE_X86_64 x86_64
Output of java -version
openjdk version “11.0.12” 2021-07-20 OpenJDK Runtime Environment Homebrew (build 11.0.12+0) OpenJDK 64-Bit Server VM Homebrew (build 11.0.12+0, mixed mode)
GraalVM version (if different from Java)
Quarkus version or git rev
2.5.0.CR1 / 2.5.0.Final
Build tool (ie. output of mvnw --version
or gradlew --version
)
3.6.3
Additional information
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:22 (17 by maintainers)
You folks have been very helpful in shinning light on the issue 😃.
I’ll let you know when I have a fix.
@pedroigor when do you need it?
We announce 2.5.0.Final tomorrow. We usually release .1.Final one week after but let me know if it works for you and if not, we can probably come up with something that works for you.