-
Notifications
You must be signed in to change notification settings - Fork 88
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
Trashbin cannot be cleared with group folder data #314
Comments
Ok i have to add something. I recognized a minute ago that when i mark the file and folders one by one and delete empty the tashbin it seems to works. But when i use the mark all button in the top left it doesn't. |
Same here |
This appears to be because the call that is made to delete all of the files is different than multi-selected files. For deleting all trashed files, a DAV DELETE request is sent with the trash path, and multi-selected deletes each file individually. It appears that if the deleteAll call in TrashBin.php is returning if there isn't a trash bin path defined for the user, which is preventing the code from advancing to part where the deleteAll event is fired off. Adding a non-group folder file and deleting it creates this trashbin directory and allows progress to move on. This doesn't actually fix the issue, but does allow us to get to the code where the deleteAll event is fired off. It appears that GroupFolders should subscribe to the event: \OC_Hook::emit('\OCP\Trashbin', 'deleteAll', array('paths' => $filePaths)); and delete all of the files that are stored in the groupfiles trashbackend. Note $filePaths is going to be an empty array because it is built off of the values that are stored in files trashbin. NOTE: This is based on NextCloud 15 only. |
I can confirm that the problem persists in NC 16.0.4 and Group folders 4.0.5 |
I have the problem, that a trashbin from one group folder is physically deleted (trashbin has been deleted manually on server file system level, I know, it was dumb) Thanks a lot in advance for any answer 💞 edit 1: edit 2: |
Hello, I have a provisional solution to empty the trashbin. Do this :
Hoping it really works :) |
Thank you @bastiencyr this workaround works for me. |
Hey, |
Function to clear group folders trash has recently been added by rullzer & juliushaertl (thanks guys!)
|
Really nice to have occ groupfolders:trashbin:cleanup It will be great if we can specify a duration like only delete file older than 7 days |
Yes I agree, I proposed to link this new function with the parameter 'trashbin_retention_obligation' in this issue. Sadly i'm a really bad programmer and can't develop this myself.... |
I believe this issue can be closed. From the original comment:
Works for me now locally with 200 items in my trash bin with both master and stable22
Works with Additionally, points mentioned in this ticket about trash retentions have also been fixed recently and landed in NC 23. Please fill free to reopen if you think I missed something :) |
Why is this closed? |
this worked for me: empty all bins of all users: empty groupfloder bins: or go to the the folder of your NC installation and occ file (doesn't work if you can't access Command Line Interface) and run the commands |
I'm running NC 15.0.4 with the group folder plugin 2.0.2. At the moment i have the strange behavior.
Has someone else experienced something like this ?
The text was updated successfully, but these errors were encountered: