<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 10, 2013 at 3:13 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&#39;d say &quot;Could not find requested resource&quot;<br>
<br>
Don&#39;t give too many hints to an attacker :)<br></blockquote><div><br></div><div style>yup, I agree. But folks started using the worng IDs, I guess that was motivation. </div><div style><br></div><div style>HOWEVER :) once the Admin UI is finished, less folks will use the cURL for &quot;managing&quot; PusApps and Variants. So, a pretty generic thing would be enough... I do agree :)</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
Matthias Wessendorf wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jul 9, 2013 at 8:40 PM, Kris Borchers &lt;<a href="mailto:kris@redhat.com">kris@redhat.com</a><br>
</div><div class="im">&gt; &lt;mailto:<a href="mailto:kris@redhat.com">kris@redhat.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;     On Jul 9, 2013, at 1:38 PM, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org">matzew@apache.org</a><br>
</div><div class="im">&gt;     &lt;mailto:<a href="mailto:matzew@apache.org">matzew@apache.org</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;&gt;     :-)<br>
&gt;&gt;<br>
&gt;&gt;     We recently change the 404, to have some hint:<br>
&gt;&gt;     <a href="https://github.com/aerogear/aerogear-unified-push-server/blob/master/src/main/java/org/jboss/aerogear/connectivity/rest/registry/applications/iOSVariantEndpoint.java#L78" target="_blank">https://github.com/aerogear/aerogear-unified-push-server/blob/master/src/main/java/org/jboss/aerogear/connectivity/rest/registry/applications/iOSVariantEndpoint.java#L78</a><br>

&gt;&gt;<br>
&gt;&gt;     Perhaps it should mention the word &quot;pushApplicationID&quot;<br>
&gt;<br>
&gt;     Yeah, I think &quot;Could not find requested pushApplicationID&quot; would be<br>
&gt;     more helpful.<br>
&gt;<br>
&gt;<br>
&gt; alright :)<br>
&gt;<br>
&gt; See   AGPUSH-146<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;     On Tue, Jul 9, 2013 at 8:28 PM, Tommy McCarthy<br>
</div><div class="im">&gt;&gt;     &lt;<a href="mailto:tomccart@redhat.com">tomccart@redhat.com</a> &lt;mailto:<a href="mailto:tomccart@redhat.com">tomccart@redhat.com</a>&gt;&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;         *sigh*<br>
&gt;&gt;         Yup, that was it. Looks like I&#39;ve been staring at this too<br>
&gt;&gt;         long. Didn&#39;t realize that we got multiple IDs back now. Makes<br>
&gt;&gt;         sense though!<br>
&gt;&gt;<br>
&gt;&gt;         I wish it was a silly question, but I guess not :P<br>
&gt;&gt;<br>
&gt;&gt;         ----- Original Message -----<br>
&gt;&gt;         From: &quot;Sebastien Blanc&quot; &lt;<a href="mailto:scm.blanc@gmail.com">scm.blanc@gmail.com</a><br>
</div><div class="im">&gt;&gt;         &lt;mailto:<a href="mailto:scm.blanc@gmail.com">scm.blanc@gmail.com</a>&gt;&gt;<br>
&gt;&gt;         To: &quot;AeroGear Developer Mailing List&quot;<br>
&gt;&gt;         &lt;<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
</div><div class="im">&gt;&gt;         &lt;mailto:<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>&gt;&gt;<br>
&gt;&gt;         Sent: Tuesday, July 9, 2013 2:23:35 PM<br>
&gt;&gt;         Subject: Re: [aerogear-dev] Registering an Android Variant Fails<br>
&gt;&gt;<br>
&gt;&gt;         Might be a silly question but are you sure you are using the<br>
&gt;&gt;         push App Id and not the &quot;native&quot; id ?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;         On Tue, Jul 9, 2013 at 8:11 PM, Tommy McCarthy &lt;<br>
</div><div class="im">&gt;&gt;         <a href="mailto:tomccart@redhat.com">tomccart@redhat.com</a> &lt;mailto:<a href="mailto:tomccart@redhat.com">tomccart@redhat.com</a>&gt; &gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;         Hey everyone,<br>
&gt;&gt;<br>
&gt;&gt;         I&#39;ve run into a slight issue when trying to register an<br>
&gt;&gt;         Android variant. I keep getting a 404 response instead of the<br>
&gt;&gt;         variant ID, secret, etc. I&#39;m not sure if the configuration has<br>
&gt;&gt;         changed since the latest readme in aerogear-unified-push-server.<br>
&gt;&gt;<br>
&gt;&gt;         On the third curl command to register the Android variant:<br>
&gt;&gt;         curl -v -b cookies.txt -c cookies.txt<br>
&gt;&gt;         -v -H &quot;Accept: application/json&quot; -H &quot;Content-type:<br>
&gt;&gt;         application/json&quot;<br>
&gt;&gt;         -X POST<br>
&gt;&gt;         -d &#39;{&quot;googleKey&quot; : &quot;IDDASDASDSA&quot;}&#39;<br>
&gt;&gt;<br>
&gt;&gt;         <a href="http://localhost:8080/ag-push/rest/applications/{PUSH_ID}/android" target="_blank">http://localhost:8080/ag-push/rest/applications/{PUSH_ID}/android</a><br>
</div>&gt;&gt;         &lt;<a href="http://localhost:8080/ag-push/rest/applications/%7BPUSH_ID%7D/android" target="_blank">http://localhost:8080/ag-push/rest/applications/%7BPUSH_ID%7D/android</a>&gt;<br>
<div class="im">&gt;&gt;<br>
&gt;&gt;         I get back a 404. I&#39;ve tried this on my OpenShift instance and<br>
&gt;&gt;         a local instance as well, with no avail. Every other command<br>
&gt;&gt;         so far has worked (login, register app)<br>
&gt;&gt;<br>
&gt;&gt;         Also, I&#39;m using the latest version of the unified push server<br>
&gt;&gt;         from a clone today.<br>
&gt;&gt;<br>
&gt;&gt;         Any suggestions? I think I&#39;ve covered all my bases so far!<br>
&gt;&gt;         Tommy Mccarthy<br>
&gt;&gt;         _______________________________________________<br>
&gt;&gt;         aerogear-dev mailing list<br>
</div>&gt;&gt;         <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a> &lt;mailto:<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>&gt;<br>
<div class="im">&gt;&gt;         <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;         _______________________________________________<br>
&gt;&gt;         aerogear-dev mailing list<br>
</div>&gt;&gt;         <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a> &lt;mailto:<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>&gt;<br>
<div class="im">&gt;&gt;         <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt;&gt;         _______________________________________________<br>
&gt;&gt;         aerogear-dev mailing list<br>
</div>&gt;&gt;         <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a> &lt;mailto:<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>&gt;<br>
<div class="im">&gt;&gt;         <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;     --<br>
&gt;&gt;     Matthias Wessendorf<br>
&gt;&gt;<br>
&gt;&gt;     blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
&gt;&gt;     sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
&gt;&gt;     twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a><br>
&gt;&gt;     _______________________________________________<br>
&gt;&gt;     aerogear-dev mailing list<br>
</div>&gt;&gt;     <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a> &lt;mailto:<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>&gt;<br>
<div class="im">&gt;&gt;     <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt;<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     aerogear-dev mailing list<br>
</div>&gt;     <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a> &lt;mailto:<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>&gt;<br>
<div class="im HOEnZb">&gt;     <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Matthias Wessendorf<br>
&gt;<br>
&gt; blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
&gt; sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
&gt; twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; aerogear-dev mailing list<br>
&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
<br>
</div><span class="HOEnZb"><font color="#888888">--<br>
abstractj<br>
</font></span><div class="HOEnZb"><div class="h5"><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>