<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jul 10, 2013, at 9:17 AM, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org">matzew@apache.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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'd say "Could not find requested resource"<br>
<br>
Don'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.&nbsp;</div><div style=""><br></div><div style="">HOWEVER :) once the Admin UI is finished, less folks will use the cURL for "managing" PusApps and Variants. So, a pretty generic thing would be enough... I do agree :)</div></div></div></div></blockquote><div><br></div><div>ZOMG, the pressure</div><div><br></div><br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
<div>&nbsp;</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; &nbsp; &nbsp; 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; &nbsp; &nbsp; &lt;mailto:<a href="mailto:matzew@apache.org">matzew@apache.org</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;&gt; &nbsp; &nbsp; :-)<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; We recently change the 404, to have some hint:<br>
&gt;&gt; &nbsp; &nbsp; <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; &nbsp; &nbsp; Perhaps it should mention the word "pushApplicationID"<br>
&gt;<br>
&gt; &nbsp; &nbsp; Yeah, I think "Could not find requested pushApplicationID" would be<br>
&gt; &nbsp; &nbsp; more helpful.<br>
&gt;<br>
&gt;<br>
&gt; alright :)<br>
&gt;<br>
&gt; See &nbsp; AGPUSH-146<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; On Tue, Jul 9, 2013 at 8:28 PM, Tommy McCarthy<br>
</div><div class="im">&gt;&gt; &nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; *sigh*<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; Yup, that was it. Looks like I've been staring at this too<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; long. Didn't realize that we got multiple IDs back now. Makes<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; sense though!<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; I wish it was a silly question, but I guess not :P<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; ----- Original Message -----<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; From: "Sebastien Blanc" &lt;<a href="mailto:scm.blanc@gmail.com">scm.blanc@gmail.com</a><br>
</div><div class="im">&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;mailto:<a href="mailto:scm.blanc@gmail.com">scm.blanc@gmail.com</a>&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; To: "AeroGear Developer Mailing List"<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
</div><div class="im">&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;mailto:<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; Sent: Tuesday, July 9, 2013 2:23:35 PM<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; Subject: Re: [aerogear-dev] Registering an Android Variant Fails<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; Might be a silly question but are you sure you are using the<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; push App Id and not the "native" id ?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; On Tue, Jul 9, 2013 at 8:11 PM, Tommy McCarthy &lt;<br>
</div><div class="im">&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; <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; &nbsp; &nbsp; &nbsp; &nbsp; Hey everyone,<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; I've run into a slight issue when trying to register an<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; Android variant. I keep getting a 404 response instead of the<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; variant ID, secret, etc. I'm not sure if the configuration has<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; changed since the latest readme in aerogear-unified-push-server.<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; On the third curl command to register the Android variant:<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; curl -v -b cookies.txt -c cookies.txt<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; -v -H "Accept: application/json" -H "Content-type:<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; application/json"<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; -X POST<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; -d '{"googleKey" : "IDDASDASDSA"}'<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; <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; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; I get back a 404. I've tried this on my OpenShift instance and<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; a local instance as well, with no avail. Every other command<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; so far has worked (login, register app)<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; Also, I'm using the latest version of the unified push server<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; from a clone today.<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; Any suggestions? I think I've covered all my bases so far!<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; Tommy Mccarthy<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; _______________________________________________<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; aerogear-dev mailing list<br>
</div>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; <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; &nbsp; &nbsp; &nbsp; &nbsp; <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; &nbsp; &nbsp; &nbsp; &nbsp; _______________________________________________<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; aerogear-dev mailing list<br>
</div>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; <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; &nbsp; &nbsp; &nbsp; &nbsp; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; _______________________________________________<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; aerogear-dev mailing list<br>
</div>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; <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; &nbsp; &nbsp; &nbsp; &nbsp; <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; &nbsp; &nbsp; --<br>
&gt;&gt; &nbsp; &nbsp; Matthias Wessendorf<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
&gt;&gt; &nbsp; &nbsp; sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
&gt;&gt; &nbsp; &nbsp; twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a><br>
&gt;&gt; &nbsp; &nbsp; _______________________________________________<br>
&gt;&gt; &nbsp; &nbsp; aerogear-dev mailing list<br>
</div>&gt;&gt; &nbsp; &nbsp; <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; &nbsp; &nbsp; <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; &nbsp; &nbsp; _______________________________________________<br>
&gt; &nbsp; &nbsp; aerogear-dev mailing list<br>
</div>&gt; &nbsp; &nbsp; <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; &nbsp; &nbsp; <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>
_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/aerogear-dev</blockquote></div><br></body></html>