View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
12704Bug reportsSurvey participants (Tokens)public2019-04-30 09:10
Reporterzfocuz Assigned ToDenisChenu  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version2.67.x 
Fixed in Version3.0.x 
Summary12704: Participants recieve wrong tokens after testing
Description

When sending invitation e-mails using a clean installation of LimeSurvey 2.67.3+170728 the {TOKEN} and {TOKEN:TOKEN} fields are displaying the wrong value to the participant.

For example: You have created a test participant with token 1234. You test the survey with this token while being logged in. You send the invitation e-mails to all participants using the {TOKEN} or {TOKEN:TOKEN} field to display the participants token. Now all participants will get an e-mail with the {TOKEN} field being replace with 1234 instead of the expected behavior.

Steps To Reproduce
  1. Create a new survey that uses tokens
  2. Create a few test participant with different test tokens (e.g. 1234, abcd) and an e-mailaddres that you can access
  3. Change the invitation e-mail and include the {TOKEN} and {TOKEN:TOKEN} field (maybe some others you want to test)
  4. Test this survey while being logged in (use the same browser, different tab) with the token (1234) you have created before
  5. Now send the invitation e-mails from the admin gui

Result: The test participants will all receive an e-mail with the token you used to test the survey.

Additional Information

See forum post: https://www.limesurvey.org/forum/installation-a-update-issues/112062-participant-sent-wrong-token

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)2.67.3+170728
I will donate to the project if issue is resolvedNo
BrowserChrome 60.0.3112.113
Database type & versionMySQL
Server OS (if known)Linux (unknown)
Webserver software & version (if known)Apache 2
PHP Version7.0

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2017-09-25 19:12

developer   ~44466

https://github.com/LimeSurvey/LimeSurvey/pull/814

DenisChenu

DenisChenu

2017-09-26 11:47

developer   ~44470

PS : all attributes are broken.

user70560

2017-10-05 11:28

  ~44543

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=23982

Related Changesets

LimeSurvey: master 8d3efaec

2017-10-05 11:27:57

user70560


Committer: GitHub Details Diff
Fixed issue 12704: Participants receive wrong tokens after testing

Dev: tempVars used for "forced" var
Dev: and template_replace with replacement replace the value for "forced" var
Affected Issues
12704
mod - application/helpers/expressions/em_manager_helper.php Diff File

Issue History

Date Modified Username Field Change
2017-09-25 17:30 zfocuz New Issue
2017-09-25 19:12 DenisChenu Assigned To => DenisChenu
2017-09-25 19:12 DenisChenu Status new => assigned
2017-09-25 19:12 DenisChenu Note Added: 44466
2017-09-26 11:47 DenisChenu Note Added: 44470
2017-10-05 11:28 user70560 Changeset attached => LimeSurvey master 8d3efaec
2017-10-05 11:28 user70560 Note Added: 44543
2017-10-05 11:28 user70560 Assigned To DenisChenu => user70560
2017-10-05 11:28 user70560 Resolution open => fixed
2018-10-17 09:56 DenisChenu Status assigned => resolved
2018-10-17 09:56 DenisChenu Fixed in Version => 3.0.x
2019-04-30 09:10 c_schmitz Status resolved => closed