View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
13592Bug reportsSurvey participants (Tokens)public2018-05-25 11:30
Reporterjosep Assigned ToLouisGac 
PrioritynoneSeveritypartial_block 
Status closedResolutionfixed 
Product Version3.5.x 
Summary13592: Prefilling a survey using GET parameters combined with tokens lost GET parameters
Description

I have created a simple survey.
I call it prefilling a survey using GET parameters, question is correctlly prefilled (see images 0 and 1).

Then I have initialized participant table to restrict acces and I have created a participant with his token.
I call survey in the same way. Page to insert token is showed (see image 2).
I insert token and survey is showed but value of get parameters has been lost (see image 3).

Thank's in advance for your effort.

TagsNo tags attached.
Attached Files
image1.png (76,161 bytes)   
image1.png (76,161 bytes)   
image0.png (74,008 bytes)   
image0.png (74,008 bytes)   
image3.png (75,282 bytes)   
image3.png (75,282 bytes)   
image2.png (74,255 bytes)   
image2.png (74,255 bytes)   
Bug heat8
Complete LimeSurvey version number (& build)3.5.4+180320
I will donate to the project if issue is resolvedNo
BrowserFirefox ESR 52.7.2 (64 bits
Database type & versionpostgresql-9.6 9.6.6-0+deb9u1
Server OS (if known)GNU Linux Debian 9.3
Webserver software & version (if known)apache2 2.4.25-3+deb9u3
PHP Versionphp7.0 7.0.27-0+deb9u1

Users monitoring this issue

There are no users monitoring this issue.

Activities

TonisOrmisson

TonisOrmisson

2018-04-20 22:48

developer   ~47480

Last edited: 2018-04-20 22:48

you can put your token also in the initial GET parameters eg &token=mytoken and the token input page will be skipped and no GET fields are lost.

I would not say it is a bug definitely. Possibly a security feature (maybe?).
I can hardly think of a use case when you have some data that you know you want to be pre-filled, but you do NOT know the token. Just put the token along in the GET.
Or what would be the use case of pre-filling, but not knowing the token?

DenisChenu

DenisChenu

2018-04-21 11:10

developer   ~47482

Currently prefilling survey is done with SESSION inside Survey big session. But i think it's a bad idea (actually : i think it's must be done by event only … and remove all prefilling from core (just add 2 prefilling plugin)

I think it's a bug : expected functionality is "prefill surey in any condition by GET param" :)

TonisOrmisson

TonisOrmisson

2018-04-21 13:48

developer   ~47484

I have always had the impression that prefillng is possible for the fist page only and this is how it works.
if its in session then we can prefill for any page? Good, never done that though. Then bug, sure.

LouisGac

LouisGac

2018-05-23 13:06

developer   ~47788

this has been fixed a while ago

c_schmitz

c_schmitz

2018-05-25 11:30

administrator   ~47817

Version 3.8.1+180524 released

Issue History

Date Modified Username Field Change
2018-04-12 09:24 josep New Issue
2018-04-12 09:24 josep File Added: image1.png
2018-04-12 09:24 josep File Added: image0.png
2018-04-12 09:24 josep File Added: image3.png
2018-04-12 09:24 josep File Added: image2.png
2018-04-12 09:24 josep File Added: limesurvey_survey_316298.lss
2018-04-20 22:48 TonisOrmisson Note Added: 47480
2018-04-20 22:48 TonisOrmisson Note Edited: 47480
2018-04-21 11:10 DenisChenu Note Added: 47482
2018-04-21 13:48 TonisOrmisson Note Added: 47484
2018-05-16 13:04 LouisGac Assigned To => LouisGac
2018-05-16 13:04 LouisGac Status new => assigned
2018-05-23 13:06 LouisGac Status assigned => resolved
2018-05-23 13:06 LouisGac Resolution open => fixed
2018-05-23 13:06 LouisGac Note Added: 47788
2018-05-25 11:30 c_schmitz Note Added: 47817
2018-05-25 11:30 c_schmitz Status resolved => closed