-
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
Fix Banner check on filesystem containing special chars #24635
Conversation
This comment has been minimized.
This comment has been minimized.
9932bac
to
0c4ffb7
Compare
@@ -114,9 +113,10 @@ private boolean isQuarkusCoreBanner(URL url) throws IOException { | |||
// We determine whether the banner is the default by checking to see if the jar that contains it also | |||
// contains this class. This way although somewhat complicated guarantees that any rename of artifacts | |||
// won't affect the check | |||
try (JarFile jarFile = new JarFile(Paths.get(new URI(jarPath)).toFile())) { | |||
try { | |||
JarFile jarFile = new JarFile(new File(jarPath)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The jarFile
needs to be closed. Was there a reason to move it inside the try
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, you are right @aloubyansky reverted 👍 good catch!
0c4ffb7
to
b7ab201
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aloubyansky thanks! I'm not a fan of committing jar files either, in this case we are actually committing 2 plain zip files (renamed to |
I think it's OK in theory but my guess is that Windows might not like it. We will see what CI says. |
@gsmet you are right, the CI is failing on Windows 🙁 Can we skip this test on Windows? Any alternative approach? |
Let's wait for the full CI report and we will decide from there. |
This comment has been minimized.
This comment has been minimized.
b7ab201
to
b05e852
Compare
Failing Jobs - Building b05e852
Full information is available in the Build summary check run. Failures⚙️ JVM Tests - JDK 11 Windows #- Failing: extensions/smallrye-reactive-messaging-amqp/deployment
! Skipped: integration-tests/reactive-messaging-amqp 📦 extensions/smallrye-reactive-messaging-amqp/deployment✖
|
Thanks! |
FTR. This introduces a regression, see #24686. |
I had to revert this fix and the jar files added in this PR also breaks the Jakarta transformation:
leads to:
|
sorry for the trouble! @gsmet would you like to provide guidance on how to test this? |
See the I tried building a proper jar with the |
Thanks, I'll take a look next week probably. |
Yeah it's quite weird. I haven't digged too much as I had too many other things on my plate. |
Hi @andreaTP, if you want, I can take this effort over. Alternativly, if you wnat to continue working on this, I could also just verify that everything works on windows? |
@Postremus I will not look into this until next week, if you want to take over feel free to go ahead. I just needed to fix the special characters thing 🙂 |
This is a fix for the issue discovered in Keycloak here: keycloak/keycloak#10954
I'm completely open for guidance in changing the approach for the test.
cc. @pedroigor @DGuhr