View Issue Details

This bug affects 1 person(s).
 10
IDProjectCategoryView StatusLast Update
08098Bug reportsSurvey participants (Tokens)public2015-05-11 10:35
ReporterMazi Assigned ToDenisChenu  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00+ 
Fixed in Version2.06RC 
Summary08098: Token attribute information is not available when using opt-out link from email
Description

When having a non anonymous survey which uses tokens and you want to use token attribute data e. g. at the survey title, then this token data is not available when clicking the opt-out link at the invitation email.

Source code says: "<span style='background-color: #eee8aa;'><span title='Undefined variable' style='border-style: solid; border-width: 2px; border-color: red;'><span title='Undefined variable' style='color: red; font-weight: bold'>TOKEN:ATTRIBUTE_35</span></span></span>"

Steps To Reproduce
  1. Create and activate a non anonymous survey which uses tokens and add an additional token attribute.
  2. Add a dummy token with data for attribute 1.
  3. Add the data of attribute 1 to the survey title via placeholder {TOKEN:ATTRIBUTE_1}
  4. Send an email invitation and make sure it contains the opt-out link.
  5. Click the opt-out link from the email

-> The screen will not make use of the additional token attribute though token information is available at the end of the link and can easily be read from URL:

.../index.php/optout/tokens/langcode/en/surveyid/484476/token/wbevmh8hr47cyhjbhra7e2ue54gnbt4hdzn

TagsNo tags attached.
Attached Files
Bug heat10
Complete LimeSurvey version number (& build)130526
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & version5.1.68
Server OS (if known)Linux
Webserver software & version (if known)Apache 2
PHP Version5.3.27

Users monitoring this issue

DenisChenu

Activities

Mazi

Mazi

2013-08-31 13:01

updater   ~26115

Denis, can you have a look at this one?

c_schmitz

c_schmitz

2013-09-18 14:57

administrator   ~26276

Set target to 2.10 as it is a basic problem in the templating and survey session engine.

DenisChenu

DenisChenu

2014-03-05 12:45

developer   ~29104

Maybe just fill the $_SESSION['token'] array, but don't start survey.

Not sure here ....

gabrieljenik

gabrieljenik

2014-11-22 07:31

manager   ~31037

I am sorry, I don't get this.
I have tried to reproduce the incident and I got to this screen (see attached file).

The OPTOUT template is really simple: just 1 line. There is no place where the attribute could have been injected.

DenisChenu

DenisChenu

2014-11-22 15:58

developer   ~31040

If you use {TOKEN:ATTRIBUTE_X} in your template startpage.pstpl : it can break.

I take it for 2.06 (try). But link with 'don't show error' too : for this one, i have some idea.

DenisChenu

DenisChenu

2015-05-09 16:54

developer   ~32155

Fix committed to 2.06 branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=15156

c_schmitz

c_schmitz

2015-05-11 10:35

administrator   ~32160

Version 2.06RC2 Build 150511 released

Related Changesets

LimeSurvey: 2.06 57df898e

2015-05-09 14:53:46

DenisChenu

Details Diff
Fixed issue 08098: Token attribute information is not available when using opt-out link from email
Dev: use EM
Dev: fix a Notice in LimeExpressionManager::singleton()->loadTokenInformation if token don't exist
Affected Issues
08098
mod - application/controllers/OptinController.php Diff File
mod - application/controllers/OptoutController.php Diff File
mod - application/helpers/expressions/em_manager_helper.php Diff File

Issue History

Date Modified Username Field Change
2013-08-16 11:46 Mazi New Issue
2013-08-16 11:46 Mazi Status new => assigned
2013-08-16 11:46 Mazi Assigned To => DenisChenu
2013-08-16 11:57 Mazi Assigned To DenisChenu => sammousa
2013-08-16 12:02 Mazi Assigned To sammousa => c_schmitz
2013-08-31 13:01 Mazi Issue Monitored: DenisChenu
2013-08-31 13:01 Mazi Note Added: 26115
2013-09-18 14:56 c_schmitz Target Version 2.00+ => 2.10
2013-09-18 14:56 c_schmitz Assigned To c_schmitz =>
2013-09-18 14:57 c_schmitz Note Added: 26276
2013-10-11 12:57 c_schmitz Assigned To => c_schmitz
2013-10-11 12:57 c_schmitz Status assigned => acknowledged
2013-10-11 12:57 c_schmitz Assigned To c_schmitz =>
2014-03-05 12:45 DenisChenu Note Added: 29104
2014-11-22 07:31 gabrieljenik Note Added: 31037
2014-11-22 07:32 gabrieljenik File Added: 141122 03_29_28 - http___192.168.33.10_limesurvey_index.php_optout_tokens_langcode_en_surveyid_897638_token_201411220301_Date broke organize Masculno - Mozilla Firefox.png
2014-11-22 15:58 DenisChenu Note Added: 31040
2014-11-22 15:58 DenisChenu Assigned To => DenisChenu
2014-11-22 15:58 DenisChenu Status acknowledged => assigned
2015-05-09 16:54 DenisChenu Changeset attached => LimeSurvey 2.06 57df898e
2015-05-09 16:54 DenisChenu Note Added: 32155
2015-05-09 16:54 DenisChenu Resolution open => fixed
2015-05-09 16:54 DenisChenu Status assigned => resolved
2015-05-09 16:54 DenisChenu Fixed in Version => 2.06RC
2015-05-11 10:35 c_schmitz Note Added: 32160
2015-05-11 10:35 c_schmitz Status resolved => closed
2016-12-08 10:39 c_schmitz Category Tokens => Survey participants (Tokens)
2021-08-04 16:39 guest Bug heat 8 => 10