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

Adding policy user/register to the role throws 500

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 2.1.0-rc1, 2.1.0
    • Fix Version/s: Customer request, 2.1.1
    • Component/s: None
    • Labels:
    • Environment:

      dev

      Description

      Steps:

      1. Go to Admin/Roles
      2. Add a new Role
      3. Add a policy: User/Register and click Save

      Actual Result:

      Error 500: An exception has been thrown during the rendering of a template ("Argument 'user/register' has a bad state: policyMap configuration is referring to non existing identifier: 0").

      Expected result:

      Policy is added without problems.

      In the ezpublish-kernel, there is an exception which is thrown for $identifier = 0 for $module = 'user' and $function = 'register'.
      https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/Repository/RoleService.php#L1321
      https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/Repository/Helper/LimitationService.php#L51

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: