View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05345Bug reportsSurvey editingpublic2011-07-25 18:39
Reporterjelo Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionunable to reproduce 
Product Version1.91+ 
Summary05345: CKEditor in conjunction with KCFinder not finding any path to upload images/files
Description

When trying to insert an image
CKEditor tries to execute KCFinder with path to e.g. images. But instead of the filebrowser a error 500 is displayed.

Steps To Reproduce

Just choose to include an image via the ckeditor and choose browse server.

An error 500 will occur.

Additional Information

I haven't had the time to dig deep into the configuration of ckeditor and kcfinder. But a first look at them doesn't reveal a misconfiguration.
No additional debug information.

Updates and fresh installs are both showing this problem. Perhaps certain apache/php configuration settings (i am thinking of suhosin, modsec). But logfiles didn't show anything remarkable. I have opened that ticket earlier than I normally would, do since others are posting the same problems:

Threads in the board:
http://limesurvey.org/forum/installation-a-update-issues/62900-problems-with-image-upload?lang=en#62900

Perhaps a few are running into the old error which was discussed here:
http://www.limesurvey.org/de/forum/installation-a-update-issues/49177-the-server-didnt-reply-with-a-proper-xml-data

Perhaps the requirements have changed with using ckeditor and kcfinder in connection with limesurvey.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)10315
I will donate to the project if issue is resolvedNo
BrowserFirefox 3.6.18
Database type & versionMySQL 5.0.92
Server OS (if known)Centos 4.9
Webserver software & version (if known)Apache 1.3x
PHP Version5.2.17
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

jelo

jelo

2011-07-14 13:09

partner   ~15765

Version 1.91+ Build 10494 now provides an different behaviour. A nice error message via JavaScript Alert states "Cannot write to upload folder". Which will help a lot to narrow down the cause of the issue.

Since this message is triggers when just trying to "browse server" the scripts seem to try to init a subdirectory structure (subdirectories per filetype?).

Question is which upload folder is meant. Normally /upload/surveys/surveyid_of_current_survey .

The directory seems to be recreated by limesurvey, but not permissions were set.

jelo

jelo

2011-07-14 13:17

partner   ~15766

Last edited: 2011-07-14 18:23

The permissions of the new created subdirectories are not set at all

The following items will be created
.thumbs
files
images
.htaccess

It seem to me that the first init routine is not working correctly.
After changing the permission to suitable settings it seems work.
Till you want to upload something.

Differene between creating a new survey, importing a survey and existing survey when it comes to the uploadfolder?

When creating a new survey the upload folder of this survey is not created correctly. No permissions are set. The funny thing that I need root to delete the directory. The permission mask is set to "000". Even after recreating the directory with proper permission mask an upload or browsing is not possible.

The Demoinstallation on limesurvey.org is showing the same error when trying to insert an image. Can be the issue or tight security because of public demo.

jelo

jelo

2011-07-15 00:51

partner   ~15773

Last edited: 2011-07-15 01:06

To sum it up:
Main issue is the automatic creation of files (.htaccess and thumbfiles) and directories without any permission mask.

A check of /admin/scripts/kcfinder/config.php revealed that

'dirPerms' => ,

was not correctly set.

A comfortupdate on another installation didn't contained that buggy config.php.

c_schmitz

c_schmitz

2011-07-25 18:39

administrator   ~15861

A look at the latest version revals that the permissions are correctly set and were even in build 10315. Guess an earlier update didn't work well.
Closing issue.

Issue History

Date Modified Username Field Change
2011-07-13 23:57 jelo New Issue
2011-07-14 13:09 jelo Note Added: 15765
2011-07-14 13:17 jelo Note Added: 15766
2011-07-14 15:53 jelo Note Edited: 15766
2011-07-14 18:15 jelo Note Edited: 15766
2011-07-14 18:23 jelo Note Edited: 15766
2011-07-15 00:51 jelo Note Added: 15773
2011-07-15 01:06 jelo Note Edited: 15773
2011-07-25 18:39 c_schmitz Note Added: 15861
2011-07-25 18:39 c_schmitz Status new => closed
2011-07-25 18:39 c_schmitz Assigned To => c_schmitz
2011-07-25 18:39 c_schmitz Resolution open => unable to reproduce
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing