Closed (works as designed)
Project:
Web File Manager
Version:
6.x-2.18
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 May 2012 at 19:48 UTC
Updated:
6 Jun 2012 at 05:10 UTC
As user 1, when I go to download a file that is listed in webfm, it takes me to /webfm_send/~Workspace~test.txt and gives me an access denied message.
I added debug code to print the filename before the access denied message. The file name that prints via dpm is sites/default/files/Workspace/test.txt
This file exists:
$ ls -la sites/default/files/Workspace/test.txt
-rw-rw-r-- 1 apache apache 7 Feb 8 06:24 sites/default/files/Workspace/test.txtNote that image files behave OK with their popup, but I have the same issue as test.txt with all non image files. The allowed extensions in the permissions config include the files I'm having trouble with.
Any suggestions on how to debug this?
Comments
Comment #1
nhck commentedWell those ~ are really strange there in your url? You should check your pathauto/path/url alias settings if they point to the right thing.
For debugging this problem you can do the following:
The function webfm_file_download takes care of the permission issues.
So you can check which filepath actually gets checked for by webfm. I modified the function for you:
If the file access is denied by webfm actually, we will have to go into what goes wrong in _webfm_check_access()
Thank you.
Comment #2
mmilano commentedThanks for the debug code. Sorry I didn't respond sooner, I must have missed the notification.
The debug messages reflected the valid file.
I added some debug to function file_download() in files.inc and invoked each active module individually to see what was returning the -1 to deny my download.
It is the CKEditor module.
I'm not sure what the resolution is yet, but I am closing this because it doesn't seem to be related to webfm.
Your time is much appreciated. Thank you.
Comment #3
mmilano commentedUpdated the ckeditor module from 6.x-1.8 to 6.x-1.9 and the problem is fixed.
Comment #3.0
mmilano commentedmarkup