Details

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

      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.

        Issue Links

          Activity

          Show
          Patrick Allaert added a comment - Fixed in: eZ Publish 4.6: https://github.com/ezsystems/ezpublish/commit/7da2834d6c9639141c26e3e0426a02ddc79f1d3c
          Hide
          Geir Arne Waaler added a comment -

          The issue is fixed. I hence move it from Code Review to Closed.

          Geir Arne Waaler
          eZ Documentation

          Show
          Geir Arne Waaler added a comment - The issue is fixed. I hence move it from Code Review to Closed. Geir Arne Waaler eZ Documentation
          Hide
          Clément Mateo added a comment -

          Applying this patch, included in the eZ Publish 4.3 SP (EZSP-001-EZP4.3), breaks file downloading in cluster mode (with eZDBFileHandler)
          I get a 500 error when I try to download a pdf. it seems kernel don't find an eZClusterFileHandler but I'm not sure.
          I had to use old version of kernel/classes/binaryhandlers/ezfilepassthrough/ezfilepassthroughhandler.php to make it work.

          Show
          Clément Mateo added a comment - Applying this patch, included in the eZ Publish 4.3 SP (EZSP-001-EZP4.3), breaks file downloading in cluster mode (with eZDBFileHandler) I get a 500 error when I try to download a pdf. it seems kernel don't find an eZClusterFileHandler but I'm not sure. I had to use old version of kernel/classes/binaryhandlers/ezfilepassthrough/ezfilepassthroughhandler.php to make it work.
          Hide
          (inactive) Gunnstein Lye added a comment -

          In reply to comment #052770
          Hello Clément,
          This is the first report of a problem with EZSP-001-EZP4.3. The patch does not add any new files, so I'm surprised that you should see the error you are reporting. Could you please check if your autoload/ezp_kernel.php contains eZClusterFileHandler? If it doesn't, you'll need to regenerate the kernel autoloads. Please let me know if this is the case.

          Please also post all relevant error messages here, in particular PHP errors.

          Show
          (inactive) Gunnstein Lye added a comment - In reply to comment #052770 Hello Clément, This is the first report of a problem with EZSP-001-EZP4.3. The patch does not add any new files, so I'm surprised that you should see the error you are reporting. Could you please check if your autoload/ezp_kernel.php contains eZClusterFileHandler? If it doesn't, you'll need to regenerate the kernel autoloads. Please let me know if this is the case. Please also post all relevant error messages here, in particular PHP errors.
          Hide
          Clément Mateo added a comment -

          In reply to comment #052772
          First, thank you for your answer.
          Then, error is not related to 500 html throws in ezfilepassthroughhandler.php
          I think there was an incomplete update of EZSP-001-EZP4.3

          Show
          Clément Mateo added a comment - In reply to comment #052772 First, thank you for your answer. Then, error is not related to 500 html throws in ezfilepassthroughhandler.php I think there was an incomplete update of EZSP-001-EZP4.3
          Hide
          J. J. Cavalleri added a comment -

          In reply to comment #052773
          I confirm this problem. Applying SP-001 on eZP 4.3 with DB cluster causes problems on downloading files, reverting this patch afterwards, solves it.

          Show
          J. J. Cavalleri added a comment - In reply to comment #052773 I confirm this problem. Applying SP-001 on eZP 4.3 with DB cluster causes problems on downloading files, reverting this patch afterwards, solves it.

            People

            • Assignee:
              Patrick Allaert
              Reporter:
              (inactive) Gunnstein Lye
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: