View Issue Details

This issue affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
08916Bug reportsSurvey editingpublic2014-04-01 17:19
Reporterjjxice46 Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionunable to reproduce 
Product Version2.05+ 
Summary08916: Unable to upload images to survey (description text area)
Description

Since updating to Version 2.05+ Build 140320 i have noticed that you are no longer able to upload images to a survey in the Edit survey text elements section. When attempting to do this you receive a message stating "you do not have permissions". In our case i have tried a fresh installed and given the entire directory full read write permissions and it still does not work. However, if you are in the template editor you are free to upload images to that section. This issue also did not seem to be present in the last build of limesurvey (build 140317)

Steps To Reproduce

Create or import a survey
Go to Edit Survyes text elements
attempt to upload a file OR browse the server

Additional Information

This issue does not seem to happen in the template editor, you are free to upload files without error.

TagsNo tags attached.
Attached Files
screenshot1435.png (12,937 bytes)   
screenshot1435.png (12,937 bytes)   
screenshot1434.png (15,157 bytes)   
screenshot1434.png (15,157 bytes)   
screenshot1436.png (8,735 bytes)   
screenshot1436.png (8,735 bytes)   
Bug heat8
Complete LimeSurvey version number (& build)Build 140320
I will donate to the project if issue is resolvedNo
Browser
Database type & versionSQL Server 2012
Server OS (if known)Windows Server 2012
Webserver software & version (if known)IIS8
PHP VersionPHP 5.4.14
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

rfaber

rfaber

2014-03-28 16:19

reporter   ~29585

We found a similiar problem, but not due to access rights. When starting the browse action, the pop-up window opens the php file in a text editor. Please see images above..

rfaber

rfaber

2014-03-28 16:21

reporter   ~29586

Browser: Firefox 27.0.1.

c_schmitz

c_schmitz

2014-03-28 16:37

administrator   ~29587

Last edited: 2014-03-28 18:01

rfaber, can you reproduce your issue in the demo?

c_schmitz

c_schmitz

2014-03-28 16:37

administrator   ~29588

jjxice46, which browser are you using?

jjxice46

jjxice46

2014-03-28 16:39

reporter   ~29589

This issue for me happens in chrome 33.0.1750.154m

c_schmitz

c_schmitz

2014-03-29 16:39

administrator   ~29604

jjxice46, I cannot reproduce. Can you reproduce the issue using our demo installation? If yes please let me know the exact steps.

rfaber: I am pretty sure that your problem is a server misconfiguration.

jjxice46

jjxice46

2014-03-29 17:54

reporter   ~29606

Yes i can reproduce on the demo server. The exact steps i am dong are:

Login to demo site
Create new survey
Give survey title but do not fill in any other section (such as welcome, description etc.)
click save
click on survey properites and go to edit text elements
go to any of the text areas (such as welcome, descritption etc) and click on the image button in the editor
under the image info click on browse server, OR click on the upload tab and try to upload an image

after that you will get the error.

let me know if this helps

mdekker

mdekker

2014-03-31 11:23

reporter   ~29616

Last edited: 2014-03-31 12:21

@rfaber

http://stackoverflow.com/questions/15270389/kcfinder-browse-php-downloading-rather-than-displaying-page

.htaccess in the thirdparty/kcfinder seems to be the problem

third_party/kcfinder turns out to have the .htaccess file copied from the third_party/kcfinder/upload

I don't know how that happended, but by doing a quick scan of the code it can be that kcfinder copied it in itself maybe due to some configuration bugs in the past.

To fix the problem, delete the file /third_part/kcfinder/.htaccess

mdekker

mdekker

2014-03-31 12:23

reporter   ~29618

@jjxice46: Permission problem on demo is ok I think, I think that optio was disabled on purpose. On your own server, check the permissions on the /upload/surveys/xxxx (where xxx is the id of the survey). It should be writable by the webserver.

jjxice46

jjxice46

2014-03-31 18:06

reporter   ~29630

@mdekker: I set permissions to allow full control to everything and i still get the error, i haven't tested on Linux yet as our primary server is windows server 2012.

c_schmitz

c_schmitz

2014-03-31 18:53

administrator   ~29631

If it is a windows server then it is a configuration issue of IIS most probably. You have to make sure that the full /upload directory (and subdir) has full permissions to be written by the webserver.

jjxice46

jjxice46

2014-03-31 20:59

reporter   ~29632

So i installed limesurvey on our linux machine and i cant reproduce the error on that machine so im fairly confident something has happened witht he windows permissions, ill try to figure it out but i am pretty confident that its not limesurvey at this point. I thank you all for looking into this and i apologize for not testing on linux, usually i dont end up doing this unless its something strange like this case.

c_schmitz

c_schmitz

2014-04-01 17:19

administrator   ~29639

No problem.

Issue History

Date Modified Username Field Change
2014-03-28 14:06 jjxice46 New Issue
2014-03-28 16:18 rfaber File Added: screenshot1435.png
2014-03-28 16:18 rfaber File Added: screenshot1434.png
2014-03-28 16:19 rfaber File Added: screenshot1436.png
2014-03-28 16:19 rfaber Note Added: 29585
2014-03-28 16:21 rfaber Note Added: 29586
2014-03-28 16:37 c_schmitz Note Added: 29587
2014-03-28 16:37 c_schmitz Note Added: 29588
2014-03-28 16:39 jjxice46 Note Added: 29589
2014-03-28 18:01 c_schmitz Note Edited: 29587
2014-03-28 18:02 c_schmitz Assigned To => c_schmitz
2014-03-28 18:02 c_schmitz Status new => assigned
2014-03-29 16:39 c_schmitz Note Added: 29604
2014-03-29 16:39 c_schmitz Status assigned => feedback
2014-03-29 17:54 jjxice46 Note Added: 29606
2014-03-29 17:54 jjxice46 Status feedback => assigned
2014-03-31 11:23 mdekker Note Added: 29616
2014-03-31 12:21 mdekker Note Edited: 29616
2014-03-31 12:21 mdekker Note Edited: 29616
2014-03-31 12:23 mdekker Note Added: 29618
2014-03-31 18:06 jjxice46 Note Added: 29630
2014-03-31 18:53 c_schmitz Note Added: 29631
2014-03-31 20:59 jjxice46 Note Added: 29632
2014-04-01 17:19 c_schmitz Note Added: 29639
2014-04-01 17:19 c_schmitz Status assigned => closed
2014-04-01 17:19 c_schmitz Resolution open => unable to reproduce
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing