<div dir="ltr"><div><div>Stian just FYI, apparently this is not fixed despite the ticket getting closed. <br><br>I had a brief look at the code, and it seems if the "username" is present and the "enabled" parameter is set to true in the request payload, a NullPointerException still gets thrown. <br><br><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:"DejaVu Sans Mono";font-size:12pt"><span style="color:rgb(0,0,128);font-weight:bold">if </span>(rep.isEnabled() != <span style="color:rgb(0,0,128);font-weight:bold">null </span>&& rep.isEnabled()) {<br> UsernameLoginFailureModel failureModel = <span style="color:rgb(102,14,122);font-weight:bold">session</span>.sessions().getUserLoginFailure(<span style="color:rgb(102,14,122);font-weight:bold">realm</span>, rep.getUsername().toLowerCase());<br> <span style="color:rgb(0,0,128);font-weight:bold">if </span>(failureModel != <span style="color:rgb(0,0,128);font-weight:bold">null</span>) {<br> failureModel.clearFailures();<br> }<br>}<br><br></pre>This is in org.keycloak.services.resources.admin.UsersResource class.<br><br><br></div>Regards,<br></div>Lohitha.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 18, 2016 at 11:51 AM, Lohitha Chiranjeewa <span dir="ltr"><<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>JIRA logged here: <a href="https://issues.jboss.org/browse/KEYCLOAK-2334" target="_blank">https://issues.jboss.org/browse/KEYCLOAK-2334</a><br><br><br></div>Regards,<br></div>Lohitha<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 15, 2016 at 9:12 PM, Stian Thorgersen <span dir="ltr"><<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes please</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On 15 January 2016 at 04:42, Lohitha Chiranjeewa <span dir="ltr"><<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div><div><div>Hi,<br><br></div>Refer title for the bug. This seems to have been introduced after 1.2.0.Final because in that version we didn't have this problem. Failure happens in 1.7.0.Final. Checked the logs and there's a NullPointerException thrown.<br><br></div>Shall I create a JIRA?<br><br><br></div>Regards,<br></div>Lohitha.<br></div>
<br></div></div>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>