https://redmine.gc.cuny.edu/https://redmine.gc.cuny.edu/favicon.ico2010-12-09T17:39:35ZCUNY Graduate Center - Project Tracking SystemCUNY Academic Commons - Bug #457: Unable to Upload Documents as Forum Attachmentshttps://redmine.gc.cuny.edu/issues/457?journal_id=17052010-12-09T17:39:35ZMatt Goldmattgold@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/79">Screen_shot_2010-12-09_at_11.55.02_AM.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/79/Screen_shot_2010-12-09_at_11.55.02_AM.png">Screen_shot_2010-12-09_at_11.55.02_AM.png</a> added</li></ul> CUNY Academic Commons - Bug #457: Unable to Upload Documents as Forum Attachmentshttps://redmine.gc.cuny.edu/issues/457?journal_id=17152010-12-10T21:59:17ZBoone Gorgesboone@gorg.es
<ul><li><strong>Priority name</strong> changed from <i>Normal</i> to <i>High</i></li></ul><p>This is indicative of a large and very strange problem. Somehow, the forum attachment directory /var/www/bb-attachments (the non-web-accessible path where the forum attachment plugin stores uploads) got confused. The path used by the plugin both for uploading new files as well as for downloading existing files was pointing to /var/www/bb-attachments/0, when for some reason the files themselves were at /var/www/bb-attachments/bb-attachments/0. This points to one of two causes:<br />1) The path in the plugin was changed (I checked the git history and this does not appear to be the case); or<br />2) The files were moved.</p>
<p>It's very easy to change the plugin file path (I will probably release a quick 1.1.2 to take care of this as well as one or two other things). But I find it a bit alarming. André, could I ask you to look at /var/www/bb-attachments? When I did ls -la in that dir, I found that the bb-attachments subdirectory had some funny owner/group issues (numbers where names should have been). Does that indicate any funny business?</p>
<p>Thanks.</p> CUNY Academic Commons - Bug #457: Unable to Upload Documents as Forum Attachmentshttps://redmine.gc.cuny.edu/issues/457?journal_id=17162010-12-10T22:00:06ZBoone Gorgesboone@gorg.es
<ul></ul><p>(André - just added you as a watcher to the ticket. Would you mind checking out <a class="external" href="http://redmine.gc.cuny.edu/issues/show/457#note-2">http://redmine.gc.cuny.edu/issues/show/457#note-2</a> ?)</p> CUNY Academic Commons - Bug #457: Unable to Upload Documents as Forum Attachmentshttps://redmine.gc.cuny.edu/issues/457?journal_id=17182010-12-10T22:02:47Zlocal adminadmin@nothing.com
<ul></ul><p>Boone Gorges wrote:</p>
<blockquote>
<p>(André - just added you as a watcher to the ticket. Would you mind checking out <a class="external" href="http://redmine.gc.cuny.edu/issues/show/457#note-2">http://redmine.gc.cuny.edu/issues/show/457#note-2</a> ?)</p>
</blockquote>
<p>Boone, I took a look and it seems pretty normal to me:</p>
<p>Issuing the following command: ll -d /var/www/bb-attachments<br />Returns the follwing result: drwxr-xr-x 3 root root 4096 Feb 2 2010 /var/www/bb-attachments</p>
<p>Perhaps I'm overlooking some angle? we can always set that ownership to commons:apache.</p> CUNY Academic Commons - Bug #457: Unable to Upload Documents as Forum Attachmentshttps://redmine.gc.cuny.edu/issues/457?journal_id=17192010-12-10T22:09:06ZBoone Gorgesboone@gorg.es
<ul></ul><pre>
[commons@commons bb-attachments]$ ls -la /var/www/bb-attachments
total 24
drwxr-xr-x 3 root root 4096 Feb 2 2010 .
drwxrwxr-x 10 commons commons 4096 Dec 6 11:23 ..
drwxrwxrwx 3 542 544 4096 Dec 5 18:47 bb-attachments
</pre>
<p>Why do I see something different when I do that? (n00b)</p> CUNY Academic Commons - Bug #457: Unable to Upload Documents as Forum Attachmentshttps://redmine.gc.cuny.edu/issues/457?journal_id=17232010-12-10T22:33:25ZBoone Gorgesboone@gorg.es
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Resolved</i></li></ul><p>Upload/download problem fixed in <a class="external" href="https://github.com/castiron/cac/commit/2a60f521ae8471c9cfae92f499114a1ab61e55e2">https://github.com/castiron/cac/commit/2a60f521ae8471c9cfae92f499114a1ab61e55e2</a>. André, we can have our discussion offline if you'd rather.</p> CUNY Academic Commons - Bug #457: Unable to Upload Documents as Forum Attachmentshttps://redmine.gc.cuny.edu/issues/457?journal_id=17362010-12-10T23:19:17Zlocal adminadmin@nothing.com
<ul></ul><p>There's a sub-dir with the same name!</p>
<p>:-)</p>
<pre>[root@commons ~]# ll -d /var/www/bb-attachments/bb-attachments/
drwxrwxrwx 3 542 544 4096 Dec 10 17:31 /var/www/bb-attachments/bb-attachments/</pre>
<p>I recommend just a simple mv. I can issue that, but I'll chown the sub-dir to you now.</p>
<pre>[root@commons ~]# ll -d /var/www/bb-attachments/bb-attachments/
drwxrwxrwx 3 542 544 4096 Dec 10 17:31 /var/www/bb-attachments/bb-attachments/
[root@commons ~]# chown commons:commons $_
[root@commons ~]# ll -d /var/www/bb-attachments/bb-attachments/
drwxrwxrwx 3 commons commons 4096 Dec 10 17:31 /var/www/bb-attachments/bb-attachments/</pre>
<p>-AP</p> CUNY Academic Commons - Bug #457: Unable to Upload Documents as Forum Attachmentshttps://redmine.gc.cuny.edu/issues/457?journal_id=17372010-12-10T23:56:25ZBoone Gorgesboone@gorg.es
<ul></ul><p>I fixed it at the code level rather than moving the files, so there's no need. I just thought it was strange that this happened in what seemed like an unprompted way.</p>