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

Problem with pdf on the fly and ezdb Clusterhandler

    XMLWordPrintable

Details

    Description

      Hi ,

      Pdf hanfler (in kernel/content/pdf.php) is using filesize() php function to compute size of file when taking file from cache (function contentPDFPassthrough) but this function don't work with non-physical file (because of ezdb cluster).

      As a consequence, pdf view is empty.

      to resolve this temporarily , I bypass the pdf caching passthrough whit a redirect and i add a rule into apache rewriting:

      Rewriterule ^/var/([^/]+/)?cache/.* /index_cluster.php [L]

      function contentPDFPassthrough( $cacheFile )
      {

      header(
      "Location: http://www.gpdis.com/".$cacheFile);

      Steps to reproduce

      Generate Pdf on the fly whith cluster handler ezdb

      Attachments

        Activity

          People

            dl dl
            kickleee kickleee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: