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

Adding policy eZJScore > Call with function list limitations throw an error

    XMLWordPrintable

    Details

      Description

      Add to anonymous role, a policy with:

      • Module: ezjscore
      • Function: call
      • Function list:
        • ezstarrating_rate
        • ezstarrating_user_has_rated

      Verify you get an 503 when opening the any page
      on apache logs you'll see:

      [Fri May 09 13:07:57 2014] [error] [client 10.0.1.1] PHP Fatal error:  Uncaught exception 'eZ\\Publish\\Core\\Base\\Exceptions\\NotFoundException' with message 'Could not find 'Limitation' with identifier 'FunctionList'' in /var/www/html/bul/ezp53/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/RoleService.php:1023\nStack trace:\n#0 /var/www/html/bul/ezp53/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/RoleService.php(931): eZ\\Publish\\Core\\Repository\\RoleService->getLimitationType('FunctionList')\n
      #1 /var/www/html/bul/ezp53/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/RoleService.php(903): eZ\\Publish\\Core\\Repository\\RoleService->buildDomainPolicyObject(Object(eZ\\Publish\\SPI\\Persistence\\User\\Policy), Object(eZ\\Publish\\SPI\\Persistence\\User\\Role))\n
      #2 /var/www/html/bul/ezp53/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/RoleService.php(434): eZ\\Publish\\Core\\Repository\\RoleService->buildDomainRoleObject(Object(eZ\\Publish\\SPI\\Persistence\\User\\Role))\n
      #3 /var/www/html/bul/ezp53/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository in /var/www/html/bul/ezp53/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/RoleService.php on line 1023, referer: http://53.bul/ezdemo_site_admin/setup/extensions
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              marcos.loureiro@ez.no Marcos Loureiro (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: