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

state limitations in a policy cause a 500 NotFoundException error

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: High High
    • Customer request
    • 5.0, 5.1, 5.2-alpha1
    • Permissions
    • None
    • ezp 5.x, eZDemo siteaccess, or any non-legacy bundle

    Description

      adding state limitations to policies will make ezp throw this error:
      Could not find 'Limitation' with identifier 'StateGroup_XXXXXXX'

      XXXXX is the name of the state group defined in the policy.

      use case:

      • create a state group with two states named "go" and "stop"
      • with the admin user, publish a test article and be sure that the state can be changed between "go" and "stop".
      • open the article in frontend(must NOT be a legacy design) without logging in
        -> article will open ok
      • create a role with just the policy:
        content read Class( Article ) , StateGroup_XXXXX( go )
      • add this role to the Anonymous Users group
      • clear caches, reload the article in frontend.
        -> error 500 is displayed

      Attachments

        Activity

          People

            Unassigned Unassigned
            paulo.bras-obsolete@ez.no Paulo Bras (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: