Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-31247

Content view fails after publishing to load when a Object State Group is deleted during loading

    XMLWordPrintable

Details

    Description

      Looks like the Content View can fail to load when (in parallel) an Object State group is deleted while a Content Item is published

      Happened on Travis, where two actions happened at the same time:

        [2019-12-19 02:23:57] Starting Step success notification that "Content published." appears
      [2019-12-19 02:23:58] Ending Step notification that "Object state group" "Test Object State Group edited2" is deleted appears [] []
      

      This failed with an error:
      "An exception has been thrown during the rendering of a template ("Could not find 'ObjectState' with identifier 'array('groupId' => 3,)")."
      thrown from "locationview.html.twig" template

      Steps to reproduce (theoretical):
      1. Login as admin
      2. Go to Admin -> Object States
      3. Create a new Object State Group
      4. Create a new Object State
      5. Start creating a new Content Item
      6. Delete the created Object State
      7. At the same time publish the Content Item and delete the Object State Group

      Application should fail with the error mentioned above.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: