Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-2538

Take into account the deletion behavior when handling deleted files at startup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: NoFixVersionApplicable
    • Fix Version/s: 5.1.0
    • Component/s: Local watcher
    • Release Notes Summary:
      Preventing Server Deletions
    • Release Notes Description:
      Hide

      In Nuxeo Drive 4.1.0 we introduced a "deletion behavior" to change the way file deletions are impacted on the server (cf NXDRIVE-1501). It appeared to be effective only when the application was running.

      But it will not be taken into account when files were deleted while the application was not running. In that scenario, when the chosen deletion behavior was to simply unsynchronize documents, it would just delete files on the server.

      That is now fixed and in such scenario, if the user did not choose any deletion behavior, then the default action will be to unsynchronize files to prevent unwanted remote deletions.

      Show
      In Nuxeo Drive 4.1.0 we introduced a "deletion behavior" to change the way file deletions are impacted on the server (cf NXDRIVE-1501 ). It appeared to be effective only when the application was running. But it will not be taken into account when files were deleted while the application was not running. In that scenario, when the chosen deletion behavior was to simply unsynchronize documents, it would just delete files on the server. That is now fixed and in such scenario, if the user did not choose any deletion behavior, then the default action will be to unsynchronize files to prevent unwanted remote deletions.
    • Tags:
    • Sprint:
      nxDrive 11.2.15
    • Story Points:
      2

      Description

      Problem

      We introduced a "deletion behavior" to change the way file deletions are handled on the server (NXDRIVE-1501). It is effective when Drive is running.

      But it will not be taken into account when files were deleted while Drive was not running. See the code, it will just delete the file on the server.

      Fix

      When handling deleted files and folder, check the deletion behavior first. If it is not set, then its default value is "unsync", and this is what we want. no need to ask the user for a confirmation: just use the deletion behavior without interaction.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 - 4 hours
                  4h