-
Notifications
You must be signed in to change notification settings - Fork 86
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
OpenWebstart get stuck on certificate selection screen (multi-threading with event dispatch thread hack) #962
Comments
i hooked up the debugger and found:
checkTrustServer is synchronized and blocking the AWT EventQueue-1 using adoptium_11.0.23_x64 full thread dump:
if you read this far: I found a potentially hack to simply overcome this problem for my clients, but it's completely incorrect - hence I'm not publishing that here... send me a message if you want to know more :-) |
I was able to reproduce this with a self-issued certificate on localhost.
The problem exists when doing a backend call in a SwingUtilities.invokeLater at the same time as a background thread calls a the backend to the server with a broken certificate.
Result: the certificate dialog and the UI are completely frozen.
Now it's super easy to reproduce, see my comment:
karakun/OpenWebStart#594 (comment)
I suspect that the locking does not work properly in this case, in the following section:
IcedTea-Web/core/src/main/java/net/adoptopenjdk/icedteaweb/client/parts/dialogs/security/SecurityDialogs.java
Line 305 in d841424
and most likely both call
JNLPRuntime.getSecurityDialogHandler().postMessage(message);
btw this issue was first raised here: karakun/OpenWebStart#594
but the broken code is in this repo (14 year old code ... :-))
The text was updated successfully, but these errors were encountered: