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

eZDFS cleanup: Allow detection of NFS and DB availability to prevent accidental removal of files.

    Details

      Description

      The DFS cleanup script dfscleanup.php has options to check both the database and NFS share for existing files, and remove "stale" data in its counterpart.

      However, in case of failure of either, files/records will be (incorrectly) removed as they are not found.

      Steps to reproduce:
      • Run dfscleanup.php script
      • Disconnect the NFS mount point

      Files will be removed from the database.

      Suggested enhancement:
      • Either by default, or using a parameter/flag, check for general availability of the mount point (as well as database) if a file is not found.
      • On the NFS share, this could be done, for example, by checking for the existence of an existing file or directory (var dir?) when a file is not found.
      • If the NFS or DB are not available, the script could then terminate without further processing.

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Backlog Backlog
          4h 30m 1 joao.inacio@ez.no 04/May/13 12:15 AM
          Backlog Backlog Confirmed Confirmed
          79d 12h 12m 1 André Rømcke 22/Jul/13 12:28 PM
          Confirmed Confirmed InputQ InputQ
          64d 1h 24m 1 Bertrand Dunogier 24/Sep/13 1:53 PM
          Development Development Development Review Development Review
          1d 25m 2 Bertrand Dunogier 15/Oct/13 5:39 PM
          Development Review Development Review Development Review done Development Review done
          1m 8s 2 Bertrand Dunogier 15/Oct/13 5:39 PM
          Development Review done Development Review done Documentation Review done Documentation Review done
          16s 2 Bertrand Dunogier 15/Oct/13 5:39 PM
          QA QA InputQ InputQ
          3d 13h 54m 4 Joao Pingo (Inactive) 30/Oct/13 5:56 PM
          InputQ InputQ Development Development
          30d 15h 6m 5 yannick.roger@ez.no 05/Nov/13 10:34 AM
          Development Development Documentation Review done Documentation Review done
          20d 8h 55m 3 yannick.roger@ez.no 25/Nov/13 3:13 PM
          Documentation Review done Documentation Review done QA QA
          6d 11h 58m 5 Joao Pingo (Inactive) 25/Nov/13 3:15 PM
          QA QA Closed Closed
          2h 14m 1 Joao Pingo (Inactive) 25/Nov/13 5:29 PM
          Closed Closed Reopened Reopened
          7d 19h 59m 3 yannick.roger@ez.no 03/Dec/13 1:31 PM
          Reopened Reopened Closed Closed
          2m 29s 3 yannick.roger@ez.no 03/Dec/13 1:31 PM

            People

            • Assignee:
              Unassigned
              Reporter:
              Joao Inacio (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 week, 3 days, 4 hours, 15 minutes
                1w 3d 4h 15m