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

DFS Binary downloads get cached locally

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Customer request
    • 4.2.0, 4.3.0, 4.4.0
    • Legacy > Clustering
    • None
    • eZ Publish 4.2, 4.3, 4.4 with DFS cluster

    Description

      This is a problem when local storage is not large enough to handle NFS content. It is debatable whether this is a bug. The documentation is unclear: "Cache files are copied locally when used by a front-end, whereas images and binary files (when accessed directly via the browser) will be streamed directly from NFS."
      http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Features/Clustering/Cluster-File-Handlers#dfs

      The situation is that files downloaded using content/download links will be copied locally. Arguably, by "accessed directly" what is meant is direct file download from "var/", without going through php. (Direct access also means that there can be no permission checking.)

      The question, then, is whether content/download should be modified to serve the files from NFS. The API allows for this, see "eZClusterFileHandler::fetch( $noLocalCache )", however the functionality is not implemented in the DFS handler. There is some code in eZDFSFileHandlerMySQLBackend::_passThrough() and eZDFSFileHandlerDFSBackend::passthrough() to handle direct serving from NFS, however it is partially deprecated, and not currently used.

      Attachments

        Activity

          People

            e8318ba6-e4ae-477c-9116-36c073bd11a3@accounts.ibexa.co Patrick Allaert
            gl gl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: