Uh oh!
There was an error while loading. Please reload this page.
fix(files_sharing): Hide own reshares - #53304
Conversation
come-nc
left a comment
There was a problem hiding this comment.
Code-wise this is okay, but I’m not sure about the design decision.
There might be no reshares, do we really want to remove the possibility to transfer ownership without incoming shares?
come-nc
left a comment
There was a problem hiding this comment.
Also, transfer takes a path to transfer ownership only of a folder, but with this PR all incoming shares including outside of this path will be included I think?
TBH I don't see why we have it as an option in the first place. The PR that added it has no explanation or review comments that give a reason for the option to exist.
I didn't look into it because I thought this was already done correctly, so I suppose this is another bug with the existing implementation outside of the bug I'm trying to fix (but of course I will fix it as well). |
10d81ca to
482c774Compareprovokateurin
commented
Jun 23, 2025
/backport to stable31 |
provokateurin
commented
Jun 23, 2025
/backport to stable30 |
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.
482c774 to
3c31322CompareUh oh!
There was an error while loading. Please reload this page.
provokateurin
commented
Jun 30, 2025
Marking as draft for now, as I still want to address @nickvergessen's comment. |
Signed-off-by: provokateurin <kate@provokateurin.de>
…sfer to prevent broken reshares Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
3c31322 to
8e580f8CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
Another attempt at #51988.
The fix is the same, but I've dug deeper into the issue and found that the integration tests don't transfer incoming shares when doing the ownership transfer. Just enabling incoming share transfer would have been enough, but this actually pointed to problem that we currently break reshares when doing ownership transfer without incoming shares.
The original user will still have the incoming share, while the outgoing (re-)share is transferred to the new user. My fix for hiding own reshares assumed, that one would always have access to the original share when you have a reshare for it.
With the partial ownership transfer this is not true and I believe this is wrong as we must always transfer all shares to guarantee that reshares are still working as expected.
This will require some changes in Talk integration tests because paths have changed:
Checklist