Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FrontOffice] Questions answers set leads to an error #352

Open
ruslanbaidan opened this issue May 20, 2021 · 0 comments
Open

[FrontOffice] Questions answers set leads to an error #352

ruslanbaidan opened this issue May 20, 2021 · 0 comments

Comments

@ruslanbaidan
Copy link
Contributor

Environment
Reproducible only on Lycee instance, analysis #30.

Steps to reproduce
Answer on any of the questions of the second part of Context establishment: "Evaluation of Trends and Threat, and synthesis".

Context
"message": "An exception occurred while executing \u0027UPDATE questions SET position = position - 1 WHERE anr_id = ? AND position \u003E= ? AND id \u003C\u003E ?\u0027 with params [\u00222a1b8133-1782-4c00-af1d-1eca3d4d6db4\u0022, 2, 431]:\n\nSQLSTATE[22007]: Invalid datetime format: 1292 Truncated incorrect DOUBLE value: \u00272a1b8133-1782-4c00-af1d-1eca3d4d6db4\u0027",

Notes
The code debugging and the backtrace of the issues leads to the problem in the logic of saving of the answered questions.
The code of AbstractService::patch leads to execution of AbstractEntityTable::save and autopose call, which contains the reordering logic.
The reordering is not needed in this case and there is an issue with the params setting inside.

Solution
Implement a simple save of the patch request data in AnrQuestionService.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant