<div dir="ltr">I believe I have found the problem. If I don&#39;t send a <b>max</b> query param, it is set as -1, and by having that value it stops the execution of the <i>query</i> method inside <i>UserFederationManager</i> class so it doesn&#39;t return any value.<div>
<br></div><div>If I send a value on <b>max</b> I get a return, but it comes duplicated, I receive a JSON that has the same user twice. I was looking inside the method <i>getUsers</i> inside the <i>UsersResource</i> class and it executes the same for loop twice, adding the same userModel to the results list.</div>
<div><br></div><div>should the inner for loop exist?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 1, 2014 at 11:10 AM, Rodrigo Sasaki <span dir="ltr">&lt;<a href="mailto:rodrigopsasaki@gmail.com" target="_blank">rodrigopsasaki@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I have a method in my project that finds users by e-mail using the REST API on</div>
<div><br></div><div><b>/realms/{realm}/users?email=...</b></div><div><b><br></b></div><div>It used to work fine, but I upgrated to RC1 and it stopped working, I tried debugging it but it doesn&#39;t seem to stop on my breakpoint inside the <i>JpaUserProvider</i> class.</div>

<div><br></div><div>It simply returns nothing, with valid calls and a valid e-mail that I know exists.</div><div><br></div><div>Is this a known bug?<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>
-- <br><div dir="ltr"><font face="Times New Roman">Rodrigo Sasaki</font><div>
</div></div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font face="Times New Roman">Rodrigo Sasaki</font><div></div></div>
</div>