State limitation on Content/Versionread or Content/Publish policy causes exception when creating items.
Prereq.: Create an editor user assigned to a role with policies like on attachment. The key is that a state limitation is set on either Versionread policy or Publish policy.
- Log in to admin panel as this user.
- Go to Content / Content strucutre.
- Click Create and choose some Content Type.
Actual result: Error 500 occurs
An exception has been thrown during the rendering of a template ("Property 'mainLocationId' not found on class 'eZ\Publish\Core\Repository\Values\Content\ContentCreateStruct'").
- discovered while testing
EZP-30827 Introduce strict types for ObjectStateService