View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
18019 | Bug reports | Survey editing | public | 2022-04-05 16:35 | 2022-05-24 15:16 |
Reporter | DenisChenu | Assigned To | gabrieljenik | ||
Priority | high | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 5.2.x | ||||
Summary | 18019: 500 error in question edition (bad code on question) | ||||
Description | See screencast , entering invalid code broke whole page. | ||||
Steps To Reproduce | Steps to reproduceSee screencast Expected result
Actual resultBroke | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 8 | ||||
Complete LimeSurvey version number (& build) | 5.3.8 | ||||
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 | ||||
related to | 17929 | closed | DenisChenu | Bad code can be entered and savec in answer code |
related to | 18032 | confirmed | LSJsonExceptions handling and rendering |
PS : adding pattern and required must be done AFTER fix it in PHP (never think user can not update HTML) |
|
See (after https://github.com/LimeSurvey/LimeSurvey/pull/2331) Still 2 issue :
|
|
So, we need complement this solution (https://github.com/LimeSurvey/LimeSurvey/pull/2331) by showing friendlier errors? |
|
No : this issue is related to sub-question code. BUT : answer code have same issue :) then must be fixed in same way :) [EDIT] subquestion save (bot save and close) don't throw 500 error |
|
Now that 17929 is fixed, do we need this? |
|
See screencast : not related to answer code , but to sub-question code , Using save : it's OK |
|
The validation is already happening at subquestion level. The error that you were shown is OK. Seems like a dump but I guess that's because of the debug mode? BTW: Answer Codes with strange characters were saved, no dumps. It is not supposed to accept those characters, so the rules added on the other ticket are fine. |
|
No need debug at 2 :
|
|
|
|
Save and Close button is not submitting the form through Ajax. |
|
Option 3 : send ->validate in ajax (and return error) and ->save in PHP :) |
|
Adding an error handler for the case when the save is not done using ajax. Although it now shows the error in an alert, its content is still ugly (the print_r is still there). Side note, to review later: LSJsonExceptions are supposed to be handled by the SurveysController in the actionError() method, only when it's an AJAX request. But when it's AJAX it never gets there, because it gets caught before LSYii_Application::onException() (line 403). It would be necessary to add one more condition to that IF, excluding the LSJsonException. (will create a ticket for that) |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=33450 |
|
Fixed in Release 5.3.12+220502 |
|
I get the exact same error as shown at https://bugs.limesurvey.org/file_download.php?file_id=15813&type=bug when trying to use "other" as subquestion code at an array question. -> There simply is no "other" option for array questions. So to make array filter work with e.g. a multi choice question with "other" field, it would be great if we could accept "other" as subquestion code for arrays. |
|
Correct link to file is https://bugs.limesurvey.org/file_download.php?file_id=15813&type=bug :) @mazi I hate to ask for this, but can I ask you to open a new ticket for this matter? |
|
LimeSurvey: master 77f5e93a 2022-04-28 12:42 Committer: GitHub Details Diff |
Fixed issue 18019: 500 error in question edition (bad code on question) (#2343) Co-authored-by: encuestabizdevgit <devgit@encuesta.biz> |
Affected Issues 18019 |
|
mod - application/controllers/QuestionAdministrationController.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-04-05 16:35 | DenisChenu | New Issue | |
2022-04-05 16:35 | DenisChenu | File Added: 3.X.gif | |
2022-04-05 16:35 | DenisChenu | File Added: 5.X.gif | |
2022-04-05 16:36 | DenisChenu | Note Added: 68896 | |
2022-04-05 16:36 | DenisChenu | Bug heat | 0 => 2 |
2022-04-05 16:58 | galads | Assigned To | => gabrieljenik |
2022-04-05 16:58 | galads | Priority | none => high |
2022-04-05 16:58 | galads | Status | new => assigned |
2022-04-05 17:04 | DenisChenu | Note Added: 68898 | |
2022-04-05 17:04 | DenisChenu | File Added: 5XsaveAnswers.gif | |
2022-04-05 19:26 | gabrieljenik | Note Added: 68902 | |
2022-04-05 19:26 | gabrieljenik | Bug heat | 2 => 4 |
2022-04-05 19:49 | DenisChenu | Note Added: 68903 | |
2022-04-05 19:50 | DenisChenu | Note Edited: 68903 | |
2022-04-07 14:28 | gabrieljenik | Relationship added | related to 17929 |
2022-04-07 14:29 | gabrieljenik | Note Added: 68922 | |
2022-04-07 16:25 | DenisChenu | Note Added: 68928 | |
2022-04-07 18:34 | gabrieljenik | Note Added: 68935 | |
2022-04-07 18:34 | gabrieljenik | File Added: image.png | |
2022-04-07 18:34 | gabrieljenik | File Added: image-2.png | |
2022-04-07 18:35 | gabrieljenik | Status | assigned => ready for testing |
2022-04-07 18:52 | DenisChenu | Note Added: 68936 | |
2022-04-07 18:52 | DenisChenu | File Added: Peek 07-04-2022 18-50.gif | |
2022-04-07 18:53 | DenisChenu | Note Added: 68937 | |
2022-04-07 18:53 | DenisChenu | File Added: Capture d’écran du 2022-04-07 18-53-06.png | |
2022-04-08 22:30 | gabrieljenik | Status | ready for testing => assigned |
2022-04-08 23:07 | gabrieljenik | Note Added: 68956 | |
2022-04-08 23:09 | gabrieljenik | Note Edited: 68956 | |
2022-04-09 15:50 | DenisChenu | Note Added: 68963 | |
2022-04-12 23:51 | gabrieljenik | Note Added: 69025 | |
2022-04-12 23:53 | gabrieljenik | Relationship added | related to 18032 |
2022-04-12 23:54 | gabrieljenik | Status | assigned => ready for testing |
2022-04-12 23:56 | gabrieljenik | Note Edited: 69025 | |
2022-04-13 09:51 | DenisChenu | Note Added: 69036 | |
2022-04-28 10:42 | gabrieljenik | Changeset attached | => LimeSurvey master 77f5e93a |
2022-04-28 10:42 | gabrieljenik | Note Added: 69281 | |
2022-04-28 10:42 | gabrieljenik | Resolution | open => fixed |
2022-05-02 10:33 | LimeBot | Note Added: 69333 | |
2022-05-02 10:33 | LimeBot | Status | ready for testing => closed |
2022-05-02 10:33 | LimeBot | Bug heat | 4 => 6 |
2022-05-24 14:01 | Mazi | Note Added: 69997 | |
2022-05-24 14:01 | Mazi | File Added: image-3.png | |
2022-05-24 14:01 | Mazi | Bug heat | 6 => 8 |
2022-05-24 15:16 | gabrieljenik | Note Added: 70002 |