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

Native DFS IO metadata handler not returning images correctly

    Details

      Description

      The Native DFS IO metadata handler can be used to store images on NFS, , while remaining compatible with legacy, using the DFS Cluster file handler. However the new apache configurations, for fetching images, returns a http error 500 with the following in apache error.log:

      [Tue Nov 04 12:41:19.254646 2014] [:error] [pid 2594] [client 10.0.5.1:54229] PHP Fatal error:  Call to a member function getTimestamp() on a non-object in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishIOBundle/BinaryStreamResponse.php on line 105, referer: http://10.0.5.2/Folder/Image-1
      [Tue Nov 04 12:41:19.254701 2014] [:error] [pid 2594] [client 10.0.5.1:54229] PHP Stack trace:, referer: http://10.0.5.2/Folder/Image-1
      [Tue Nov 04 12:41:19.254723 2014] [:error] [pid 2594] [client 10.0.5.1:54229] PHP   1. {main}() /var/www/html/ezpublish5/web/index.php:0, referer: http://10.0.5.2/Folder/Image-1
      [Tue Nov 04 12:41:19.254739 2014] [:error] [pid 2594] [client 10.0.5.1:54229] PHP   2. Symfony\\Component\\HttpKernel\\Kernel->handle() /var/www/html/ezpublish5/web/index.php:77, referer: http://10.0.5.2/Folder/Image-1
      [Tue Nov 04 12:41:19.254753 2014] [:error] [pid 2594] [client 10.0.5.1:54229] PHP   3. Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:185, referer: http://10.0.5.2/Folder/Image-1
      [Tue Nov 04 12:41:19.254768 2014] [:error] [pid 2594] [client 10.0.5.1:54229] PHP   4. Symfony\\Component\\HttpKernel\\HttpKernel->handle() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php:64, referer: http://10.0.5.2/Folder/Image-1
      [Tue Nov 04 12:41:19.254784 2014] [:error] [pid 2594] [client 10.0.5.1:54229] PHP   5. Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:66, referer: http://10.0.5.2/Folder/Image-1
      [Tue Nov 04 12:41:19.254796 2014] [:error] [pid 2594] [client 10.0.5.1:54229] PHP   6. Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher->dispatch() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:126, referer: http://10.0.5.2/Folder/Image-1
      [Tue Nov 04 12:41:19.254809 2014] [:error] [pid 2594] [client 10.0.5.1:54229] PHP   7. Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher->dispatch() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php:112, referer: http://10.0.5.2/Folder/Image-1
      [Tue Nov 04 12:41:19.254836 2014] [:error] [pid 2594] [client 10.0.5.1:54229] PHP   8. Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php:167, referer: http://10.0.5.2/Folder/Image-1
      [Tue Nov 04 12:41:19.254851 2014] [:error] [pid 2594] [client 10.0.5.1:54229] PHP   9. Symfony\\Component\\EventDispatcher\\EventDispatcher->doDispatch() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:53, referer: http://10.0.5.2/Folder/Image-1
      [Tue Nov 04 12:41:19.254867 2014] [:error] [pid 2594] [client 10.0.5.1:54229] PHP  10. call_user_func:{/var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:164}() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:164, referer: http://10.0.5.2/Folder/Image-1
      [Tue Nov 04 12:41:19.254883 2014] [:error] [pid 2594] [client 10.0.5.1:54229] PHP  11. Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener->__invoke() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:164, referer: http://10.0.5.2/Folder/Image-1
      [Tue Nov 04 12:41:19.254897 2014] [:error] [pid 2594] [client 10.0.5.1:54229] PHP  12. call_user_func:{/var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php:59}() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php:59, referer: http://10.0.5.2/Folder/Image-1
      [Tue Nov 04 12:41:19.254912 2014] [:error] [pid 2594] [client 10.0.5.1:54229] PHP  13. eZ\\Bundle\\EzPublishIOBundle\\EventListener\\StreamFileListener->onKernelRequest() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php:59, referer: http://10.0.5.2/Folder/Image-1
      [Tue Nov 04 12:41:19.254926 2014] [:error] [pid 2594] [client 10.0.5.1:54229] PHP  14. eZ\\Bundle\\EzPublishIOBundle\\BinaryStreamResponse->__construct() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishIOBundle/EventListener/StreamFileListener.php:64, referer: http://10.0.5.2/Folder/Image-1
      [Tue Nov 04 12:41:19.254941 2014] [:error] [pid 2594] [client 10.0.5.1:54229] PHP  15. eZ\\Bundle\\EzPublishIOBundle\\BinaryStreamResponse->setFile() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishIOBundle/BinaryStreamResponse.php:55, referer: http://10.0.5.2/Folder/Image-1
      [Tue Nov 04 12:41:19.254955 2014] [:error] [pid 2594] [client 10.0.5.1:54229] PHP  16. eZ\\Bundle\\EzPublishIOBundle\\BinaryStreamResponse->setAutoLastModified() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishIOBundle/BinaryStreamResponse.php:79, referer: http://10.0.5.2/Folder/Image-1
      

        Issue Links

          Activity

          Hide
          Bertrand Dunogier added a comment -

          Couldn't reproduce with a DFS setup with nginx. Does it only happen on apache ?

          Show
          Bertrand Dunogier added a comment - Couldn't reproduce with a DFS setup with nginx. Does it only happen on apache ?
          Hide
          Bertrand Dunogier added a comment -

          To help me (since I don't have an up-to-date ezpublish running on apache), could you add some debugging to eZ/Bundle/EzPublishIOBundle/EventListener/StreamFileListener.php ? On line 60, echo $uri, and give me the value. It is possible that rewrite differences between both servers cause this error.

          Show
          Bertrand Dunogier added a comment - To help me (since I don't have an up-to-date ezpublish running on apache), could you add some debugging to eZ/Bundle/EzPublishIOBundle/EventListener/StreamFileListener.php ? On line 60, echo $uri, and give me the value. It is possible that rewrite differences between both servers cause this error.
          Hide
          Bertrand Dunogier added a comment -

          Why was this closed as invalid ?

          Show
          Bertrand Dunogier added a comment - Why was this closed as invalid ?

            People

            • Assignee:
              Unassigned
              Reporter:
              Pedro Resende (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: