View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
04723Bug reportspublic2011-03-07 18:14
Reporterlemeur Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.91 
Fixed in Version1.91 
Summary04723: newtest=Y delete the session and thus breaks all-in-one surveys // WRONG ANALYSIS OF PB
Description

With newtest=Y, in index.php:

774 if (isset($_GET['newtest']) && $_GET['newtest'] == "Y")
..
783 session_unset();

This unsets a while range of other important variables such as $_SESSION['grouplist'].

Only a subpart of variables are saved:
777 if (isset($_SESSION['USER_RIGHT_PREVIEW']))
778 {
779 $savesessionvars["USER_RIGHT_PREVIEW"]=$surveyid;
780 $savesessionvars["loginID"]=$_SESSION['loginID'];
781 $savesessionvars["user"]=$_SESSION['user'];
782 }

We definitely need to have the full list of important variables to save for the new session.

Thibault

Steps To Reproduce

all-in-one survey with 2 groups, 1 question type T per group.
Survey is not active, only tested with "Preview"

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)
I will donate to the project if issue is resolved
Browser
Database type & version
Server OS (if known)
Webserver software & version (if known)
PHP Version
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

lemeur

lemeur

2010-11-07 11:10

reporter   ~13449

Wrong analysis.
I solved the pb with patch 9443.
The session wasn't screwed up by newtest=Y, but by not beeing loaded at all because of a wrong test in file upload question type verification.

Issue History

Date Modified Username Field Change
2010-11-06 12:11 lemeur New Issue
2010-11-06 12:11 lemeur Status new => assigned
2010-11-06 12:11 lemeur Assigned To => c_schmitz
2010-11-07 11:10 lemeur Note Added: 13449
2010-11-07 11:10 lemeur Status assigned => resolved
2010-11-07 11:10 lemeur Fixed in Version => 1.91
2010-11-07 11:10 lemeur Resolution open => fixed
2010-11-07 11:11 lemeur Summary newtest=Y delete the session and thus breaks all-in-one surveys => newtest=Y delete the session and thus breaks all-in-one surveys // WRONG ANALYSIS OF PB
2011-03-07 18:14 lemeur Status resolved => closed
2026-11-20 10:33 c_schmitz Category Survey taking => (No Category)