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

Publishing the saved first draft results in error when Object State Limitation is used

    XMLWordPrintable

Details

    Description

      When the Editor has Content/Edit Policy with Object State Limitation and creates a new Content Object using Admin UI, then after the first draft is saved (but not published; meaning the Editor clicked "Save" button), then clicking either "Publish" or "Save" button results in the following error:

      AccessDeniedException
      User does not have access to 'edit' 'content' with: contentId '56''

      Steps to reproduce

      1. Create new eZ Platform installation.
      2. Create new User Group.
      3. Create new User in that User Group.
      4. Create new Role. Assign that Role to the created User Group.
      5. Assign following Policies to that Role:
        • Content: Read
        • User: Login
        • Section: View
        • Content: Edit (State: Lock:Not Locked)
        • User: Password
        • Content: Versionread
        • Content: Create
        • Content: Publish
        • Content: Reverserelatedlist
      6. Login as the created User.
      7. In the Admin UI, navigate to "Content"->"Content Structure", click "Create" and select "Article".
      8. Fill in "Title" and "Intro".
      9. Click "Save". The draft will be successfully saved.
      10. After the draft is saved, click "Publish" or "Save". The error mentioned above will be shown.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jacek.foremski-obsolete@ez.no Jacek Foremski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: