View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
03451Bug reportsSurvey takingpublic2009-07-29 11:11
Reporterjooghe Assigned Tolemeur  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version1.85+ 
Fixed in Version1.85+ 
Summary03451: empty first question group can hang the webserver
Description

If you have an active survey consisting eg. on 2 question groups. By accident the first question group does not contain any questions.
If you activate the survey and try to fill it can have severe consequenses for the webserver.

Go to the welcome page click next. The first question group is not shown since it does not contain any questions. If you now click on "Previous" your browser will not load the welcome page.
On the server the apache proces is taking alot of CPU time, if you have php error log activated you will see a lot of messages :
PHP Notice: Undefined offset: -1 in /limesurvey-path/group.php on line 61
PHP Notice: Undefined offset: -2 in /limesurvey-path/group.php on line 61
...

So it seems that by checking the groups for display it's caught in an infinite loop. Webserver keeps on processing and the log-file is growing very fast, so ultimatly it can bring the server down.

Can you have a look at this ? I've included an example survey.

TagsNo tags attached.
Attached Files
Bug heat4
Complete LimeSurvey version number (& build)
I will donate to the project if issue is resolved
Browser
Database type & versionMysql 5
Server OS (if known)Linux
Webserver software & version (if known)apache 2
PHP Version5.2.6

Users monitoring this issue

There are no users monitoring this issue.

Activities

user372

2009-07-07 23:25

  ~08788

Last edited: 2009-07-07 23:29

EDIT: I CAN reproduce any error with the attached survey.

import survey

activate survey

click at the previos button

==> Notice: Undefined offset: -1 in /home/.sites/962/site989/web/limesurvey/group.php on line 61

lemeur

lemeur

2009-07-08 22:02

developer   ~08804

Fixed in rev 7254.
==> now you won't be able to activate such a survey.
Thanks.

Issue History

Date Modified Username Field Change
2009-07-07 18:35 jooghe New Issue
2009-07-07 18:35 jooghe Status new => assigned
2009-07-07 18:35 jooghe Assigned To => user372
2009-07-07 18:35 jooghe File Added: limesurvey_survey_92815.csv
2009-07-07 18:35 jooghe Database & DB-Version => Mysql 5
2009-07-07 18:35 jooghe Operating System (Server) => Linux
2009-07-07 18:35 jooghe Webserver => apache 2
2009-07-07 18:35 jooghe PHP Version => 5.2.6
2009-07-07 23:25 user372 Note Added: 08788
2009-07-07 23:25 user372 Note Edited: 08788
2009-07-07 23:29 user372 Note Edited: 08788
2009-07-07 23:29 user372 Assigned To user372 => lemeur
2009-07-08 22:02 lemeur Note Added: 08804
2009-07-08 22:02 lemeur Status assigned => resolved
2009-07-08 22:02 lemeur Fixed in Version => 1.85+
2009-07-08 22:02 lemeur Resolution open => fixed
2009-07-29 11:11 c_schmitz Status resolved => closed
2010-10-25 00:18 c_schmitz Category Survey at Runtime => Survey taking