Actions
Bug #85940
closedForm throws unhelpful exception if a YAML file could not be found
Start date:
2018-08-23
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:
Description
Steps to reproduce:
- Include any form definition
- Rename the file
- The Form Content Element in the Backend shows 'The file "..." does not exist.' That's fine.
- The frontend however shows the exception "The options "invalid" were not allowed (allowed were: "rendererClassName, renderingOptions, finishers, formEditor, label")"
This Exception is not helpful at all.
We could throw an Exception with a meaningful message instead before the validation of the allowed array keys.
This is just a suggestion. If this was done on purpose (for example to not disclose the path to the file on the server) its fine as it is.
Actions