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

Fatal error on versionview permission check on ezp5.3

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: High High
    • 5.3-dev
    • Misc
    • None
    • Operating System: CentOS 6.5 x64
      PHP Version: 5.3.3
      Database and version: Mysql 5.1.73
      Browser (and version): Firefox 28

    Description

      Hi,

      Following the steps from the issue EZP-20949, on eZ Publish 5.3 Beta1, i had a fatal error.
      From the steps described in mentioned issue:

      STEPS TO REPRODUCE:

      • create a new section: my_restricted
      • create a role assigning privileges to create, read, versionview, assign section for this new section
      • create 1 editor users - editor_restricted. assign this new role (together with the basic editor role)
      • create 1 editor user - editor. assign the basic editor role alone
      • create a folder and assign it to section my_restricted
      • logged in as editor_restricted, create an article, within this folder and store it as a draft
      • on a different browser open the correspondent versionview/<objectid>/1/language, logged in with the regular editor user

      In the last step of the described steps above, i have the following error:

       Could not find 'Content' with identifier 'array (
      'id' => '60',
      'languages' =>
      array (
      0 => 'language',
      ),
      'versionNo' => '1',
      )'
      500 Internal Server Error - NotFoundException
      1 linked Exception:    NotFoundException ยป
      
      (...)
      
       CRITICAL - Uncaught PHP Exception eZ\Publish\Core\Base\Exceptions\NotFoundException: "Could not find 'Content' with identifier 'array ( 'id' => '60', 'languages' => array ( 0 => 'language', ), 'versionNo' => '1', )'" at /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentService.php line 383 
      
      

      The full stack trace is:

      [1] eZ\Publish\Core\Base\Exceptions\NotFoundException: Could not find 'Content' with identifier 'array (
        'id' => '60',
        'languages' => 
        array (
          0 => 'language',
        ),
        'versionNo' => '1',
      )'
          at n/a
              in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentService.php line 383
      
          at eZ\Publish\Core\Repository\ContentService->internalLoadContent('60', array('language'), '1')
              in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentService.php line 325
      
          at eZ\Publish\Core\Repository\ContentService->loadContent('60', array('language'), '1')
              in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/SignalSlot/ContentService.php line 191
      
          at eZ\Publish\Core\SignalSlot\ContentService->loadContent('60', array('language'), '1')
              in /var/www/html/ezpublish5/ezpublish/cache/dev/ezpublishDevDebugProjectContainer.php line 23190
      
          at eZPublishCoreRepositoryContentService_00000000764ecfd600000000a6de0fd6->loadContent('60', array('language'), '1')
              in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/PreviewController.php line 74
      
          at eZ\Publish\Core\MVC\Symfony\Controller\Content\PreviewController->previewContentAction('60', '1', 'language', 'plain_site_admin')
              in  line 
      
          at call_user_func_array(array(object(PreviewController), 'previewContentAction'), array('60', '1', 'language', 'plain_site_admin'))
              in /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 117
      
          at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
              in /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 61
      
          at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
              in /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 62
      
          at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
              in /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 187
      
          at Symfony\Component\HttpKernel\Kernel->handle(object(Request), '1', true)
              in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Kernel.php line 67
      
          at eZ\Bundle\EzPublishCoreBundle\Kernel->handle(object(Request))
              in /var/www/html/ezpublish5/web/index.php line 77
      
      [2] eZ\Publish\Core\Base\Exceptions\NotFoundException: Could not find 'content' with identifier 'contentId: 60, versionNo: 1'
          at n/a
              in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Handler.php line 309
      
          at eZ\Publish\Core\Persistence\Legacy\Content\Handler->load('60', '1', array('language'))
              in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Cache/ContentHandler.php line 64
      
          at eZ\Publish\Core\Persistence\Cache\ContentHandler->load('60', '1', array('language'))
              in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentService.php line 379
      
          at eZ\Publish\Core\Repository\ContentService->internalLoadContent('60', array('language'), '1')
              in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentService.php line 325
      
          at eZ\Publish\Core\Repository\ContentService->loadContent('60', array('language'), '1')
              in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/SignalSlot/ContentService.php line 191
      
          at eZ\Publish\Core\SignalSlot\ContentService->loadContent('60', array('language'), '1')
              in /var/www/html/ezpublish5/ezpublish/cache/dev/ezpublishDevDebugProjectContainer.php line 23190
      
          at eZPublishCoreRepositoryContentService_00000000764ecfd600000000a6de0fd6->loadContent('60', array('language'), '1')
              in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/PreviewController.php line 74
      
          at eZ\Publish\Core\MVC\Symfony\Controller\Content\PreviewController->previewContentAction('60', '1', 'language', 'plain_site_admin')
              in  line 
      
          at call_user_func_array(array(object(PreviewController), 'previewContentAction'), array('60', '1', 'language', 'plain_site_admin'))
              in /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 117
      
          at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
              in /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 61
      
          at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
              in /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 62
      
          at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
              in /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 187
      
          at Symfony\Component\HttpKernel\Kernel->handle(object(Request), '1', true)
              in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Kernel.php line 67
      
          at eZ\Bundle\EzPublishCoreBundle\Kernel->handle(object(Request))
              in /var/www/html/ezpublish5/web/index.php line 77
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            paulo.nunes-obsolete@ez.no Paulo Nunes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: