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

Error 500 after trying to get node location from state assign limitation

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • None
    • 2.1.0, 2.5.2, 3.0.0-beta1
    • None

    Description

      Preconditions:

      Existing article New article in eZ Platform

      Steps:

      1. Go to Admin/Role and modify Editor's role like this:

      • Policies:
        • User/Login
        • User/Password
        • Section/View
        • Content/Reverserelatedlist
        • Content/Read
        • Content/Versionread
        • Content/Publish
        • Conten/Create
        • State/Assign with limitations: Location /eZ Platform/New article
      • Assingments
        • Editors with no limitations

      2. Add a user in Editors group
      3. Log in as user from previous step
      4. Go to eZ Platform/New article

      Actual result:

      Error 500 is thrown: An exception has been thrown during the rendering of a template ("Argument '$targets' is invalid: Must contain objects of type: Location"). State/Assign works fine without mentioned limitation.

      Expected result:

      User should be redirected to the chosen location.

      These two stories should be included in retesting:

      Given that I have the policy ‘State/Assign' with limitation 'Node/About' assigned to my User Group
      When I access the details tab of ‘Blog’ content item
      Then I don’t see the object state dropdown list and the ‘Set’ button

      Given that I have the policy ‘State/Assign' with limitation 'Node/About ' assigned to my User Group
      When I access the details tab of ‘About’ content item
      Then I see a dropdown list with every object states and the ‘Set’ button

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: