<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Apr 10, 2014, at 11:28 AM, Lucas Holmquist &lt;<a href="mailto:lholmqui@redhat.com">lholmqui@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Apr 10, 2014, at 11:26 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">hrm.<div><br></div><div>what about this something like this?&nbsp;unescape(encodeURIComponent(URL))</div><div><br></div></div></blockquote></div></div></blockquote><div><br></div><div>also,&nbsp;<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/unescape">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/unescape</a></div><div><br></div><div>shit be deprecated</div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>haven't tried it, &nbsp; but it should matter since this is hidden from the user anyway</div><div><br></div><div><br></div><br><blockquote type="cite"><div dir="ltr"><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Apr 10, 2014 at 5:22 PM, Lucas Holmquist <span dir="ltr">&lt;<a href="mailto:lholmqui@redhat.com" target="_blank">lholmqui@redhat.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 style="word-wrap:break-word">so after testing this thing out with encodeURIComponent, &nbsp;the delete does work, &nbsp;however, &nbsp;we need to "double up" the encode.<div><br></div><div>this works:</div><div><br></div>
<div><a href="https://gist.github.com/lholmquist/10393357" target="_blank">https://gist.github.com/lholmquist/10393357</a></div><div><br></div><div><br></div><div>this doesn't:</div><div><br></div><div><a href="https://gist.github.com/lholmquist/10393450" target="_blank">https://gist.github.com/lholmquist/10393450</a></div>
<div><div class="h5"><div><br></div><div><br></div><div><br><div><div>On Apr 7, 2014, at 2:09 PM, Lucas Holmquist &lt;<a href="mailto:lholmqui@redhat.com" target="_blank">lholmqui@redhat.com</a>&gt; wrote:</div><br><blockquote type="cite">
<div style="word-wrap:break-word"><br><div><div>On Apr 7, 2014, at 12:52 PM, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt; wrote:</div><br><blockquote type="cite">Ok,<div>
<br></div><div>So as token, we use the endpointURL, and on client we perform&nbsp;<span style="background-color:rgba(255,255,255,0);font-size:small">&nbsp;the&nbsp;</span><span style="background-color:rgba(255,255,255,0);font-size:small">encodeURIComponent() </span><span style="background-color:rgba(255,255,255,0);font-size:small">function ?</span></div>
</blockquote><div><br></div><div>i think so( as suggested 2 months ago &nbsp;:) ) &nbsp; i just need to see how this will affect how we store stuff in LS.</div><div><br></div><div><br></div><br><blockquote type="cite">
<div><span style="background-color:rgba(255,255,255,0);font-size:small"><br></span></div><div><span style="background-color:rgba(255,255,255,0);font-size:small">-Matthias<span></span></span></div><div><br>On Monday, April 7, 2014, Lucas Holmquist &lt;<a href="mailto:lholmqui@redhat.com" target="_blank">lholmqui@redhat.com</a>&gt; wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">so i went back to look at what i had,<div><br></div><div><br></div><div>i don't think we need to get to complicated here,</div>

<div><br></div><div>reading the spec stuff, and this example</div><div><br></div><div><a href="https://wiki.mozilla.org/WebAPI/SimplePush#Client_.28WebApp.29_code" target="_blank">https://wiki.mozilla.org/WebAPI/SimplePush#Client_.28WebApp.29_code</a></div>

<div><br></div><div>they show sending the pushEndpoint to the "App server", &nbsp;so i think we could just use and keep it simple</div><div><br></div><div>it is also recommended that the channelID is never exposed to the application.</div>

<div><br></div><div><br><div><div>On Apr 1, 2014, at 3:34 PM, Lucas Holmquist &lt;<a>lholmqui@redhat.com</a>&gt; wrote:</div><br><blockquote type="cite"><div style="word-wrap:break-word">i had something, &nbsp;now i forgot what it was, &nbsp; need to go back and check<br>

<div><div>On Apr 1, 2014, at 3:05 PM, Matthias Wessendorf &lt;<a>matzew@apache.org</a>&gt; wrote:</div><br><blockquote type="cite"><div dir="ltr"><br><div>On Fri, Feb 14, 2014 at 2:06 PM, Lucas Holmquist <span dir="ltr">&lt;<a>lholmqui@redhat.com</a>&gt;</span> wrote:<br>


<blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">still exploring</div></blockquote>
<div><br></div><div>:-) any recent thoughts on 'encodeURIComponent()' ?&nbsp;</div><div>&nbsp;</div><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<div style="word-wrap:break-word"><br><div><div>On Feb 13, 2014, at 3:39 PM, Sebastien Blanc &lt;<a>scm.blanc@gmail.com</a>&gt; wrote:</div><br><blockquote type="cite">
<div dir="ltr"><br><div><br><br><div>On Wed, Feb 12, 2014 at 2:30 PM, Lucas Holmquist <span dir="ltr">&lt;<a>lholmqui@redhat.com</a>&gt;</span> wrote:<br>


<blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">i might have a couple thoughts, but i need to try some things out first</div>



</blockquote>
<div><br></div><div>Any update on that or does the solution proposed by Matzew (using&nbsp;<span style="font-size:13px;font-family:arial,sans-serif">&nbsp;</span><span style="color:rgb(48,57,66);font-family:Menlo,monospace;font-size:11px;white-space:pre-wrap">encodeURIComponent() ) could be enough ? </span></div>



<blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">
<div><br><div><div>On Feb 12, 2014, at 3:53 AM, Sebastien Blanc &lt;<a>scm.blanc@gmail.com</a>&gt; wrote:</div><br><blockquote type="cite"><div dir="ltr"><br>
<div><br><br><div>On Tue, Feb 11, 2014 at 7:15 PM, Sebastien Blanc <span dir="ltr">&lt;<a>scm.blanc@gmail.com</a>&gt;</span> wrote:<br>



<blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Ok,<div>I've been doing some tests by using the PushEndpoint as device token. For registration it works but I just faced an issue by trying to unregister because the URL for the DELETE looks like :&nbsp;</div>






<div><br></div><div><a href="https://judconpush-sblanc.rhcloud.com/rest/registry/device/https://updates.push.services.mozilla.com/update/my_personnal_psuhendpoint_id" target="_blank">https://judconpush-sblanc.rhcloud.com/rest/registry/device/https://updates.push.services.mozilla.com/update/my_personnal_psuhendpoint_id</a> [<br>






</div><div><br></div><div>And the REST endpoint get a bit crazy by the extra "/" present in the endpoint URL. Therefore, I think we must just use the last URL fragment as deviceToken.</div></div></blockquote><div>





&nbsp;</div><div>Ok answering to myself ;) That won't work neither since if we do that UPS won't have the compllete push endpoint URL.&nbsp;</div><div>So how do we deal with that ?</div><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">





<div>
<br><br><div>On Thu, Feb 6, 2014 at 3:27 PM, Matthias Wessendorf <span dir="ltr">&lt;<a>matzew@apache.org</a>&gt;</span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">






<div dir="ltr"><br><div><br><br><div>On Thu, Feb 6, 2014 at 3:11 PM, Sebastien Blanc <span dir="ltr"></span></div></div></div></blockquote></div></div></blockquote></div></div></div></blockquote></div></div>
</div></blockquote></div></div></div></blockquote></div></div></blockquote></div></div></blockquote></div></div></blockquote></div></div></div></blockquote></div><br><br>-- <br>Sent from Gmail Mobile<br>
_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">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></blockquote>
</div><br></div>_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">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></blockquote>
</div><br></div></div></div></div><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></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>
_______________________________________________<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">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></blockquote></div><br></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>