<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 19, 2013 at 6:15 PM, Bruno Oliveira <span dir="ltr">&lt;<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I do it, if we&#39;re not using the interceptor we&#39;re just hiding a issue<br>
and duplicating code.<br></blockquote><div><br></div><div style>I agree on that :)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
- Issue: The endpoint should return 401 instead of bad request on requests.<br></blockquote><div><br></div><div style>correct.</div><div style><br></div><div style>So, how about:</div><div style>I give it another try tomorrow and will report back ? </div>
<div style><br></div><div style>-Matthias</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im HOEnZb"><br>
Matthias Wessendorf wrote:<br>
&gt; I think I didn&#39;t use it, because it throws an RT exception (no problem<br>
&gt; with that), which I could catch on the RestEasy layer.<br>
&gt; Instead of (for unauthorized invokes) returning 401 (to cURL, for<br>
&gt; instance), it was just &quot;bad request&quot;.<br>
&gt;<br>
&gt; So, I went for the &quot;check by code&quot; solution first. Not saying that I am<br>
&gt; AGAINST the interceptor.<br>
&gt;<br>
&gt; I think on the long run that would be better and cleaner.<br>
<br>
</div><div class="HOEnZb"><div class="h5">--<br>
abstractj<br>
<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div>