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

Deleting User that has version inside workflow may break content in Admin UI

    XMLWordPrintable

Details

    Description

      If a user with content drafts inside workflow is deleted and workflow is set to work on published content, it will result in NotFoundException when trying to view said content.

      Steps to reproduce
      1. Clean installation of eZ Platform EE 2.5
      2. In ezplatform.yml set:

          system:
              default:
                  workflows:
                      custom_workflow:
                          name: Custom Workflow
                          matchers:
                              content_type: article
                              content_status: [draft, published]
                          stages:
                              draft:
                                  label: Draft
                                  color: '#f15a10'
                              technical:
                                  label: Technical review
                                  color: '#10f15a'
                              proofread:
                                  label: Proofread
                                  color: '#5a10f1'
                              done:
                                  label: Done
                                  color: '#301203'
                                  last_stage: true
                          initial_stage: draft
                          transitions:
                              to_technical:
                                  from: draft
                                  to: technical
                                  label: To technical review
                                  icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment'
                                  notification:
                                      user_group: 13
                              back_to_draft:
                                  reverse: to_technical
                                  label: Back to draft
                                  icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment'
                                  notification:
                                      user_group: 13
                              to_proofread:
                                  from: technical
                                  to: proofread
                                  label: To proofreading
                                  icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment'
                                  notification:
                                      user_group: 13
                              back_to_technical:
                                  reverse: to_proofread
                                  label: Back to technical review
                                  icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment'
                                  notification:
                                      user_group: 13
                              done:
                                  from: proofread
                                  to: done
                                  label: Done
                                  icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment'
                                  notification:
                                      user_group: 13
                                      user: 14
      

      3. In the backoffice create a new admin2 user in Administrator Group.
      4. Create a Test Article Article. Publish it.
      5. Log in to the backoffice as admin2, edit Test Article, send version to "Technical review".
      6. Log in to the backoffice as admin, delete admin2 user.
      7. Go to Test Article.

      Result

      NotFoundException
      HTTP 500 Internal Server Error
      An exception has been thrown during the rendering of a template ("Could not find 'Content' with identifier ...

      Expected Result
      Content should open normally.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mateusz.bieniek@ibexa.co Mateusz Bieniek
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: