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

Router URLAlias permission issue

    XMLWordPrintable

Details

    Description

      The ezdemo package create a "Partner Section" folder which is in the "Restricted" section. As its name suggests, it's only available in the menu when you are logged. But when I try to access it begin authenticated as admin, I get an UnauthorizedException.

       in /home/dp/dev/ezpublish5/vendor/ezsystems/ezpublish/eZ/Publish/Core/Repository/LocationService.php at line 151  -+
      
                  $spiLocation = $this->persistenceHandler->locationHandler()->load( $locationId );
                  $location = $this->buildDomainLocationObject( $spiLocation );
                  if ( !$this->repository->canUser( 'content', 'read', $location->getContentInfo(), $location ) )
                      throw new UnauthorizedException( 'content', 'read' );
                  return $location;
              }
      
      at LocationService ->loadLocation ('94')
      in /home/dp/dev/ezpublish5/vendor/ezsystems/ezpublish/eZ/Publish/Core/Repository/URLAliasService.php at line 663  -+
      at URLAliasService ->buildUrlAliasDomainObject (object(UrlAlias), 'Partner-Section')
      in /home/dp/dev/ezpublish5/vendor/ezsystems/ezpublish/eZ/Publish/Core/Repository/URLAliasService.php at line 576  -+
      at URLAliasService ->lookup ('/Partner-Section', null)
      in /home/dp/dev/ezpublish5/vendor/ezsystems/ezpublish/eZ/Publish/Core/SignalSlot/URLAliasService.php at line 184  -+
      at URLAliasService ->lookup ('/Partner-Section')
      in /home/dp/dev/ezpublish5/vendor/ezsystems/ezpublish/eZ/Publish/Core/MVC/Symfony/Routing/UrlAliasRouter.php at line 106  -+
      at UrlAliasRouter ->matchRequest (object(Request))
      in /home/dp/dev/ezpublish5/vendor/ezsystems/ezpublish/eZ/Bundle/EzPublishCoreBundle/Routing/UrlAliasRouter.php at line 44  -+
      at UrlAliasRouter ->matchRequest (object(Request))
      in /home/dp/dev/ezpublish5/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ChainRouter.php at line 172  -+
      at ChainRouter ->matchRequest (object(Request))
      in kernel.root_dir/cache/dev/classes.php at line 5183  -+
      at RouterListener ->onKernelRequest (object(GetResponseEvent))
      at call_user_func (array(object(RouterListener), 'onKernelRequest'), object(GetResponseEvent))
      in /home/dp/dev/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Debug/ContainerAwareTraceableEventDispatcher.php at line 139  -+
      at ContainerAwareTraceableEventDispatcher ->doDispatch (array(array(object(ProfilerListener), 'onKernelRequest'), array(object(SiteAccessMatchListener), 'onKernelRequest'), array(object(RequestEventListener), 'onKernelRequestSetup'), array(object(SessionListener), 'onKernelRequest'), array(object(RouterListener), 'onKernelRequest'), array(object(LocaleListener), 'onKernelRequest'), array(object(RequestEventListener), 'onKernelRequestForward'), array(object(Firewall), 'onKernelRequest'), array(object(RequestListener), 'onKernelRequest'), array(object(RequestEventListener), 'onKernelRequestRedirect')), 'kernel.request', object(GetResponseEvent))
      in kernel.root_dir/cache/dev/classes.php at line 4834  -+
      at EventDispatcher ->dispatch ('kernel.request', object(GetResponseEvent))
      in kernel.root_dir/cache/dev/classes.php at line 5052  -+
      at ContainerAwareEventDispatcher ->dispatch ('kernel.request', object(GetResponseEvent))
      in /home/dp/dev/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Debug/ContainerAwareTraceableEventDispatcher.php at line 78  -+
      at ContainerAwareTraceableEventDispatcher ->dispatch ('kernel.request', object(GetResponseEvent))
      in /home/dp/dev/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 110  -+
      at HttpKernel ->handleRaw (object(Request), '1')
      in /home/dp/dev/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 73  -+
      at HttpKernel ->handle (object(Request), '1', true)
      in /home/dp/dev/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpKernel.php at line 50  -+
      at HttpKernel ->handle (object(Request), '1', true)
      in /home/dp/dev/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 193  -+
      at Kernel ->handle (object(Request))
      in /home/dp/dev/ezpublish5/web/index.php at line 26  -
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            damien.pobel-obsolete@ez.no Damien Pobel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 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 - 1 day, 1 hour, 30 minutes
                1d 1h 30m