Closed stilet closed 1 year ago
@stilet thanks for the report. How are you triggering the event?
@stilet can you try building https://github.com/p2-inc/keycloak-events/tree/xgp/issue-34 and running your test again?
The exception looks like the commitImpl
isn't getting run in the transaction associated with the request scope. This may have changed in some Keycloak update.
This branch does it from a fresh transaction/session. The upside is that this will probably solve the problem. The downside is the KeycloakSession
you have access to in the onUserAdded/onUserRemoved
is not the session associated with the request scope.
@stilet thanks for the report. How are you triggering the event?
I create a user from AdminUI:
@stilet can you try building https://github.com/p2-inc/keycloak-events/tree/xgp/issue-34 and running your test again?
The exception looks like the
commitImpl
isn't getting run in the transaction associated with the request scope. This may have changed in some Keycloak update.This branch does it from a fresh transaction/session. The upside is that this will probably solve the problem. The downside is the
KeycloakSession
you have access to in theonUserAdded/onUserRemoved
is not the session associated with the request scope.
Great! Everything works...
Keycloak 21.0.1, 22.0.1. Release module 0.17, 0.18, 0.19-SNAPSHOT
my class: