View Issue Details

This bug affects 1 person(s).
 10
IDProjectCategoryView StatusLast Update
13703Bug reportsSurvey editingpublic2018-11-20 16:33
ReporterJamesHarrisHKI Assigned ToLouisGac 
PrioritynoneSeverityminor 
Status closedResolutionsuspended 
Product Version3.7.x 
Summary13703: Image uploading does not work when using CDbHttpSession
Description

When we switched to using CDbHttpSession, the KCFinder stopped working.

We needed to switch to database sessions as these servers had to be copied to use a load balancer, we are not able to revert back to $_SESSION

From what I can tell, this seems to be because the session reading on line ~138 of \third_party\kcfinder\core\class\uploader.php is looking at $_SESSION

The params set in E:\apache\htdocs\limesurvey\application\helpers\admin\htmleditor_helper.php to the session can not make it across to this new page load.

Steps To Reproduce

Include these lines in your config.php

'session' => array (
'class' => 'system.web.CDbHttpSession',
'connectionID' => 'db',
'sessionTableName' => '{{sessions}}',
),

Go to any questions, edit it, then press the image button, then press the Browse Server button, you will see an error

TagsNo tags attached.
Bug heat10
Complete LimeSurvey version number (& build)3.7.3+180516
I will donate to the project if issue is resolvedNo
BrowserFirefox and Chrome
Database type & versionMysql 347
Server OS (if known)Windows Server 2008
Webserver software & version (if known)Apache/2.4.23 (Win64)
PHP Version7.0.9

Users monitoring this issue

caseylucas, ptramonti

Activities

LouisGac

LouisGac

2018-08-21 11:38

developer   ~48838

We've done some fixes related to KCFinder recently.
Could you please update to latest version to see if it solves the problem?

LouisGac

LouisGac

2018-08-28 11:50

developer   ~48890

no user feed back

ptramonti

ptramonti

2018-10-26 17:50

reporter   ~49452

We have the same issue with version 3.15.1+181017.
We have in our config these lines:

'session' => array (
'class' => 'application.core.web.DbHttpSession',
'connectionID' => 'db',
'sessionTableName' => '{{sessions}}',

When I click to the button "Browse Server" I get the error "You don't have permissions to browse server."
The folder /tmp/ and /upload/ (and subfolders) are set to 777.

caseylucas

caseylucas

2018-10-26 18:23

reporter   ~49454

I wonder if this would be fixed via https://github.com/LimeSurvey/LimeSurvey/pull/1112. See also (https://bugs.limesurvey.org/view.php?id=13982)

ptramonti

ptramonti

2018-11-20 16:33

reporter   ~49711

Now on the version 3.15.5+181115 it seems that the problem is solved! After the update I can upload the images without errors.

Issue History

Date Modified Username Field Change
2018-05-22 18:55 JamesHarrisHKI New Issue
2018-08-20 21:17 caseylucas Issue Monitored: caseylucas
2018-08-21 11:38 LouisGac Note Added: 48838
2018-08-28 11:50 LouisGac Assigned To => LouisGac
2018-08-28 11:50 LouisGac Status new => closed
2018-08-28 11:50 LouisGac Resolution open => suspended
2018-08-28 11:50 LouisGac Note Added: 48890
2018-10-26 17:50 ptramonti Note Added: 49452
2018-10-26 17:51 ptramonti Issue Monitored: ptramonti
2018-10-26 18:23 caseylucas Note Added: 49454
2018-11-20 16:33 ptramonti Note Added: 49711
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing
2021-08-04 00:39 guest Bug heat 6 => 10