-
Notifications
You must be signed in to change notification settings - Fork 38
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
java.lang.NullPointerException when brute force deteciton is enabled on Keycloak 24.0.1 #52
Comments
Thanks for the report. We are currently testing 24, and we will incorporate this before a release that supports that version.
|
@jacquemard It looks like there is a regression in Keycloak where We'll probably stop the NPE from being thrown, but since there is no way to get the realm, the listener will just fail silently until Keycloak fixes the upstream bug. |
Oh ok I see, thanks for the details and clarifying the issue, in that case we'll probably wait for the fix from keycloak side to be pushed before upgrading to v24. |
#51 has a fix to stop this throwing an exception, but we will not fix the core regression from Keycloak. However, it is now on their radar, and they actually looked at the bug. |
@jacquemard this isn't going to be changed by the Keycloak team, so this event type won't be received by this event listener type for the time being. I'll leave this open until we have the time to figure out a workaround or someone wants to suggest and PR a fix. |
Thanks a lot @xgp for the update and your involvement on this. I'll see what we will do concerning this issue. |
* update to 24 and switch (finally) to testcontainers. * getting webhook port working properly * stop npe when session.getContext() is not set. #52
@xgp Has this been resolved? Still seeing this error on webhook. (Using V.30)
|
@spinanicky That's a different error. It looks like there are cases where there is a Where it's failing: https://github.com/p2-inc/keycloak-events/blob/main/src/main/java/io/phasetwo/keycloak/events/WebhookSenderEventListenerProvider.java#L166 |
With Keycloak 24.0.1, under some conditions, the following error occurs. Seems to be when we activate brute force detection with
ext-event-http
. On Keycloak 23.0.7, everything seems to work fine. I have also tested to build from the branchxgp/24-testcontainers
, and the same error occurs :I am not sure what the current status regarding the support of KC 24 is, but I thought I might as well report this issue.
Steps to reproduce
docker compose up
with a keycloak-events build within aproviders
folder:In the created realm:
Let me know if you need additional information.
The text was updated successfully, but these errors were encountered: