Hello there,

I tried to use WebFM with different directories for different roles and encoutered the problem that uploaded files won't be shown to users that are not admin. I'm quite sure that privileges are set right.
I run Drupal 6.3 and my development machine is Mac OSX 10.4 with Apache 2.0.59, MySQL 5.0.41 and 5.2.5.

First it might be of interest that for the admin account everything works as expected.

Now, for example, I created a role called "dtp_01", granted it privileges "access webfm" and "webfm upload". Also I set up the upload folder for the role "dtp_01" inside the WebFM settings to be "dtp_01" (directory was created successfully).
"Default File Permissions" are set to "Role View Access".

Drupal is set to serve files directly via http.

A user "testuser01" with said role "dtp_01" can see the file manager window and is pointed to his given directory "dtp_01".
The test user can also upload files. BUT: no files show up inside WebFM, no matter if they were uploaded by the user itself, by the admin oder put there directly via the file system. The process of uploading itself works just fine, the files are put in their right place, they just won't show up inside WebFM.
As soon as I log in as admin I can see the files correctly.

I've been checking out various different settings, the only thing that seemed to help was changing the user role to "administer webfm", which is a setting that doesn't meet my needs, because I need users to have only access to their given folders.

Is this a known issue? Couldn't find any corresponding topic.
Or did I really miss some important point while setting up WebFM?

Thanks in advance for any suggestions,

Daniel

Comments

halif’s picture

I have the exact problem, though I manage to get the files viewed by the users as long as I don't update it towards the database. Which my cron does automatically every hour. So it's not a stable solution, does anyone know what to do?

daniel wentsch’s picture

Ok, at least I'm not alone, so thanks for replying :)

How did you manage to get the files viewed by the users? Simply uploading files into the corresponding folder via ftp/file system? Or did you have to do some kind of tweeks?

regards,
Daniel

halif’s picture

No tweaks, when the users upload the file through webfm. They report that they can see it, I've tested it myself with a non admin account. Though it doesn't last due to the cron updates.

regards
halif

daniel wentsch’s picture

Hm, okay. That's really strange, becaue I definately don't see any uploaded files even when logged in and uploaded with non-admin accounts :(

daniel wentsch’s picture

Still no one with an idea? I'd really like to use WebFM as long as there's such an major issue :(

robmilne’s picture

Your setup seems standard and should work OK.
Do uploaded files appear after clicking the refresh icons? Do they show up after reloading the webfm page? Do they never show up for the "user"?

daniel wentsch’s picture

They never show up for normal users, no matter if I click the refresh icon, if I refresh the entire page oder even if I log out and in again :(

Gonna try it on a windows machine with a blank installation of drupal as soon as I find the time.

PS: in the meantime I've been upgrading to Drupal 6.4 by the way - which didn't help neither.

PPS: could it be a problem that my webserver is listening to port 8888? Maybe WebFM is getting confused by the "http://localhost:8888/drupal/" url? Unfortunately I don't have privileges to change the ports of my development server currently.

daniel wentsch’s picture

Okay. I set up an new, blank drupal installation on the very same machine with WebFM as the only third party module - and voilà, everything works fine.
I hope I'll be able to find the module or setting that causes the problem soon and post it here.

daniel wentsch’s picture

This starts driving me crazy, I can't find the solution.

- it's not the custom language I use. (I added German to my test-drupal and WebFM still works there)
- it doesn't seem to be any module, as I deactivated all the non-basic ones in my normal installation, and WebFM stil doesn't work
- it doesn't seem to be any WebFM settings as they are the same in either the working and the non-working installation

Has somebody another idea what to try?

Regards,
Daniel

daniel wentsch’s picture

Status: Active » Fixed

Already me again, hopefully the last time on this topic ;)

I finally found my mistake. In WebFM settings I specified the "Role Root directory" with a trailing slash (e.g. "dtp_01/"). Still very confusing that this folder shows up and can be used by the admin user... at least there could be a little hint in the describing text to tell users not using trailing slashes ;)

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.