← Back to team overview

mahara-contributors team mailing list archive

[Bug 1224750] Re: Site files located in a subfolder cannot be accessed by normal users

 

I think the manual is probably incorrect on this one. It doesn't make
sense to have a Site Files directory of files that are "accessible" to
Public users. In Mahara a file artefact being "accessible" could mean
one of two things. The first is that it could mean a user can view the
file, but this is controlled entirely by whether the file is used in a
Page that the user can view, so that can't be what's meant here. The
second is that it could mean a user can use the file in their Pages, but
Public users can't create or edit pages, so it can't mean that either.

I think the intended purpose of the hard-coded "Public" folder is that
it's meant to be files that are accessible to all *logged-in* users in
the site. In other words, if mahara.org wanted there to be a Mahara logo
that was available to all users to add to their Pages, we could put that
logo in the "Public" folder in Site Files.

I haven't yet tested to see if that's how the code currently works.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1224750

Title:
  Site files located in a subfolder cannot be accessed by normal users

Status in Mahara ePortfolio:
  Confirmed

Bug description:
  This is the original bug report on bug #1223069. Because the
  discussion went into a different direction and a different feature
  developed which does not address this issue here directly, I created a
  new report.

  According to the Site Files documentation, files uploaded into the
  site files section are meant to be accessible to all logged-in users
  (via the "Site Files" tab on any file selector). The one exception to
  this is files in the hard-coded "Public" folder, which are meant to
  also be accessible to users who aren't logged in.

  A user on the #mahara irc channel reported that Site Files sitting in
  a subdirectory, however, are not accessible to normal users. I
  verified this behavior in 1.8dev.

  To reproduce:

  1. Log in as an admin user
  2. Go to the Site Files page
  3. Create a subdirectory
  4. Upload a file into that subdirectory
  5. Log in as a non-admin user
  6. Add a "files to download" block to a page
  7. In the block's file selector, go to the "site files" page
  8. You will not see the subdirectory you created in step 4, or be able to access its files.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1224750/+subscriptions


References