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

Content cannot be copied with Subtree limitation

    XMLWordPrintable

    Details

      Description

      When the user tries to copy the content from one location to another, he is redirected back to the base location and receives notification User does not have access to 'read' 'content' with: contentId 'XX'.

      Steps to reproduce:
      1. Clean eZ Platform v2.5 installation
      2. Create a role with the following policies:

      Module Function Limitations
      Content Read Subtree of Location: /Home/eZ Platform
      User Login SiteAccess: admin
      Content Versionread Subtree of Location: /Home/eZ Platform
      Content ManageLocations None
      Content Create Subtree of Location: /Home/eZ Platform
      Content Reverserelatedlist None
      Content Read Location: /Home , /Home/eZ Platform

      3. Create a User and assign him to the created role
      4. Create two folders under eZ Platform directory: A, B
      5. Create an Article in folder A.
      6. Sign in as a recently created user
      7. Open created Article in AdminUI
      8. On the right bar click copy, select the folder B, confirm.

      Expected: User is redirected to copied content in the new location
      Actual: User is redirected back to base content with error notification: User does not have access to 'read' 'content' with: contentId 'XX'.

      Note: New ContentInfo is missing the mainLocationId, thus in https://github.com/ezsystems/ezpublish-kernel/blob/7.5/eZ/Publish/Core/Limitation/LocationLimitationType.php#L137, thus the $targets is always empty

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            marcin.czech-obsolete@ez.no Marcin Czech (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: