Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-3191

Error when incomplete Draft is transitioned though Workflow with publish action

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 3.1.0-rc1
    • 3.1.0-beta1
    • Workflow

    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

      Attachments

        Activity

          People

            Unassigned Unassigned
            marek.nocon@ibexa.co Marek NocoĊ„
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: