Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client should prevent data loss when excluding a folder #6716

Closed
jnweiger opened this issue Aug 15, 2018 · 6 comments
Closed

client should prevent data loss when excluding a folder #6716

jnweiger opened this issue Aug 15, 2018 · 6 comments
Assignees
Milestone

Comments

@jnweiger
Copy link
Contributor

jnweiger commented Aug 15, 2018

A prerequisite for #6715
Here is a case where a 2.5.0 desktop client deletes a file from the local folder that was never synced to the server:

  • Connect to demo.owncloud.org
  • Wait until sync finishes. One of the folders is called 'Photos'.
  • Pause sync. click open the folder tree, remove the checkmark of 'Photos'.
  • Hit 'Apply' nothing gets removed despite the warning, as the sync is still paused.
  • Delete the folder Photos on the server. Nothing gets deleted locally, the sync is paused.
  • Wait some time, forget about any potential traps here.
  • Add a new file 'DoNotRemove.txt' to the local Photos folder.
  • Resume syncing.
  • The new file DoNotRemove.txt gets deleted. (together with the entire Photos folder).

Leave out any of the above steps, and the DoNotRemove.txt file is either preserved locally or even uploaded to the server.

@guruz guruz assigned ogoffart and unassigned guruz Aug 16, 2018
@guruz guruz added this to the 2.5.0 milestone Aug 16, 2018
@ogoffart ogoffart modified the milestones: 2.5.0, 2.6.0 Aug 17, 2018
@ogoffart
Copy link
Contributor

ogoffart commented Aug 17, 2018

(Moving to 2.6 as this is not a regression, and the quite complicated steps necessary to get the file deleted, which includes warning that the file will get deleted)

In theory, DoNotRemove.txt should keep the file from being deleted.

Edit: I can reproduce the problem. The first sync don't delete the files, but further sync deletes it as the parent directory gets deleted.

@ckamm ckamm added the ReadyToTest QA, please validate the fix/enhancement label Apr 17, 2019
@ckamm
Copy link
Contributor

ckamm commented Apr 17, 2019

I've tested this with 2.6's new discovery and can no longer reproduce the problem. The DoNotRemove.txt file is retained.

@ckamm
Copy link
Contributor

ckamm commented Apr 17, 2019

I do however see a problem where the folder no longer shows up in the selective sync folder list, even if the contents are ignored "because of the selective sync blacklist".

@HanaGemela
Copy link
Contributor

I also cannot reproduce the issue in 2.6.0alpha2 (build 12128) macOS 10.14.5.

I do however see a problem where the folder no longer shows up in the selective sync folder list, even if the contents are ignored "because of the selective sync blacklist".

@pmaier1 Please specify the correct behaviour. What should we see in the in the selective sync folder list?

@HanaGemela HanaGemela removed the ReadyToTest QA, please validate the fix/enhancement label Jul 16, 2019
@ckamm
Copy link
Contributor

ckamm commented Jul 17, 2019

@HanaGemela Let's make it into a new 2.6.1 issue. It's separate from what this ticket was originally about, in particular it's much less severe since there's no data loss.

@HanaGemela
Copy link
Contributor

@ckamm Done. #7316

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants