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

          Joao Inacio (Inactive) created issue -
          Joao Inacio (Inactive) made changes -
          Field Original Value New Value
          Description The DFS cleanup script dfscleanup.php has options to check both the database and NFS share for existing files, and remove "stale" data its the counterpart.

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

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

          Files will be removed from the database.

          h5. 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.
          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.

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

          Files will be removed from the database.

          h5. 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.
          Joao Inacio (Inactive) made changes -
          Status Open [ 1 ] Backlog [ 10000 ]
          André Rømcke made changes -
          Status Backlog [ 10000 ] Confirmed [ 10037 ]
          Bertrand Dunogier made changes -
          Issue Type Improvement [ 4 ] Bug [ 1 ]
          Bertrand Dunogier made changes -
          Affects Version/s 5.1 [ 11280 ]
          Affects Version/s 5.0 [ 10300 ]
          Affects Version/s 5.2-beta1 [ 12684 ]
          Bertrand Dunogier made changes -
          Status Confirmed [ 10037 ] InputQ [ 10001 ]
          Bertrand Dunogier made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Assignee Bertrand Dunogier [ bertrand.dunogier@ez.no ]
          Bertrand Dunogier made changes -
          Remaining Estimate 0 minutes [ 0 ]
          Time Spent 6 hours [ 21600 ]
          Worklog Id 40102 [ 40102 ]
          Bertrand Dunogier made changes -
          Status Development [ 3 ] Development review [ 10006 ]
          Bertrand Dunogier made changes -
          Remote Link This issue links to "pr ezpublish-legacy#775 (Web Link)" [ 12600 ]
          Bertrand Dunogier made changes -
          Status Development review [ 10006 ] Development Review done [ 10028 ]
          Bertrand Dunogier made changes -
          Status Development Review done [ 10028 ] Documentation done [ 10011 ]
          Eduardo Fernandes (Inactive) made changes -
          Comment [ A comment with security level 'Employees' was removed. ]
          Joao Pingo (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Bertrand Dunogier [ bertrand.dunogier@ez.no ] Joao Pingo [ joao.pingo@ez.no ]
          Joao Pingo (Inactive) made changes -
          Status QA [ 10008 ] InputQ [ 10001 ]
          Assignee Joao Pingo [ joao.pingo@ez.no ]
          Joao Pingo (Inactive) made changes -
          Time Spent 6 hours [ 21600 ] 1 day, 2 hours [ 36000 ]
          Worklog Id 40623 [ 40623 ]
          Joao Pingo (Inactive) made changes -
          Time Spent 1 day, 2 hours [ 36000 ] 1 day, 3 hours [ 39600 ]
          Worklog Id 40623 [ 40623 ]
          Bertrand Dunogier made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Assignee Bertrand Dunogier [ bertrand.dunogier@ez.no ]
          Bertrand Dunogier made changes -
          Status Development [ 3 ] Documentation done [ 10011 ]
          Joao Pingo (Inactive) made changes -
          Time Spent 1 day, 3 hours [ 39600 ] 1 day, 4 hours [ 43200 ]
          Worklog Id 40709 [ 40709 ]
          Joao Pingo (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Bertrand Dunogier [ bertrand.dunogier@ez.no ] Joao Pingo [ joao.pingo@ez.no ]
          Joao Pingo (Inactive) made changes -
          Status QA [ 10008 ] InputQ [ 10001 ]
          Assignee Joao Pingo [ joao.pingo@ez.no ]
          Bertrand Dunogier made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Assignee Bertrand Dunogier [ bertrand.dunogier@ez.no ]
          Bertrand Dunogier made changes -
          Status Development [ 3 ] Development review [ 10006 ]
          Bertrand Dunogier made changes -
          Status Development review [ 10006 ] Development Review done [ 10028 ]
          Bertrand Dunogier made changes -
          Status Development Review done [ 10028 ] Documentation done [ 10011 ]
          Filipe Dobreira (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Bertrand Dunogier [ bertrand.dunogier@ez.no ] Filipe Dobreira [ filipe.dobreira@ez.no ]
          Filipe Dobreira (Inactive) made changes -
          Rank Ranked lower
          Filipe Dobreira (Inactive) made changes -
          Status QA [ 10008 ] InputQ [ 10001 ]
          Assignee Filipe Dobreira [ filipe.dobreira@ez.no ]
          Yannick Roger (Inactive) made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Assignee Yannick Roger [ yannick.roger@ez.no ]
          Yannick Roger (Inactive) made changes -
          Status Development [ 3 ] Documentation done [ 10011 ]
          Affects Version/s 4.6.0 [ 11005 ]
          Affects Version/s 4.5.0 [ 11000 ]
          Fix Version/s 4.7 Maintenance [ 12583 ]
          Fix Version/s 5.0 Maintenance [ 11287 ]
          Fix Version/s 5.3 [ 11282 ]
          Fix Version/s 5.1 Maintenance [ 12301 ]
          André Rømcke made changes -
          Fix Version/s 5.2 Maintenance [ 12782 ]
          Yannick Roger (Inactive) made changes -
          Time Spent 1 day, 4 hours [ 43200 ] 1 day, 6 hours [ 50400 ]
          Worklog Id 41556 [ 41556 ]
          Joao Pingo (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Yannick Roger [ yannick.roger@ez.no ] Joao Pingo [ joao.pingo@ez.no ]
          Yannick Roger (Inactive) made changes -
          Fix Version/s 4.5 Maintenance [ 12585 ]
          Fix Version/s 4.6 Maintenance [ 12584 ]
          Joao Pingo (Inactive) made changes -
          Time Spent 1 day, 6 hours [ 50400 ] 2 days, 6 hours [ 79200 ]
          Worklog Id 41622 [ 41622 ]
          Joao Pingo (Inactive) made changes -
          Worklog Id 41622 [ 41622 ]
          Joao Pingo (Inactive) made changes -
          Status QA [ 10008 ] InputQ [ 10001 ]
          Assignee Joao Pingo [ joao.pingo@ez.no ]
          Joao Pingo (Inactive) made changes -
          Time Spent 2 days, 6 hours [ 79200 ] 3 days, 6 hours [ 108000 ]
          Worklog Id 41650 [ 41650 ]
          Yannick Roger (Inactive) made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Assignee Yannick Roger [ yannick.roger@ez.no ]
          Yannick Roger (Inactive) made changes -
          Time Spent 3 days, 6 hours [ 108000 ] 4 days, 2 hours [ 122400 ]
          Worklog Id 42374 [ 42374 ]
          Yannick Roger (Inactive) made changes -
          Time Spent 4 days, 2 hours [ 122400 ] 4 days, 6 hours [ 136800 ]
          Worklog Id 42375 [ 42375 ]
          Yannick Roger (Inactive) made changes -
          Remaining Estimate 0 minutes [ 0 ] 4 hours [ 14400 ]
          Time Spent 4 days, 6 hours [ 136800 ] 4 days, 2 hours [ 122400 ]
          Worklog Id 42374 [ 42374 ]
          Worklog Time Spent 4 hours [ 14400 ]
          Yannick Roger (Inactive) made changes -
          Remaining Estimate 4 hours [ 14400 ] 1 hour [ 3600 ]
          Time Spent 4 days, 2 hours [ 122400 ] 4 days, 5 hours [ 133200 ]
          Worklog Id 42376 [ 42376 ]
          Joao Pingo (Inactive) made changes -
          Remaining Estimate 1 hour [ 3600 ] 0 minutes [ 0 ]
          Time Spent 4 days, 5 hours [ 133200 ] 1 week, 2 hours [ 151200 ]
          Worklog Id 42433 [ 42433 ]
          Yannick Roger (Inactive) made changes -
          Time Spent 1 week, 2 hours [ 151200 ] 1 week, 4 hours [ 158400 ]
          Worklog Id 42509 [ 42509 ]
          Marcos Loureiro (Inactive) made changes -
          Time Spent 1 week, 4 hours [ 158400 ] 1 week, 6 hours, 45 minutes [ 168300 ]
          Worklog Id 42521 [ 42521 ]
          Joao Pingo (Inactive) made changes -
          Time Spent 1 week, 6 hours, 45 minutes [ 168300 ] 1 week, 1 day, 3 hours, 45 minutes [ 186300 ]
          Worklog Id 42527 [ 42527 ]
          Joao Pingo (Inactive) made changes -
          Worklog Id 42527 [ 42527 ]
          Yannick Roger (Inactive) made changes -
          Link This issue relates to EZP-22016 [ EZP-22016 ]
          Yannick Roger (Inactive) made changes -
          Status Development [ 3 ] Documentation done [ 10011 ]
          Joao Pingo (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Yannick Roger [ yannick.roger@ez.no ] Joao Pingo [ joao.pingo@ez.no ]
          Pedro Resende (Inactive) made changes -
          Rank Ranked higher
          Pedro Resende (Inactive) made changes -
          Rank Ranked higher
          Yannick Roger (Inactive) made changes -
          Time Spent 1 week, 1 day, 3 hours, 45 minutes [ 186300 ] 1 week, 2 days, 1 hour, 45 minutes [ 207900 ]
          Worklog Id 42589 [ 42589 ]
          Yannick Roger (Inactive) made changes -
          Time Spent 1 week, 2 days, 1 hour, 45 minutes [ 207900 ] 1 week, 2 days, 4 hours, 45 minutes [ 218700 ]
          Worklog Id 42509 [ 42509 ]
          Yannick Roger (Inactive) made changes -
          Time Spent 1 week, 2 days, 4 hours, 45 minutes [ 218700 ] 1 week, 2 days, 7 hours, 45 minutes [ 229500 ]
          Worklog Id 42590 [ 42590 ]
          Joao Pingo (Inactive) made changes -
          Assignee Joao Pingo [ joao.pingo@ez.no ]
          Status QA [ 10008 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Joao Pingo (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Joao Pingo (Inactive) made changes -
          Time Spent 1 week, 2 days, 7 hours, 45 minutes [ 229500 ] 1 week, 3 days, 2 hours, 15 minutes [ 238500 ]
          Worklog Id 42625 [ 42625 ]
          Joao Pingo (Inactive) made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Joao Pingo (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Assignee Joao Pingo [ joao.pingo@ez.no ]
          Joao Pingo (Inactive) made changes -
          Assignee Joao Pingo [ joao.pingo@ez.no ]
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Yannick Roger (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Yannick Roger (Inactive) made changes -
          Time Spent 1 week, 3 days, 2 hours, 15 minutes [ 238500 ] 1 week, 3 days, 4 hours, 15 minutes [ 245700 ]
          Worklog Id 43194 [ 43194 ]
          Yannick Roger (Inactive) made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Yannick Roger (Inactive) made changes -
          Link This issue relates to EZP-20914 [ EZP-20914 ]
          André Rømcke made changes -
          Workflow eZ Engineering Scrumban Workflow [ 53584 ] EZ* Development Workflow [ 83768 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 83768 ] EZEE Development Workflow [ 122384 ]

            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