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

    XMLWordPrintable

    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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              paulo.nunes-obsolete@ez.no 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