View Issue Details

This bug affects 3 person(s).
 14
IDProjectCategoryView StatusLast Update
17621Bug reportsComfortUpdatepublic2021-09-24 11:36
ReporterJmantysalo Assigned Toollehar  
PrioritynoneSeveritypartial_block 
Status closedResolutionduplicate 
Product Version5.x 
Summary17621: Updating DB fails for label sets
Description

ComfortUpdate from 5.1.3+210817 to 5.1.13 failed. It tried to update DB from 473 to 475, and failed:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '194-AO01' for key 'lime_idx5_labels'

Everything went fine on test server, so I guess that the error happened because production server had some label sets defined. Failing update statement was

$oDB->createCommand()->createIndex('{{idx5_labels}}', '{{labels}}', ['lid','code'], true);

and the DB do have many duplicates in the table lime_labels for value pairs lid-code. This was quite nasty, as the system was left on unusable state.

TagsNo tags attached.
Bug heat14
Complete LimeSurvey version number (& build)5.x
I will donate to the project if issue is resolvedNo
Browser
Database type & versionSee above
Server OS (if known)
Webserver software & version (if known)
PHP VersionN/A

Users monitoring this issue

There are no users monitoring this issue.

Activities

ollehar

ollehar

2021-09-24 11:36

administrator   ~66609

Fix will be released on Monday.

Issue History

Date Modified Username Field Change
2021-09-23 18:04 Jmantysalo New Issue
2021-09-24 11:36 ollehar Assigned To => ollehar
2021-09-24 11:36 ollehar Status new => closed
2021-09-24 11:36 ollehar Resolution open => duplicate
2021-09-24 11:36 ollehar Note Added: 66609
2021-09-24 11:36 ollehar Bug heat 0 => 2
2021-09-29 15:40 user313434 Bug heat 2 => 8
2021-10-01 12:56 Dietrich Streifert Bug heat 8 => 14