Uh oh!
There was an error while loading. Please reload this page.
add command do delete orphan shares - #39170
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
3ac1cc7 to
4c31c31CompareUh oh!
There was an error while loading. Please reload this page.
4c31c31 to
b567ec5CompareUh oh!
There was an error while loading. Please reload this page.
b567ec5 to
baa60cdCompareUh oh!
There was an error while loading. Please reload this page.
Signed-off-by: Robin Appelman <robin@icewind.nl>
baa60cd to
50501f8CompareAndyScherzinger
commented
Jul 6, 2023
/backport to stable27 |
AndyScherzinger
commented
Jul 6, 2023
/backport to stable26 |
artonge
left a comment
There was a problem hiding this comment.
- Does it really scale to fetch all share and then to set up the file system for each owner? Or does the
yieldstatement makes it more manageable? Not familiar with it. - Do we have a logic in place to prevent those from happening?
| } | ||
| if ($doDelete) { | ||
| $this->orphanHelper->deleteShares($orphans); |
There was a problem hiding this comment.
No option to delete them one by one? Maybe it is irrelevant in the use case.
icewind1991
commented
Jul 6, 2023
It will be slow yes, but there isn't really to much that can be done for that |
If it only makes the command slow then I'd say that is fine or would it also impact "online" transactions? 👍 |
icewind1991
commented
Jul 10, 2023
Performance impact is only for the command |
The backport to stable26 failed. Please do this backport manually. # Switch to the target branch and update it
git checkout stable26
git pull origin stable26
# Create the new backport branch
git checkout -b fix/foo-stable26
# Cherry pick the change from the commit sha1 of the change against the default branch# This might cause conflicts. Resolve them.
git cherry-pick abc123
# Push the cherry pick commit to the remote repository and open a pull request
git push origin fix/foo-stable26More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport |
ChristophWurst
commented
Jan 15, 2024
The new occ command needs admin docs |
Compared to the existing background job, this command validates that the share owner still has access to the file instead of just checking that the file still exists.
I've decided against not adding this to the background command as the "owner lost access" case is recoverable by having the owner regain access. So automatically deleting them might be undesired.
Steps to create an orphaned share:
A,BandC. Create a groupfolderGand giveAandBaccess to it.Buploads a fileFtoGand shares it withCAmovesFoutsideGCnow has an orphaned share asBno longer has access toF