<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8875"><span class="" style="font-size: 10pt;" id="yui_3_16_0_1_1447805832994_3016">Hi to all.</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8875"><span style="font-size: 13.3333px;" id="yui_3_16_0_1_1447805832994_3045">Working on my custom user federation provider i'm facing up to a possible bug.</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8875"><span style="font-size: 13.3333px;" id="yui_3_16_0_1_1447805832994_3046">I used the last 1.6.1 final keycloak version.</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8875"><span style="font-size: 13.3333px;" id="yui_3_16_0_1_1447805832994_3158">In my legacy user database i have 3 users:</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8875"><span style="font-size: 13.3333px;">user1</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8875"><span style="font-size: 13.3333px;">user2</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8875"><span style="font-size: 13.3333px;">user3</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8875"><span style="font-size: 13.3333px;"><br></span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8875"><span style="font-size: 13.3333px;" id="yui_3_16_0_1_1447805832994_3159">I try to log into my secured application with all three users' credentials and all goes fine.</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8875"><span style="font-size: 13.3333px;" id="yui_3_16_0_1_1447805832994_3166">This way all three users are present inside the keycloak properties file so, if i open keycloak admin console and list all users by clicking on the "view all users" button, inside the user section, keycloak lists to me </span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8875"><span style="font-size: 13.3333px;">user1</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8875"><span style="font-size: 13.3333px;">user2</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8875"><span style="font-size: 13.3333px;">user3</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8875"><span style="font-size: 13.3333px;"><br></span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8875"><span style="font-size: 13.3333px;" id="yui_3_16_0_1_1447805832994_3167">Now i delete user3 from my legacy database, then i come back to the keycloak admin console in order to list users again.</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8875"><span style="font-size: 13.3333px;" id="yui_3_16_0_1_1447805832994_4703">After clicking the "view all users" button... nothing is listed and the page stucks in loading mode.</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8875"><span style="font-size: 13.3333px;"><br></span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8875"><span style="font-size: 13.3333px;" id="yui_3_16_0_1_1447805832994_3198">Debugging my code, after "view all users" click... my user federation provider executes the isValid() method for all the 3 users.</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8875"><span style="font-size: 13.3333px;" id="yui_3_16_0_1_1447805832994_3232">The isValid method returns true for user1</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8875"><span style="font-size: 13.3333px;" id="yui_3_16_0_1_1447805832994_3233"> true for user2</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8875" dir="ltr"><span style="font-size: 13.3333px;" id="yui_3_16_0_1_1447805832994_3243"> false for the deleted user3</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8991"><span id="yiv9051589767yui_3_16_0_1_1447767119243_8993" class="" style="font-size: 10pt;"> </span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_8995"><span style="font-size: 13.3333px;" id="yui_3_16_0_1_1447805832994_3262">The last false value is returned to the</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9023"><span id="yiv9051589767yui_3_16_0_1_1447767119243_9029" class="" style="font-size: 10pt;"> </span><span id="yiv9051589767yui_3_16_0_1_1447767119243_9031" class="" style="font-size: 10pt; font-family: Consolas; background: yellow;">UserModel validateAndProxy(RealmModel </span><span id="yiv9051589767yui_3_16_0_1_1447767119243_9033" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62); background: yellow;">realm</span><span id="yiv9051589767yui_3_16_0_1_1447767119243_9035" class="" style="font-size: 10pt; font-family: Consolas; background: yellow;">, UserModel </span><span id="yiv9051589767yui_3_16_0_1_1447767119243_9037" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62); background: yellow;">local</span><span id="yiv9051589767yui_3_16_0_1_1447767119243_9039" class="" style="font-size: 10pt; font-family: Consolas; background: yellow;">)</span><span id="yiv9051589767yui_3_16_0_1_1447767119243_9041" class="" style="font-size: 10pt; font-family: Consolas;"> </span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9023"><font face="Consolas" id="yui_3_16_0_1_1447805832994_3304"><span style="font-size: 13.3333px;" id="yui_3_16_0_1_1447805832994_3303">method which will return a NULL UserModel object.</span></font></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9023"><font face="Consolas"><span style="font-size: 13.3333px;"><br></span></font></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9023" dir="ltr"><font face="Consolas" id="yui_3_16_0_1_1447805832994_3317"><span style="font-size: 13.3333px;" id="yui_3_16_0_1_1447805832994_3316">ValidateAndProxy method passes the ball to </span></font><span id="yiv9051589767yui_3_16_0_1_1447767119243_9367" class="" style="font-size: 10pt;">org.keycloak.models</span><span id="yiv9051589767yui_3_16_0_1_1447767119243_9369" class="" style="font-size: 10pt; font-family: Consolas;">.UserFederationManager with its method:</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9023"><span class="" style="font-size: 10pt; font-family: Consolas;"><br></span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9067" style="margin-left: 0.6pt; text-indent: 35.4pt;"><b id="yiv9051589767yui_3_16_0_1_1447767119243_9069" class=""><span id="yiv9051589767yui_3_16_0_1_1447767119243_9071" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(127, 0, 85);">protected</span></b><span id="yiv9051589767yui_3_16_0_1_1447767119243_9073" class="" style="font-size: 10pt; font-family: Consolas;"> UserModel validateAndProxyUser(RealmModel </span><span id="yiv9051589767yui_3_16_0_1_1447767119243_9075" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62);">realm</span><span id="yiv9051589767yui_3_16_0_1_1447767119243_9077" class="" style="font-size: 10pt; font-family: Consolas;">, UserModel </span><span id="yiv9051589767yui_3_16_0_1_1447767119243_9079" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62);">user</span><span id="yiv9051589767yui_3_16_0_1_1447767119243_9081" class="" style="font-size: 10pt; font-family: Consolas;">) {</span><span id="yiv9051589767yui_3_16_0_1_1447767119243_9083" class="" style="font-size: 10pt; font-family: Consolas;"></span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9087" style="margin-left: 36pt;"><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9089" class="" style="font-size: 10pt; font-family: Consolas;"> UserModel </span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9091" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62);">managed</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9093" class="" style="font-size: 10pt; font-family: Consolas;"> = </span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9095" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(0, 0, 192);">managedUsers</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9097" class="" style="font-size: 10pt; font-family: Consolas;">.get(</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9099" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62);">user</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9101" class="" style="font-size: 10pt; font-family: Consolas;">.getId());</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9103" class="" style="font-size: 10pt; font-family: Consolas;"></span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9107" style="margin-left: 36pt;"><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9109" class="" style="font-size: 10pt; font-family: Consolas;"> </span><b id="yiv9051589767yui_3_16_0_1_1447767119243_9111" class=""><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9113" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(127, 0, 85);">if</span></b><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9115" class="" style="font-size: 10pt; font-family: Consolas;"> (</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9117" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62);">managed</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9119" class="" style="font-size: 10pt; font-family: Consolas;"> != </span><b id="yiv9051589767yui_3_16_0_1_1447767119243_9121" class=""><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9123" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(127, 0, 85);">null</span></b><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9125" class="" style="font-size: 10pt; font-family: Consolas;">) {</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9127" class="" style="font-size: 10pt; font-family: Consolas;"></span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9131" style="margin-left: 36pt;"><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9133" class="" style="font-size: 10pt; font-family: Consolas;"> </span><b id="yiv9051589767yui_3_16_0_1_1447767119243_9135" class=""><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9137" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(127, 0, 85);">return</span></b><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9139" class="" style="font-size: 10pt; font-family: Consolas;"> </span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9141" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62);">managed</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9143" class="" style="font-size: 10pt; font-family: Consolas;">;</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9145" class="" style="font-size: 10pt; font-family: Consolas;"></span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9149" style="margin-left: 36pt;"><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9151" class="" style="font-size: 10pt; font-family: Consolas;"> }</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9153" class="" style="font-size: 10pt; font-family: Consolas;"></span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9157" style="margin-left: 36pt;"><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9159" class="" style="font-size: 10pt; font-family: Consolas;"> </span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9161" style="margin-left: 36pt;"><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9163" class="" style="font-size: 10pt; font-family: Consolas;"> UserFederationProvider </span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9165" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62);">link</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9167" class="" style="font-size: 10pt; font-family: Consolas;"> = getFederationLink(</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9169" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62);">realm</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9171" class="" style="font-size: 10pt; font-family: Consolas;">, </span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9173" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62);">user</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9175" class="" style="font-size: 10pt; font-family: Consolas;">);</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9177" class="" style="font-size: 10pt; font-family: Consolas;"></span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9181" style="margin-left: 36pt;"><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9183" class="" style="font-size: 10pt; font-family: Consolas;"> </span><b id="yiv9051589767yui_3_16_0_1_1447767119243_9185" class=""><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9187" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(127, 0, 85);">if</span></b><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9189" class="" style="font-size: 10pt; font-family: Consolas;"> (</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9191" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62);">link</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9193" class="" style="font-size: 10pt; font-family: Consolas;"> != </span><b id="yiv9051589767yui_3_16_0_1_1447767119243_9195" class=""><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9197" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(127, 0, 85);">null</span></b><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9199" class="" style="font-size: 10pt; font-family: Consolas;">) {</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9201" class="" style="font-size: 10pt; font-family: Consolas;"></span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9205" style="margin-left: 36pt;"><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9207" class="" style="font-size: 10pt; font-family: Consolas;"> <span id="yiv9051589767yui_3_16_0_1_1447767119243_9209" class="" style="background: yellow;">UserModel </span></span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9211" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62); background: yellow;">validatedProxyUser</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9213" class="" style="font-size: 10pt; font-family: Consolas; background: yellow;"> = </span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9215" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62); background: yellow;">link</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9217" class="" style="font-size: 10pt; font-family: Consolas; background: yellow;">.validateAndProxy(</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9219" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62); background: yellow;">realm</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9221" class="" style="font-size: 10pt; font-family: Consolas; background: yellow;">, </span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9223" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62); background: yellow;">user</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9225" class="" style="font-size: 10pt; font-family: Consolas; background: yellow;">);</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9227" class="" style="font-size: 10pt; font-family: Consolas;"></span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9231" style="margin-left: 36pt;"><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9233" class="" style="font-size: 10pt; font-family: Consolas;"> </span><b id="yiv9051589767yui_3_16_0_1_1447767119243_9235" class=""><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9237" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(127, 0, 85); background: yellow;">if</span></b><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9239" class="" style="font-size: 10pt; font-family: Consolas; background: yellow;"> (</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9241" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62); background: yellow;">validatedProxyUser</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9243" class="" style="font-size: 10pt; font-family: Consolas; background: yellow;"> != </span><b id="yiv9051589767yui_3_16_0_1_1447767119243_9245" class=""><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9247" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(127, 0, 85); background: yellow;">null</span></b><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9249" class="" style="font-size: 10pt; font-family: Consolas; background: yellow;">) {</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9251" class="" style="font-size: 10pt; font-family: Consolas;"></span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9255" style="margin-left: 36pt;"><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9257" class="" style="font-size: 10pt; font-family: Consolas;"> </span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9259" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(0, 0, 192);">managedUsers</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9261" class="" style="font-size: 10pt; font-family: Consolas;">.put(</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9263" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62);">user</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9265" class="" style="font-size: 10pt; font-family: Consolas;">.getId(), </span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9267" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62);">validatedProxyUser</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9269" class="" style="font-size: 10pt; font-family: Consolas;">);</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9271" class="" style="font-size: 10pt; font-family: Consolas;"></span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9275" style="margin-left: 36pt;"><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9277" class="" style="font-size: 10pt; font-family: Consolas;"> </span><b id="yiv9051589767yui_3_16_0_1_1447767119243_9279" class=""><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9281" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(127, 0, 85);">return</span></b><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9283" class="" style="font-size: 10pt; font-family: Consolas;"> </span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9285" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62);">validatedProxyUser</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9287" class="" style="font-size: 10pt; font-family: Consolas;">;</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9289" class="" style="font-size: 10pt; font-family: Consolas;"></span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9293" style="margin-left: 36pt;"><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9295" class="" style="font-size: 10pt; font-family: Consolas;"> } </span><b id="yiv9051589767yui_3_16_0_1_1447767119243_9297" class=""><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9299" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(127, 0, 85);">else</span></b><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9301" class="" style="font-size: 10pt; font-family: Consolas;"> {</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9303" class="" style="font-size: 10pt; font-family: Consolas;"></span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9307" style="margin-left: 36pt;"><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9309" class="" style="font-size: 10pt; font-family: Consolas;"> <span id="yiv9051589767yui_3_16_0_1_1447767119243_9311" class="" style="background: yellow;">deleteInvalidUser(</span></span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9313" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62); background: yellow;">realm</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9315" class="" style="font-size: 10pt; font-family: Consolas; background: yellow;">, </span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9317" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(106, 62, 62); background: yellow;">user</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9319" class="" style="font-size: 10pt; font-family: Consolas; background: yellow;">);</span><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9321" class="" style="font-size: 10pt; font-family: Consolas; background: yellow;"></span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9325" style="margin-left: 36pt;"><span lang="EN-US" id="yiv9051589767yui_3_16_0_1_1447767119243_9327" class="" style="font-size: 10pt; font-family: Consolas; background: yellow;"> </span><b id="yiv9051589767yui_3_16_0_1_1447767119243_9329" class=""><span id="yiv9051589767yui_3_16_0_1_1447767119243_9331" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(127, 0, 85); background: yellow;">return</span></b><span id="yiv9051589767yui_3_16_0_1_1447767119243_9333" class="" style="font-size: 10pt; font-family: Consolas; background: yellow;"> </span><b id="yiv9051589767yui_3_16_0_1_1447767119243_9335" class=""><span id="yiv9051589767yui_3_16_0_1_1447767119243_9337" class="" style="font-size: 10pt; font-family: Consolas; color: rgb(127, 0, 85); background: yellow;">null</span></b><span id="yiv9051589767yui_3_16_0_1_1447767119243_9339" class="" style="font-size: 10pt; font-family: Consolas; background: yellow;">;</span><span id="yiv9051589767yui_3_16_0_1_1447767119243_9341" class="" style="font-size: 10pt; font-family: Consolas;"></span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9345" style="margin-left: 36pt;"><span id="yiv9051589767yui_3_16_0_1_1447767119243_9347" class="" style="font-size: 10pt; font-family: Consolas;"> }</span><span id="yiv9051589767yui_3_16_0_1_1447767119243_9349" class="" style="font-size: 10pt; font-family: Consolas;"></span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9353"><span id="yiv9051589767yui_3_16_0_1_1447767119243_9355" class="" style="font-size: 10pt; font-family: Consolas;"> }</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9359"><span class="" style="font-size: 10pt; font-family: Consolas;"><br></span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9359" dir="ltr"><span id="yiv9051589767yui_3_16_0_1_1447767119243_9361" class="" style="font-size: 10pt; font-family: Consolas;">The UserModel NULL value triggers the deleteInvalidUser(...) method. (row 135 of </span><span id="yiv9051589767yui_3_16_0_1_1447767119243_9367" class="" style="font-size: 10pt;">org.keycloak.models</span><span id="yiv9051589767yui_3_16_0_1_1447767119243_9369" class="" style="font-size: 10pt; font-family: Consolas;">.UserFederationManager class</span><span style="font-family: Consolas; font-size: 10pt;" id="yui_3_16_0_1_1447805832994_3383" class="">). At this point nothing happens and keycloak console stays in loading state.</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9359" dir="ltr"><span style="font-family: Consolas; font-size: 10pt;" class=""><br></span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9359" dir="ltr"><span style="font-family: Consolas; font-size: 10pt;" class="" id="yui_3_16_0_1_1447805832994_4794">Am i wrong with anything? or is it a bug?</span></div><div class="" id="yiv9051589767yui_3_16_0_1_1447767119243_9359" dir="ltr"><span style="font-family: Consolas; font-size: 10pt;" class="">thanks</span></div></div></body></html>