-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Quarkus 2.5.0.CR1 / Final: Assets loaded from jar/classpath are not served (parsed?) correctly anymore #21602
Comments
Hi, Is there any chance you could reproduce this in a smaller example and add that to the issue? |
@geoand I am still looking into the issue myself to make absolutely sure nothing's wrong "on our side". Current assumption is it's not, bc. same code (latest main) works with quarkus 2.4.2.Final bom, and themes which we load from jar contian the right files with right contents in the dist (just checked to make sure there's nothing wrong with the jar creation approach). Sadly it's not very easy to provide a small reproducer for this, but will talk this through with a colleague later on. Based on these assumptions, I still wanted to open the bug in hopes of someone has an "educated guess" what could cause the new behaviour for us, and what change between 2.4.2 and 2.5.0 might have caused it, so we could react accordingly. |
I really think we'll need a simple reproducer for this as took a super quick look but have no idea where to find anything in the code. |
Soo @geoand |
1 similar comment
This comment has been minimized.
This comment has been minimized.
Thanks a lot for looking into it! I'll have a look soon and let you know |
I have no idea TBH - I'll keep you posted. |
So this definitely does not have anything to do with the reactive / async behavior as this issue is for RESTEasy Classic. |
Considering that even
fails, we can at least remove the classloader processing as a potential source for this behaviour. shoutout to @andreaTP who checked this ;) |
I have identified the Quarkus commit that causes this problem but I still need to figure out why it's problematic in this case. |
@geoand can you share the commit? |
I see why it worked before and does not now, so now all that remains is to come up with a fix :) |
@geoand great! Let us know if we can support any further 🙂 |
You folks have been very helpful in shinning light on the issue :). I'll let you know when I have a fix. |
#21655 takes care of it |
@geoand Awesome! Do you know about the plans for 2.5.1.Final? It would be nice to get this one and some other changes in 2.5.x before we release KC 16. |
@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. |
Fix InputStream handling as Response entity in RESTEasy Classic
@gsmet It's not all that urgent for us, so you don't need to go out of your way other than including this in 2.5.1 (which looks like you already are going to). |
@stianst OK thanks. I confirm it's going to be included in 2.5.1.Final. |
Fixes: quarkusio#21602 (cherry picked from commit 350965b)
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:
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?
mvn clean install -DskipTests -Pdistribution
in root directory (or see readme here: https://github.com/keycloak/keycloak/tree/main/quarkus ).(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
orver
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
orgradlew --version
)3.6.3
Additional information
No response
The text was updated successfully, but these errors were encountered: