Closed (fixed)
Project:
CKEditor 4 - WYSIWYG HTML editor
Version:
6.x-1.7
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2011 at 17:05 UTC
Updated:
28 Dec 2011 at 23:30 UTC
After upgrading from 6.x.1.6, to 6.x.1.7, all user profile pictures disappeared. dblog shows an "access denied" error. Reverting to 6.x.1.6 solved the problem.
Thank goodness for Drush and automated module backups!
Comments
Comment #1
sterndata commentedBy the way, the site is running with a private file system, but all authenticated users have access to user profiles. Also, 6.x.1.6 is using CKEditor 3.6.1, while CKEditor 6.x.1.7 was using CKEditor 3.6.2.
Comment #2
jrhansen commentedI have the same issue, but I just didn't realize that it had something to do with CKEditor. All files uploaded with the PRIVATE:// scheme turned "missing", and I guess it is caused by this function in the ckeditor.module file at line 453:
The "return NULL;" line looks weird. As I don't use the CKEditor for files, I just commented the entire function out, and disabled/enabled the CKEditor module. Now, the private files are working again.
However, I still have problems with uploading user pictures, but as far as I can see, they are stored as TEMPORARY files in the file_managed table, which must be another (core) bug. I just upgraded to Drupal 7.9, and I thought that this bug had been fixed. Oh well, that's another issue...
Comment #3
mkesicki commented@jrhansen you wrote about drupal 7 and this ticket is for drupal 6.
return NULL in mentioned function is to pass file permissions to drupal and/or other modules.
It is how it should be.
In latest CKEditor module release (both for Drupal 6 & 7) there is new option "Enable access to files located in the private folder" in CKEditor "Global Profile" configuration (this option shows when private file system is set in drupal). When enabled CKEditor will serve all files from private file system. So this should works in this case. When this option is disabled CKEditor try check if user should have access to file.
EDIT:
Similar problem reported here : #1324990: [D7] Access to private file (download) problems
Comment #4
jzornig commentedI also have this problem. Upgrading from CKEditor 6.x-1.6 to either 1.7 or 1.8 causes all user profile pictures to become unaccessible even to the admin user.
Comment #5
mkesicki commented@jzornig please update to latest DEV version. There was a fix for #1343314: [D6] Change settings for private download. If you have more problems with DEV version please reopen this ticket.
Comment #6
jzornig commentedThanks michal_cksource. The latest dev version does resolve the issue on my site.