View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
20588Bug reportsSurvey participants (Tokens)public2026-07-17 12:34
Reportertademo Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version6.17.x 
Summary20588: Error while import participants for csv file
Description

Error while import participants for csv file

Invalid access codes skipped when the token field is filled in

for example:

tid,firstname,lastname,email,emailstatus,token,language,validfrom,validuntil,invited,reminded,remindercount,completed,usesleft
"1","first","last","first.last@gmail.com","OK","DIOnqyPDjZJPDws","pl","","","N","N","0","N","1"

When the token field is empty import executes successfully.

Steps To Reproduce

Steps to reproduce

open survey
click participants
click add button (3 dots)
Import participants from: CSV file
choice csv file
click upload

Expected result

add a participant with a token as well

Actual result

1 lines with invalid access codes skipped (access codes may only contain 0-9,a-z,A-Z,_). [List]

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)LimeSurvey Community Edition Version 6.17.10+260622
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmysql 8.2
Server OS (if known)
Webserver software & version (if known)
PHP Version8.2

Users monitoring this issue

There are no users monitoring this issue.

Activities

tademo

tademo

2026-07-17 12:34

reporter   ~85210

I have applied a temporary fix for the participants token import/editing error.
In the file application/models/Token.php, I commented out lines 318 and 319 and added an entry.
My code now looks like this:

    // According to Yii doc : http://www.yiiframework.com/doc/api/1.1/CSecurityManager#generateRandomString-detail

$pattern = Yii::app()->getConfig("allowedcharacters_pattern_token");

return preg_replace($pattern, '', $token);

    return preg_replace('/[^A-Za-z0-9_]/', '', (string)$token);

I am awaiting the official fix.

Issue History

Date Modified Username Field Change
2026-07-01 10:28 tademo New Issue
2026-07-17 12:34 tademo Note Added: 85210
2026-07-17 12:34 tademo Bug heat 0 => 2