Description
"Publish" action in Workflow throws an Exception then the Draft is incomplete, resulting in a Internal Server Error page being displayed in AdminUI.
Steps to reproduce:
1. Add Workflow:
workflows: custom_workflow: name: Custom Workflow matchers: content_type: folder content_status: draft stages: draft: label: Draft color: '#f15a10' done: label: Done color: '#301203' last_stage: true initial_stage: draft transitions: done2: from: draft to: done label: Done color: '#88ad88' actions: publish: ~
2. Login as admin
3. Start creating a new Folder
4. Set "Name" field empty
5. Click Done
6. Select Admin user as reviewer and Send to review
Expected:
Validation in AdminUI kicks in and tells me that the transitioned cannot be performed because the Draft is incomplete.
Actual:
Transition begins to execute, Publish action throws an Exception ("Content fields did not validate") and internal server error page is displayed in AdminUI