keycloak-scim/model/infinispan/src
mkrueger92 498be3d928
Reuse already fixed code to fetch offline user (#22429)
The problem is again the wrap(...) function.
In case the user is not found, then null is
returned. This can happen when a federated user
is deleted on the federation side but Keycloak
is not informed about it. In that case, the
session is still present but no UserModel can
be created.

Without this patch the stream contains null
values. Some downstream users can not cope well
with that.

The adjustment of the function getUserSessionsCount(...)
is slightly more expensive in execution, but
returns the correct number.

Closes #22428

Co-authored-by: Martin Krüger <mkrueger@mkru.de>
2023-09-21 20:19:09 +00:00
..
main Reuse already fixed code to fetch offline user (#22429) 2023-09-21 20:19:09 +00:00
test/java/org/keycloak Model upgrade Hibernate/JPA 2023-04-27 13:36:54 +02:00