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

Cluster: index_image_*.php serves blank page on missing image, no error message

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 4.3.0, 4.4.0, 4.5.0
    • Fix Version/s: 4.6.0alpha1, Customer request
    • Component/s: Legacy > Clustering
    • Labels:
      None
    • Environment:

      eZ Publish 4.3
      DFS cluster

      Description

      Reported on index_image_dfsmysql.php, but seems valid on all index_image_*.php files.

      When a file on the NAS is missing (but the file reference exists in the DB) eZ returns a white/blank page. In the case of DFS, it goes like this:

      if ( file_exists( $dfsFilePath ) )
      {
          // Serve image
      }
      

      When the file doesn't exist, the script just ends without serving anything.

      This is an error situation, so an error message should be returned. This can improve error handling of proxies and load balancers. The customer wants a 5xx error. When the file doesn't exist in the database, 404 is returned. I'm not sure which is best.

      Steps to reproduce
      • Delete an image file on the NAS, and in local storage
      • Try to access that image

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              chen Chen Xiongjie
              Reporter:
              gl (inactive) Gunnstein Lye
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: