CMS MADE SIMPLE FORGE

GBFilePicker

 

[#9365] Directory browsing issues for non-admin users

avatar
Created By: Grant O'Neill (gocreative)
Date Submitted: Mon Jul 08 08:28:33 -0400 2013

Assigned To: Georg Busch (nan)
Version: GBfilePicker 1.3.3
CMSMS Version: 1.11.7
Severity: Major
Resolution: None
State: Open
Summary:
Directory browsing issues for non-admin users
Detailed Description:
When loading the file browser from a ListIt2 instance as an admin user, the
"Current directory" is displayed in the top left of the GBFilePicker dialog, and
clicking on the icon to the left of this text takes the user to the main Uploads
folder.

Howevever, when logged in as a non-admin user, with all file permissions set
correctly in the Group Permissions, ListIt2 instance fields and GBFilePicker,
the "Current directory" doesn't display any folder name, and clicking the icon
produces the following error:

"Directory '/my/server/path/mysite.com/www/uploads/images/images/' not found!"

In the above scenario, the current GBFilePicker directory is
"uploads/images/content-blocks". The images within this folder are correctly
shown in the list, and subfolders also appear in the list, but it's not possible
to navigate above the "content-blocks" folder.

This has been tested on older versions of CMSMS, GBFilePicker and ListIt2, as
well as with a fresh installation with all the latest versions.

The problems this causes are:

1. It's not possible to navigate above the current folder.
2. It's not possible to jump to the main Uploads folder.
3. It's difficult for the user to determine which folder they're in to begin
with because I use different folders for different fields with ListIt2.


History

Comments
avatar
Date: 2013-12-16 05:49
Posted By: Lewis Cave (Tetsuo)

If you include the (optional) 'dir' attribute, it fixes the issue in
GBFilePicker for non-admin users.
      
avatar
Date: 2013-12-16 16:34
Posted By: Grant O'Neill (gocreative)

Thanks for the tip. My current settings are:

In GBFilePicker preferences:
-----------------------
Restrict user's dir access (un-checked)

In ListIt2 field definition options:
-----------------------
Enable Filebrowser (checked)
Expected to be image (checked)
Allow directory creation (checked)
Allow delete (checked)
Allow sub directories (checked)

Is it one of these options?
      
avatar
Date: 2014-01-22 20:23
Posted By: Grant O'Neill (gocreative)

Just following up on this question for Lewis Cave as I still have this issue and
believe I have configured everything correctly.