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