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
Files in a symlinked folder get deleted #1295
Comments
I can confirm this with 2.6.2. With the risk of sounding entitled, I think this issue should be higher priority, as it can cause data loss: As the sync client does not follow symlinks when adding files, but does so when deleting them, there is plenty of opportunity to accidentially delete data. To make things worse, if you periodically "backup" synchronized folders to limit the damage caused by a sync gone wrong, the usual tools (e.g Right now it seems that users should avoid using any symlinks at all inside the synchronized folders. |
I see a confirmation dialog, asking whether or not do I agree with deletion of local files, so nothing happens subtly. |
Well, the default behaviour of |
So you have a following structure:
I don't see what is a problem here, both symlink and the content it is linking to are supposed to be deleted. Even without all the synchronization thing, if I remove the same folder locally, the same behavior happens, I have an empty Nextcloud folder in the end. It looks confusing to me, can you please elaborate what exactly is wrong in my understanding? |
@vtronko: It becomes a problem once symlinks point outside of the synchronized folder. Think of a structure like this:
If you now remove "folder" via Nextcloud, "data" gets deleted as well. |
This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you! |
This bug report is getting automatically closed due to no answer since the issue has been staled. Thank you! |
The behaviour has indeed changed now, but maybe not for the better: The Nextcloud client now gets stuck in this situation. After restarting it manually, it seems to delete everyting as appropriate, except for the symlink itself (which is perfectly acceptable considering that Nextcloud also does not sync symlinks). Just the getting stuck part is probably not intended. |
@Gigadoc2 thank you for your reply. Could you open up a ticket for that? So that we can better track the remaining issue? |
Expected behaviour
The files should not be deleted, as they are outside the synced folder.
Actual behaviour
They get deleted.
Steps to reproduce
Client configuration
Client version: git 56c905, 2.5.2git
Operating system: Arch linux
OS language: German
Qt version used by client package (Linux only, see also Settings dialog): 5.12.3
Client package (From Nextcloud or distro) (Linux only): Distro
The text was updated successfully, but these errors were encountered: