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

Content/read policy and trashed Content with Location Limitation breaks the back office

    XMLWordPrintable

Details

    Description

      If a user has policy Content/Edit with Location limitation and his assignment  with Location limitation any his attempt on accessing Content with related content in the trash in admin back office will result in 500 error:

      InvalidArgumentException
      Argument '$targets' is invalid: Must contain Location objects 

      Steps to reproduce:
      1. Clean installation of Ibexa DXP v3 or eZ Platform 2.5
      2. Log in as admin user into the back office
      3. Go to Roles -> Editor
      4. Remove content/All functions policy
      5. Add content/read policy to it. Set Location Limitation to top-level Location (/Ibexa Platform)|
      6. Add content/All functions policy
      7. Create a new Editor user.
      8. Create two articles under  /Ibexa Digital Experience Platform where one article is in relation to the second
      9. Move to trash article which is related to first
      10. Log in to the back office as an Editor user.
      11. Go to Article with a related article in the trash

      Result:

      InvalidArgumentException
      Argument '$targets' is invalid: Must contain Location objects

      Expected result:
      Content is viewed normally.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mateusz.debinski@ibexa.co Mateusz Dębiński
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: