Affects Version/s: Master
Component/s: Fragment Administration
When importing a fragment through a file in the Fragments Admin area on the control panel, html is usually validated, and if it fails the fragment is thrown into draft mode. This is also not done for the config.
Steps to Reproduce
- Create a fragment with valid html, and invalid config
- Export fragment
- delete fragment
- Import Fragment
Error thrown correctly because it is caught correctly(if debug log is on, the exception should display in console) and fragment left in draft mode
Unknown error message is thrown because the error is not caught early and fragment is not created in draft mode.
Tested on Tomcat 9.0.17 + MySQL 5.7
Portal master GIT ID: 2e0862286535b794943a0b519da71f7bff312691