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

Can't copy objects to an authorized location limited by policies

    Details

      Description

      Steps to Reproduce

      -Create one folder "Folder1"
      -Create another folder "AuthorizedFolder" - (in my case, the locationId of this folder = 60)
      -Create one role with the following policies:

      Module Function Limitation
      user login No limitations
      content read No limitations
      content versionread No limitations
      content create Node( 60 )
      content publish Node( 60 )

      -Create one user and assign it to the previously created role
      -Logout and login using the new user credentials
      -Now try to copy "Folder1" into "AuthorizedFolder"

      I have a 406 error. The error I have in dev tools is

      <ErrorMessage media-type="application/vnd.ez.api.ErrorMessage+xml"><errorCode>406</errorCode><errorMessage>Not Acceptable</errorMessage><errorDescription>Argument '$targets' is invalid: Must contain objects of type: Location</errorDescription></ErrorMessage>
      

      note1: Using the created user, I can create objects in "AuthorizedFolder" without any problem
      note2: If I use "move" instead of "copy", the problem does not occur

        Issue Links

          Activity

          Show
          Andrzej Longosz added a comment - PR: https://github.com/ezsystems/ezpublish-kernel/pull/2057
          Hide
          Andrzej Longosz added a comment -

          Merged at 6.7@96c013f

          Show
          Andrzej Longosz added a comment - Merged at 6.7@96c013f
          Hide
          Paulo Nunes (Inactive) added a comment -

          QA Approved
          Tested in ezplatform master and in 5.4

          EZP-27744 was discovered while testing this issue, but is not part of the current approved scope.

          Show
          Paulo Nunes (Inactive) added a comment - QA Approved Tested in ezplatform master and in 5.4 EZP-27744 was discovered while testing this issue, but is not part of the current approved scope.

            People

            • Assignee:
              Unassigned
              Reporter:
              Paulo Nunes (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 2 hours, 30 minutes
                1d 2h 30m