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

Problems with content/read policy limitations

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: High High
    • Customer request
    • 5.4.8
    • Permissions
    • None

    Description

      Steps to reproduce

      1. On the admin siteaccess, on "Users", create user group "TestGroup";
      2. Inside "TestGroup", create user:

      Username: jsmith
      Password: jsmith
      

      3. On "Roles", create role "TestRole", and enter it by clicking its link;
      4. Add the following policies:

      Module		Function	Limitation
      ======		========	==========
      content		read		Node( Home , Media ) , Subtree( Tests )
      user		login		No limitations
      

      Note: "Subtree( Tests )" refers to a test folder located directly under Home.

      5. Assign the role "TestRole" to "TestGroup" user goup;
      6. Login to the admin siteaccess as the new user created on step 2.

      Results:
      a) Home: the page could not be displayed, and a "User does not have access to 'read' 'content' with: contentId '57'" 500 error was displayed instead.

      • Note: contentId 57 refers to my test installation's main node

      b) Subtree: got the same error, for the subtree's contentId, 120: "User does not have access to 'read' 'content' with: contentId '120'"

      Error:

      CRITICAL - Uncaught PHP Exception eZ\Publish\Core\Base\Exceptions\UnauthorizedException: "User does not have access to 'read' 'content' with: contentId '57'" at /var/www/54ezdemo.com/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentService.php line 128
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            nuno.oliveira-obsolete@ez.no Nuno Oliveira (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 - 15 minutes
                15m