Conversation
|
Another effected case by this issue:
|
c298bf1 to
0828727
Compare
|
@artonge I've updated as you requested, please check again. |
artonge
left a comment
There was a problem hiding this comment.
Can you add comments to clarify what each if group does?
I am also wondering if we could find this shares with the following query:
SELECT
f.fileid,
f.path,
f.storage,
s.id as share_id,
s.uid_owner as share_owner,
s.uid_initiator as share_initiator,
s.share_with as share_recipient
FROM
oc_filecache f
JOIN oc_share s ON f.fileid = s.file_source
AND s.uid_initiator NOT IN (
SELECT
user_id
FROM
oc_mounts m
WHERE
f.storage = m.storage_id
)If so, then we could have a background job to remove them every hour or so like https://github.com/nextcloud/server/blob/master/apps/files_sharing/lib/DeleteOrphanedSharesJob.php, which might be easier than the current solution.
@artonge It only works if the shared-by user refreshes his files list after his share has revoked. So, I don't think this query would do the job. |
007d650 to
df7160f
Compare
df7160f to
73fb85b
Compare
7e64905 to
cf9b02a
Compare
b23eafb to
5b01338
Compare
cc6c3dc to
bff24d1
Compare
…erring Signed-off-by: Luka Trovic <luka@nextcloud.com>
bff24d1 to
2ca5191
Compare
|
/backport to stable28 |
|
/backport to stable29 |
|
/backport to stable30 |
Summary
Add command
occ sharing:fix-broken-sharesto fix the shares that were broken on transfer ownership.Checklist