<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">http://activities.sugarlabs.org/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">http://download.sugarlabs.org/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">http://activities.sugarlabs.org/en-US/sugar/downloads/file/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">http://activities.sugarlabs.org/activities/4063/memorize-45.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">http://download.sugarlabs.org/activities</a> redirect to <a href="http://activities.sugarlabs.org/activities">http://activities.sugarlabs.org/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="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/<wbr>developers.js</div><div>+++ b/site/app/webroot/js/<wbr>developers.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/<wbr>activities</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="HOEnZb"><div class="h5"><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_1461201968259096959HOEnZb"><font color="#888888"><br>
--<br>
Aleksey<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>