View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 20902 | Bug reports | Central participant database | public | 2026-11-26 16:29 | 2026-11-26 17:13 |
| Reporter | DenisChenu | Assigned To | DenisChenu | ||
| Priority | none | Severity | minor | ||
| Status | feedback | Resolution | open | ||
| Product Version | 7.11.x | ||||
| Summary | 20902: CPDB: overwriting attributes of an existing central participant from a survey copies the raw value, encryption settings are igno | ||||
| Description | When survey participants are added to the central participant database (CPDB) and a matching central participant already exists, the "overwrite" options copy the attribute values with Participant::updateAttributeValueToken(). This function copies the raw value of the survey participant column to participant_attribute: the value is not decrypted with the survey settings, and not encrypted with the settings of the destination CPDB attribute.
| ||||
| Steps To Reproduce | Steps to reproduce
Expected result"Department" contains the new plain value. Actual result"Department" contains the encrypted string of the survey attribute. | ||||
| Tags | No tags attached. | ||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 7.11.0 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | not relevant | ||||
| Database type & version | not relevant | ||||
| Server OS (if known) | not relevant | ||||
| Webserver software & version (if known) | not relevant | ||||
| PHP Version | not relevant | ||||
| Git branch / Pull Request URL | N/A | ||||
|
Possible fix, like the CSV import of the CPDB (ParticipantsAction::actionImportCSV): read the survey participant with TokenDynamic and decrypt() it, then write the value with new ParticipantAttribute() + encrypt() + ParticipantAttribute::updateParticipantAttributeValue(). encrypt() applies the "encrypted" setting of the CPDB attribute and CPDB_encryption_method. |
|
|
Hmm, I am not sure if this is supposed to work like that. I did the same scenario, but I have set the attribute as encrypted in the CPDB and this worked. |
|
|
Oh fuck
I check tomorrow |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-11-26 16:29 | DenisChenu | New Issue | |
| 2026-11-26 16:34 | DenisChenu | Note Added: 87974 | |
| 2026-11-26 16:34 | DenisChenu | Bug heat | 0 => 2 |
| 2026-11-26 17:04 | tibor.pacalat | Note Added: 87978 | |
| 2026-11-26 17:04 | tibor.pacalat | Bug heat | 2 => 4 |
| 2026-11-26 17:05 | tibor.pacalat | Assigned To | => DenisChenu |
| 2026-11-26 17:05 | tibor.pacalat | Status | new => feedback |
| 2026-11-26 17:13 | DenisChenu | Note Added: 87979 |