Details
-
Bug
-
Resolution: Unresolved
-
High
-
5.3
-
None
Description
If you remove the read - Section(standard) policy from the anonymous role, and try to open the frontend as anonymous, eZ Publish will crash with a "TwigBundle:Exception:error500.html.twig" error.
Steps to Reproduce
- Remove "Content\Read\Section Standard" permission from Anonymous role
- Open the frontend ( http://yourSite.com )
- The site will be redirect to http://yourSite.com/login and will crash with: TwigBundle:Exception:error500.html.twig.
ezpublish/logs.prod.log
[2014-03-13 12:10:48] app.NOTICE: Siteaccess not matched against configuration, returning default siteaccess.
[2014-03-13 12:10:48] request.INFO: Matched route "login" (parameters: "_controller": "ezpublish.security.controller:loginAction", "_route": "login")
[2014-03-13 12:10:48] security.INFO: Populated SecurityContext with an anonymous Token
[2014-03-13 12:10:48] request.CRITICAL: Uncaught PHP Exception Twig_Error_Runtime: "An exception has been thrown during the rendering of a template ("User does not have access to 'read' 'content'") in "eZDemoBundle::page_header_logo.html.twig" at line 3." at
/var/www/html/ezpublish5/ezpublish/cache/prod/classes.php line 4539 {"exception":"[object] (Twig_Error_Runtime: An exception has been thrown during the rendering of a template (\"User does not have access to 'read' 'content'\") in \"eZDemoBundle::page_header_logo.html.twig\" at line 3. at /var/www/html/ezpublish5/ezpublish/cache/prod/classes.php:4539, eZ\\Publish\\Core\\Base\\Exceptions\\UnauthorizedException: User does not have access to 'read' 'content' at /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/LocationService.php:212)"} []
[2014-03-13 12:10:48] security.DEBUG: Write SecurityContext in the session