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

Cannot add Limitations to Policies

    XMLWordPrintable

Details

    Description

      After creating a new Role, when you try to add new Policy, you are unable to add new Limitations to it. Clicking on "Save and add limitations" results in the following error in the Platform UI: "Failed to load 'http://your-site.dev/pjax/role/policy/5/334'". This happens only in dev environment.

      Related error from the logs:

      [2017-12-15 09:03:51] request.CRITICAL: Uncaught PHP Exception Twig_Error_Runtime: "An exception has been thrown during the rendering of a template ("Could not find 'location' with identifier ''")." at XXX\vendor\ezsystems\repository-forms\bundle/Resources/views/Limitation/udw_limitation_value.html.twig line 14 {"exception":"[object] (Twig_Error_Runtime(code: 0): An exception has been thrown during the rendering of a template (\"Could not find 'location' with identifier ''\"). at C:\\Apache24\\htdocs\\ezplatform\\vendor\\ezsystems\\repository-forms\\bundle/Resources/views/Limitation/udw_limitation_value.html.twig:14, eZ\\Publish\\Core\\Base\\Exceptions\\NotFoundException(code: 404): Could not find 'location' with identifier '' at C:\\Apache24\\htdocs\\ezplatform\\vendor\\ezsystems\\ezpublish-kernel\\eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Location\\Gateway\\DoctrineDatabase.php:84)"} []
      

      This functionality works correctly on eZ Platform 1.12.2.

      Steps to reproduce

      1. Create new eZ Platform 1.7 installation. Use dev environment.
      2. Create a new Role.
      3. Create a new Content/Read Policy in the Role created in the previous step. Click on "Save and add limitations" to save it.
      4. Confirm the error described above.

      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: