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-28 14:35 |
| Reporter | DenisChenu | Assigned To | tibor.pacalat | ||
| Priority | none | Severity | minor | ||
| Status | confirmed | 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 | ||||
| related to | 20906 | new | tibor.pacalat | Survey participant attribute encryption setting is not respected when sharing CPDB participants |
| related to | 20903 | confirmed | tibor.pacalat | CPDB: attributes are not overwritten when the existing central participant is found by name and email |
|
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. |
|
|
Oups, not exacly the same here : it's when copy ... |
|
|
Both are in https://drop.chapril.org/download/c4ff5ca12dfd32f8/#TYrqxEwjH-zisfWiJX8iug |
|
|
Ligther |
|
|
CPDB: overwriting attributes of an existing central participant from a survey copies the raw value, encryption settings are ignored Good title |
|
| 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-28 12:06 | DenisChenu | Assigned To | DenisChenu => tibor.pacalat |
| 2026-11-28 12:06 | DenisChenu | Status | feedback => confirmed |
| 2026-11-28 12:09 | DenisChenu | Note Added: 87989 | |
| 2026-11-28 12:19 | DenisChenu | Assigned To | tibor.pacalat => DenisChenu |
| 2026-11-28 12:19 | DenisChenu | Status | confirmed => feedback |
| 2026-11-28 12:28 | DenisChenu | Note Added: 87994 | |
| 2026-11-28 12:29 | DenisChenu | Note Added: 87995 | |
| 2026-11-28 14:23 | DenisChenu | Note Added: 87996 | |
| 2026-11-28 14:23 | DenisChenu | File Added: Capture-CPDB-NotEncryptedGetEncryptedValue2.webm | |
| 2026-11-28 14:23 | DenisChenu | Assigned To | DenisChenu => tibor.pacalat |
| 2026-11-28 14:23 | DenisChenu | Status | feedback => confirmed |
| 2026-11-28 14:23 | DenisChenu | Note Added: 87997 | |
| 2026-11-28 14:32 | DenisChenu | Relationship added | related to 20906 |
| 2026-11-28 14:35 | DenisChenu | Relationship added | related to 20903 |