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

Error 500 after trying to preview role with section requirements without Section/View permission.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Confirmed
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0-beta1, 2.5.5
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Steps:

      1. Create (or update Editor's) role with these policies:

      • Content/*
      • User/ Login
      • User/Password
      • Setup/Administrate
      • Role/Read
      • Role/Update

      Assignments:

      • Subtree limitation: /Home
      • Subtree limitation: /Media

      2. Create a user and assign it to the role from previous step
      3. Log in as a user from step 2
      4. Go to Anonymous role, click it

      Actual result:

      prod mode: Page is empty
      dev mode: Error 500: An exception has been thrown during the rendering of a template ("User does not have access to 'view' 'section'"). That's because Anonymous role includes section limitations.

      Expected result:

      User should be redirected to the role view with an information message.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              barbara.grajczyk@ez.no Barbara Grajczyk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: