View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
18614Bug reportsInstallationpublic2023-06-08 18:35
Reporterriqcles Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status closedResolutionno change required 
Product Version5.5.x 
Summary18614: lime_questions ERROR: Value '27373432210' is out of bounds for type integer at character 52
Description

Hello,
I logged into my database to see what's wrong when I perform the data integrity test.

I did the following to select tables:

select 'DROP TABLE ' AS constant1 ,
table_name,
-- substr(table_name,24, 4) as "year",
-- substr(table_name,28, 2) as "month",
-- substr(table_name,29, 2) as "day"
' WATERFALL; ' AS constant2

from information_schema.tables

where table_catalog = 'limesurvey'
and table_schema = 'public'
and table_type = 'BASE TABLE'
and tablename 'lime%_survey_9912%'

This works fine, and generates the list of affected tables for me....

But looking at the log file, we see that errors on the selection of the lime_questions table are present:

2023-02-02 11:12:27.075 CET [28495] ERROR: Value '28815429493' is out of bounds for type integer at character 52
2023-02-02 11:12:27.075 CET [28495] INSTRUCTION: SELECT * FROM "lime_questions" "t" WHERE "t".."qid"='28815429493' AND "t".."sid"=139916 LIMIT 1

the value for each line (if I have sub questions) exceeds the limit of the number of characters for the type integer.
I have 11 characters instead of 10 maximum.

Looking in more detail, I see that if in the code of the sub-question does not start with a letter (ex: SQ1) and that we only have numbers, the request will take the code of the sub-question which is a title, as the internal code of the subquestion.

Users imported a template questionnaire, which contained sub-questions with only numbers, and as they have a lot of duplicate questionnaires (2000 lines of errors with the sub-questions), the processing time during the integrity check data, then cleaning (which crashes for me) takes a long time.

Steps To Reproduce

Create a quiz with an array question
replace the code of the sub-question with several digits

Run data integrity test.

Go see the log on PostgreSQL server (or other).

TagsNo tags attached.
Attached Files
sous_questions.png (29,117 bytes)   
sous_questions.png (29,117 bytes)   
sous_questions_2.png (59,981 bytes)   
sous_questions_2.png (59,981 bytes)   
sous_questions_3.png (29,370 bytes)   
sous_questions_3.png (29,370 bytes)   
Bug heat2
Complete LimeSurvey version number (& build)Version 5.4.5+221010
I will donate to the project if issue is resolvedNo
Browser
Database type & versionPostgresql 13
Server OS (if known)
Webserver software & version (if known)
PHP Version7.4.32

Relationships

related to 16690 acknowledged Unable to use checkintegrity on big instance 
related to 17458 closedadamzammit Check integrety broke with SQL error 

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2023-06-08 18:35

administrator   ~75494

The issue happens if you import/copy a survey. It is properly handled, so the error in the log can be ignored.

Issue History

Date Modified Username Field Change
2023-02-02 17:57 riqcles New Issue
2023-02-02 17:57 riqcles File Added: sous_questions.png
2023-02-02 17:57 riqcles File Added: sous_questions_2.png
2023-02-02 17:57 riqcles File Added: sous_questions_3.png
2023-02-02 18:06 DenisChenu Relationship added related to 16690
2023-02-02 18:07 DenisChenu Relationship added related to 17458
2023-06-08 18:35 c_schmitz Note Added: 75494
2023-06-08 18:35 c_schmitz Bug heat 0 => 2
2023-06-08 18:35 c_schmitz Assigned To => c_schmitz
2023-06-08 18:35 c_schmitz Status new => closed
2023-06-08 18:35 c_schmitz Resolution open => no change required