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

Anonymous group needs to have access to section/view policy

    XMLWordPrintable

    Details

      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 [] []
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pedro.resende-obsolete@ez.no Pedro Resende (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 6 hours, 23 minutes
                  6h 23m