<div dir="ltr">I just uploaded a new version of Chat. Seemed to work.<div><br></div><div>Thanks for sorting this all out (esp. before GCI begins).</div><div><br></div><div>regards.</div><div><br></div><div>-walter</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 20, 2016 at 5:17 PM, Samuel Cantero <span dir="ltr"><<a href="mailto:scanterog@gmail.com" target="_blank">scanterog@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Please, don't forget to clean your cache or try it in incognito mode.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 20, 2016 at 7:14 PM, Samuel Cantero <span dir="ltr"><<a href="mailto:scanterog@gmail.com" target="_blank">scanterog@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi all,</div><div><br></div><div>Finally, I've decided to provide the XO files using <a href="http://activities.sugarlabs.org/activities" target="_blank">http://activities.sugarlabs.or<wbr>g/activities</a></div><div><br></div><div>Now, our app is serving the files using the previous URL instead of <a href="http://download.sugarlabs.org/activities" target="_blank">http://download.sugarlabs.org/<wbr>activities</a>. We can check this by:</div><div><br></div><div>$ curl -i <a href="http://activities.sugarlabs.org/en-US/sugar/downloads/file/28669/xpi/memorize-45.xo" target="_blank">http://activities.sugarlabs.or<wbr>g/en-US/sugar/downloads/file/<wbr>28669/xpi/memorize-45.xo</a></div><div>HTTP/1.1 302 Found</div><div>Date: Sun, 20 Nov 2016 22:21:11 GMT</div><div>Server: Apache/2.4.7 (Ubuntu)</div><div>X-Powered-By: PHP/5.5.9-1ubuntu4.19</div><div>X-AMO-ServedBy: aslo</div><div>Cache-Control: public, max-age=3600</div><div>Last-modified: Sun, 20 Nov 2016 22:21:11 GMT</div><div>Expires: Sun, 20 Nov 2016 23:21:11 GMT</div><div><b>Location: <a href="http://activities.sugarlabs.org/activities/4063/memorize-45.xo" target="_blank">http://activities.sugarlabs.or<wbr>g/activities/4063/memorize-45.<wbr>xo</a></b></div><div>Content-Length: 0</div><div>Content-Type: text/html</div><div><br></div><div>Besides, <a href="http://download.sugarlabs.org/activities" target="_blank">http://download.sugarlabs.org/<wbr>activities</a> redirect to <a href="http://activities.sugarlabs.org/activities" target="_blank">http://activities.sugarlabs.or<wbr>g/activities</a>.</div><div><br></div><div>Can someone try to upload a new app and download it again?</div><div><br></div><div>Best regards,</div><div><br></div><div>Samuel C.</div></div><div class="m_9199088748286945557HOEnZb"><div class="m_9199088748286945557h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 19, 2016 at 9:46 PM, Samuel Cantero <span dir="ltr"><<a href="mailto:scanterog@gmail.com" target="_blank">scanterog@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Guys, I've fixed it. I have also fixed email reset password.<div><div><br></div><div><div>--- a/site/app/webroot/js/develope<wbr>rs.js</div><div>+++ b/site/app/webroot/js/develope<wbr>rs.js</div><div>@@ -215,7 +216,7 @@ var upload = {</div><div> // exclusive to Gecko browsers because it exposes this data.</div><div> checkFileSize : function(o) {</div><div> if (o.files) {</div><div>- return o.files[0].fileSize <= MAXFILESIZE;</div><div>+ return o.files[0].size <= MAXFILESIZE;</div><div> }</div></div><div><br></div><div>I now need to figure out how to properly sync with <a href="http://download.sugarlabs.org" target="_blank">download.sugarlabs.org</a>. I'll try to do it tomorrow.</div></div><div><br></div><div>What do you think about keeping a new domain like: <a href="http://download.activities.sugarlabs.org" target="_blank">download.activities.sugarlabs.<wbr>org</a> where we deliver files in files/ and redirect <a href="http://download.sugarlabs.org/activities" target="_blank">download.sugarlabs.org/activit<wbr>ies</a> to this new URL? Maybe there is a better solution. Suggestions are welcome.</div><div><br></div><div>Best regards,</div><div><br></div></div><div class="m_9199088748286945557m_-19874041409008074HOEnZb"><div class="m_9199088748286945557m_-19874041409008074h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 18, 2016 at 7:33 PM, Aleksey Lim <span dir="ltr"><<a href="mailto:me@alsroot.su" target="_blank">me@alsroot.su</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Fri, Nov 18, 2016 at 06:49:54PM -0300, Samuel Cantero wrote:<br>
> +Aleksey +Bernie<br>
><br>
> There's something I don't understand about activities. In<br>
> /srv/www-sugarlabs/activities/<wbr>site/app/config/config.php we define:<br>
><br>
> define('FILES_HOST', '<a href="http://download.sugarlabs.org/activities'" rel="noreferrer" target="_blank">http://download.sugarlabs.org<wbr>/activities'</a>);<br>
><br>
> where FILE_HOST + FILES_URL (downloads/file) is the complete URL where the<br>
> xo files are.<br>
><br>
> <a href="http://download.sugarlabs.org" rel="noreferrer" target="_blank">download.sugarlabs.org</a> is currently hosted in sunjammer.<br>
><br>
> BUT we also define:<br>
><br>
> define('REPO_PATH', '/srv/www-sugarlabs/activities<wbr>/files');<br>
><br>
> This directory contains AGAIN all the .xo files that are already hosted at<br>
> sunjammer for <a href="http://download.sugarlabs.org" rel="noreferrer" target="_blank">download.sugarlabs.org</a> (/srv/upload/activities). So we were<br>
> keeping the activities in two different directories (and now two diff<br>
> servers).<br>
><br>
> I have run a diff -r between these two directories and there are some<br>
> activities that are not present in <a href="http://download.sugarlabs.org" rel="noreferrer" target="_blank">download.sugarlabs.org</a> and vice-versa.<br>
> Just 10 activities and they are very old.<br>
><br>
> I guess that REPO_PATH is the directory where files should be uploaded.<br>
> were you synchronizing these directories -<br>
> /srv/www-sugarlabs/activities/<wbr>files and /srv/upload/activities?<br>
<br>
</span>In AMO code, REPO_PATH should be synced w/ FILES_HOST.<br>
But in ASLO it was not used and, I guess, one of them was linked to another<br>
(I don't have access to sunjammer w/ my old dsa key).<br>
<span class="m_9199088748286945557m_-19874041409008074m_1461201968259096959HOEnZb"><font color="#888888"><br>
--<br>
Aleksey<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font><font>Walter Bender</font></font><br><font><font>Sugar Labs</font></font></div><div><font><a href="http://www.sugarlabs.org" target="_blank"><font>http://www.sugarlabs.org</font></a></font><br><a href="http://www.sugarlabs.org" target="_blank"><font></font></a><br></div></div></div>
</div>