Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
5.1.0rc1
-
Server OS: Red Hat 6.4
PHP: 5.3.3
Database: MySQL 5.1.61
Browser: Firefox 20.0
Description
While testing https://confluence.ez.no/display/EZP/View+provider+configuration using the "Identifier\Section" matcher I found out that if the anonymous groups doesn't have access to section/view policy the Twig will throw an exception with the following error
[2013-05-09 10:54:24] app.NOTICE: Siteaccess not matched against configuration, returning default siteaccess. [] [] [2013-05-09 10:54:24] app.INFO: Router eZ\Bundle\EzPublishCoreBundle\Routing\DefaultRouter was not able to match, message "" [] [] [2013-05-09 10:54:24] app.INFO: UrlAlias matched location #2. Forwarding to ViewController [] [] [2013-05-09 10:54:24] request.INFO: Matched route "ez_urlalias" (parameters: "_route": "ez_urlalias", "_controller": "ezpublish.controller.content.view:viewLocation", "locationId": "2", "viewType": "full", "layout": "true") [] [] [2013-05-09 10:54:24] app.DEBUG: Checking secure context token: [] [] [2013-05-09 10:54:24] app.DEBUG: Trying to pre-authenticate user "-1" [] [] [2013-05-09 10:54:24] app.INFO: Authentication success: PreAuthenticatedToken(user="anonymous", authenticated=false, roles="") [] [] [2013-05-09 10:54:24] request.CRITICAL: Uncaught PHP Exception eZ\Publish\Core\Base\Exceptions\UnauthorizedException: "User does not have access to 'view' 'section'" at /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/SectionService.php line 192 [] [] [2013-05-09 10:54:24] security.DEBUG: Write SecurityContext in the session [] []