You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
API accepts choice options on a question type that has none #3981
Thanks for the report. Reproduced on a Nextcloud development instance with current main (Forms 5.5.0-dev): POST …/questions/{questionId}/options returned 201 and stored the options not only for short text, but for every question type without choices (long text, date, color, file, linear scale), while the form kept showing the normal input. The same code is in 5.4, so 5.4.2 is affected as well.
The fix is in #4000: options are only accepted for dropdown, checkbox, radio button and ranking questions (option type choice) and for grid questions (row or column), anything else gets a 400. A backport to stable5.4 is requested.
Activity
AndyScherzinger commentedon Nov 23, 2026
Thanks for the report. Reproduced on a Nextcloud development instance with current
main(Forms 5.5.0-dev):POST …/questions/{questionId}/optionsreturned 201 and stored the options not only for short text, but for every question type without choices (long text, date, color, file, linear scale), while the form kept showing the normal input. The same code is in 5.4, so 5.4.2 is affected as well.The fix is in #4000: options are only accepted for dropdown, checkbox, radio button and ranking questions (option type
choice) and for grid questions (roworcolumn), anything else gets a 400. A backport to stable5.4 is requested.Assisted by ClaudeCode:claude-opus-5-5
fix(api): add options only to questions that take them