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

          Bertrand Dunogier logged work - 26/Sep/13 5:42 PM
          • Time Spent:
            6 hours
             
            <No comment>
          Joao Pingo (Inactive) logged work - 01/Oct/13 2:15 PM - edited
          • Time Spent:
            5 hours
             

            Testing

          Joao Pingo (Inactive) logged work - 02/Oct/13 2:00 AM
          • Time Spent:
            1 hour
             

            Testing

          Yannick Roger (Inactive) logged work - 28/Oct/13 6:51 PM
          • Time Spent:
            2 hours
             

            backports

          Joao Pingo (Inactive) logged work - 29/Oct/13 9:18 AM - edited
          • Time Spent:
            1 day
             

            Testing

          Joao Pingo (Inactive) logged work - 30/Oct/13 5:57 PM
          • Time Spent:
            1 day
             

            Testing

          Yannick Roger (Inactive) logged work - 12/Nov/13 1:00 AM
          • Time Spent:
            4 hours
             

            setup env

          Yannick Roger (Inactive) logged work - 13/Nov/13 1:00 AM
          • Time Spent:
            3 hours
             

            investigation on 4.5

          Joao Pingo (Inactive) logged work - 18/Nov/13 4:28 PM
          • Time Spent:
            5 hours
             

            Retesting

          Yannick Roger (Inactive) logged work - 20/Nov/13 1:00 AM
          • Time Spent:
            2 hours
             

            .

          Joao Pingo (Inactive) logged work - 21/Nov/13 9:09 AM - edited
          • Time Spent:
            5 hours
             

            Retesting

          Yannick Roger (Inactive) logged work - 21/Nov/13 1:23 PM - edited
          • Time Spent:
            5 hours
             

            re activated env, did some more test

          Marcos Loureiro (Inactive) logged work - 21/Nov/13 6:17 PM
          • Time Spent:
            2 hours, 45 minutes
             

            Testing

          Yannick Roger (Inactive) logged work - 22/Nov/13 1:00 AM
          • Time Spent:
            6 hours
             

            .

          Yannick Roger (Inactive) logged work - 25/Nov/13 4:23 PM
          • Time Spent:
            3 hours
             

            .

          Joao Pingo (Inactive) logged work - 25/Nov/13 5:39 PM
          • Time Spent:
            2 hours, 30 minutes
             

            Closed

            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