You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
externally renaming a file/folder in a files_external storage breaks the contained shares #11533
mount a webdav endpoint with files external to wd.
in oc create three folders f1, f2, f3
note down the file ids of these folders
outside of oc delete f2 and rename f3 -> f2
refresh the wd folder in oc
compare the fileids of f2
Expected behaviour
f2 should have the file id of f3 in step 3
Actual behavior
f2 still has the same fileid as f2 in step 3. The whole directory tree of f3 (now f2) is rescanned and will receive new file ids. That in itself is not yet a problem, but the root cause for any shares that have been created between step 3 & 4 inside f3 to break, because they now point to a no longer existing fileid.
The issue is a result of the rescan process which currently does not have any means to detect a rename. @icewind1991 The only hack I see for default WebDAV endpoints is to use a heuristic that compares the folder contents in the cache with those in the remote location and tries to guess the right rename ... no Idea how csync detects renames. @danimo my guess is it takes into account file ids and maybe inodes?
Are there any known workarounds for the time being? Is there any way to force a full rescan of the external storage? I have mounted a Dropbox folder, which is frequently modified externally. It seems they are increasingly getting out of sync.
Remember, this issue is about loosing shares when a rescan occurs.
Didn't test it. But if I understand your description correct it is not only about losing shares but also about accidentally sharing stuff which shouldn't be shared. If f2 was shared to someone before you delete it and rename f3 to f2, f3 will be shared because it will have the file id from the old f2.
This could be a huge privacy risk because it can expose internal data to user you don't want to or even to the public in case of link shares.
Not sure how we can solve this problem reliable. False-positives can be even more dangerous than losing a share, because this would mean that you share something which shouldn't be shared.
Btw, as far as I know the sync client detects renames based on the file-id which will not change in this case.
Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.
Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.
Activity
vasyugan commentedon Oct 14, 2014
Are there any known workarounds for the time being? Is there any way to force a full rescan of the external storage? I have mounted a Dropbox folder, which is frequently modified externally. It seems they are increasingly getting out of sync.
butonic commentedon Oct 20, 2014
Remember, this issue is about loosing shares when a rescan occurs. That being said you can rescan the files on the command line with occ:
or in the browser console with
schiessle commentedon Nov 10, 2014
Didn't test it. But if I understand your description correct it is not only about losing shares but also about accidentally sharing stuff which shouldn't be shared. If f2 was shared to someone before you delete it and rename f3 to f2, f3 will be shared because it will have the file id from the old f2.
This could be a huge privacy risk because it can expose internal data to user you don't want to or even to the public in case of link shares.
Not sure how we can solve this problem reliable. False-positives can be even more dangerous than losing a share, because this would mean that you share something which shouldn't be shared.
Btw, as far as I know the sync client detects renames based on the file-id which will not change in this case.
29 remaining items
ownclouders commentedon Jan 13, 2018
Hey, this issue has been closed because the label
status/STALEis set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.(This is an automated comment from GitMate.io.)
ownclouders commentedon Feb 23, 2018
Hey, this issue has been closed because the label
status/STALEis set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.(This is an automated comment from GitMate.io.)