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
Deleteing shared files or folders using WebDAV break synchronisation #4836
When a user deletes a file or folder using WebDAV then the sharing (row in "oc_share") should get removed automatically.
Actual behaviour
The row in "oc_share" stays and the sync client of the target user (he who gets the file or folder shard) starts to throw "Problem: 403 Forbidden" errors.
Steps to reproduce
Upload a file
Share the file
Set up syncing with your desktop using the current 1.4 sync client
Delete the file on your desktop
The file will get deleted on the server but the oc_share row stays
The incorrect entries were also found using this query:
SELECT s.id, s.item_source, s.uid_owner, s.file_target, s.share_with FROM oc_share AS s WHERE s.item_source NOT IN (SELECT c.fileid from oc_filecache as c);
Server configuration
Operating system:
Any. Tried on Linux, Windows and MacOS.
I tried to reproduce it both with OC5.0.10 and master, desktop client 1.4.1. You are right that the oc_share row is still there after deletion but the sync client continues to work just fine here.
Which apps do you have enabled? You deleted the file from the shared folder, not from the owner, right?
Activity
DeepDiver1975 commentedon Sep 13, 2013
Cleanup of oc_share is a necessity for oc5 and oc6
@bartv2 @bantu is there any free time on your side? THX
bantu commentedon Sep 13, 2013
@DeepDiver1975 Nope
DeepDiver1975 commentedon Oct 2, 2013
@schiesbn related to the other issue regarding oc_share cleanup
schiessle commentedon Oct 2, 2013
I tried to reproduce it both with OC5.0.10 and master, desktop client 1.4.1. You are right that the oc_share row is still there after deletion but the sync client continues to work just fine here.
Which apps do you have enabled? You deleted the file from the shared folder, not from the owner, right?
schiessle commentedon Oct 4, 2013
@Signum can you try this pull request: #5129 This should make sure that shares get deleted from the oc_share table if the file was deleted
schiessle commentedon Oct 7, 2013
Fix merged to master (OC6) and backported to stable5 (OC5.0.13)