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

/content/download causes fatal exception when downloading an Image

    Details

    • Type: Improvement Improvement
    • Status: Backlog
    • Priority: Low Low
    • Resolution: Unresolved
    • Affects Version/s: 2015.01, 2015.03
    • Fix Version/s: QA tracked issues
    • Component/s: Platform stack
    • Labels:
      None

      Description

      When trying to download using content download on a non-supported file, image for example, it causes a fatal error

      stack trace:

      [1] Symfony\Component\Debug\Exception\FatalErrorException: Error: Call to a member function getTimestamp() on a non-object
          at n/a
              in /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishIOBundle/BinaryStreamResponse.php line 105
       
          at eZ\Bundle\EzPublishIOBundle\BinaryStreamResponse->setAutoLastModified()
              in /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishIOBundle/BinaryStreamResponse.php line 79
       
          at eZ\Bundle\EzPublishIOBundle\BinaryStreamResponse->setFile()
              in /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishIOBundle/BinaryStreamResponse.php line 55
       
          at eZ\Bundle\EzPublishIOBundle\BinaryStreamResponse->__construct()
              in /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/DownloadController.php line 66
       
          at eZ\Publish\Core\MVC\Symfony\Controller\Content\DownloadController->downloadBinaryFileAction()
              in /var/www/html/ezpublish52/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 147
       
          at call_user_func_array:{/var/www/html/ezpublish52/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:147}()
              in /var/www/html/ezpublish52/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 147
       
          at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
              in /var/www/html/ezpublish52/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 68
       
          at Symfony\Component\HttpKernel\HttpKernel->handle()
              in /var/www/html/ezpublish52/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 69
       
          at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle()
              in /var/www/html/ezpublish52/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 196
       
          at Symfony\Component\HttpKernel\Kernel->handle()
              in /var/www/html/ezpublish52/web/index.php line 81
       
          at {main}()
              in /var/www/html/ezpublish52/web/index.php line 0
      

        Issue Links

          Activity

          Show
          Bertrand Dunogier added a comment - Pull-request: https://github.com/ezsystems/ezpublish-kernel/pull/1290 .

            People

            • Assignee:
              Unassigned
              Reporter:
              Miguel das Neves Jacinto (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: