View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
17898Bug reportsQuestion editorpublic2022-04-21 17:22
Reporterj.ehrhart Assigned Togabrieljenik  
PrioritynoneSeveritypartial_block 
Status closedResolutionno change required 
Product Version5.2.x 
Summary17898: Question codes must be unique
Description

Hello,

On a fresh install of Ubuntu 20.04 with MySQL 8.0.28 Apache2 and php 7.4
I have a problem with versions 5.2.13 and 5.2.14.
I created a survey with multiple questions without issue.
A day later I can't add or edit any questions when I save, I got the error "Question codes must be unique".

After upgrading from 5.2.13 to 5.2.14 the bug disappeared, I was able to add several questions.
But one day later the bug is back!

Any suggestion ?

Steps To Reproduce

Steps to reproduce

(Replace this text with detailed step-by-step instructions on how to reproduce the issue)

Expected result

(Write here what you expected to happen)

Actual result

(Write here what happened instead)

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)Version 5.2.14+220214
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL 8.0.28
Server OS (if known)
Webserver software & version (if known)
PHP Version7.4

Users monitoring this issue

There are no users monitoring this issue.

Activities

obs-frab

obs-frab

2022-02-17 14:56

reporter   ~68320

Hi,
I have exactly the same bug on my one server.
That arrive when I move on the 5.2.14 with a "comfortable up-grade", the previous version was 3.27.35.
Contrary to j.ehrhart that's doesn't work et the beginning.

if you speak French you can see more information here https://forums.limesurvey.org/forum/french-forum/126752-probl%C3%A8me-de-v%C3%A9rification-du-code-unique-de-question-toujours-en-doublon#225185

Thanks’ for helping

j.ehrhart

j.ehrhart

2022-02-22 17:06

reporter   ~68362

I tried to change function actionCheckQuestionCodeUniqueness to return systematicaly True.
When I test it with /index.php/questionAdministration/checkQuestionCodeUniqueness?sid=751356&qid=162&code=q77 the result is True

But whatever the return is True or False the error persist in the UI and the question can't be saved.

Maybe the problem is in the server cache.

j.ehrhart

j.ehrhart

2022-02-23 14:09

reporter   ~68385

I found the problem.
We are using a WAF (web application firewall) in the settings there is an option to rewrite HTML, set by default.
When disabled the issue dissapear, I can now save questions.

gabrieljenik

gabrieljenik

2022-04-21 17:05

manager   ~69172

As per your comments, will be closing the ticket.
Please add any comments in case it should be reopened.
Thanks

Issue History

Date Modified Username Field Change
2022-02-16 17:17 j.ehrhart New Issue
2022-02-16 17:17 j.ehrhart File Added: limesurvey_survey_751356(1).lss
2022-02-17 14:56 obs-frab Note Added: 68320
2022-02-17 14:56 obs-frab Bug heat 0 => 2
2022-02-22 17:06 j.ehrhart Note Added: 68362
2022-02-22 17:06 j.ehrhart Bug heat 2 => 4
2022-02-23 14:09 j.ehrhart Note Added: 68385
2022-04-21 17:05 gabrieljenik Assigned To => gabrieljenik
2022-04-21 17:05 gabrieljenik Status new => closed
2022-04-21 17:05 gabrieljenik Resolution open => fixed
2022-04-21 17:05 gabrieljenik Note Added: 69172
2022-04-21 17:05 gabrieljenik Bug heat 4 => 6
2022-04-21 17:22 gabrieljenik Resolution fixed => no change required