question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Quarkus 2.5.0.CR1 / Final: Assets loaded from jar/classpath are not served (parsed?) correctly anymore

See original GitHub issue

Describe 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: Screenshot 2021-11-22 at 08 34 54

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.: Screenshot 2021-11-22 at 08 28 59

How to Reproduce?

  1. 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 ).
  2. unpack zip from distribution/server-x-dist/target
  3. cd <dist>/bin
  4. run ./kc.sh start-dev
  5. 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:closed
  • Created 2 years ago
  • Comments:22 (17 by maintainers)

github_iconTop GitHub Comments

2reactions
geoandcommented, Nov 23, 2021

You folks have been very helpful in shinning light on the issue 😃.

I’ll let you know when I have a fix.

1reaction
gsmetcommented, Nov 23, 2021

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quarkus 2.5.1.Final 发布-Linuxeden开源社区
Complete changelog #21820 - Move quarkus-devtools-testing to the quarkus-bom as ... CR1 / Final: Assets loaded from jar/classpath are not served (parsed?)
Read more >
chore(deps): update dependency io.quarkus:quarkus ... - GitLab
An error occurred while retrieving approval data for this merge request. chore(deps): update dependency io.quarkus:quarkus ...
Read more >
#quarkus getting started | Explore Tumblr Posts and Blogs | Tumpik
#21602 – Quarkus 2.5.0.CR1 / Final: Assets loaded from jar/classpath are not served (parsed?) correctly anymore. #21601 – Fix issue with DevMode tests....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found