-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix(files_sharing): Hide own reshares #53304
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
Conversation
come-nc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
482c774
Compare
|
/backport to stable31 |
|
/backport to stable30 |
482c774 to
3c31322
Compare
|
Marking as draft for now, as I still want to address @nickvergessen's comment. |
Signed-off-by: provokateurin <[email protected]>
…sfer to prevent broken reshares Signed-off-by: provokateurin <[email protected]>
Signed-off-by: provokateurin <[email protected]>
3c31322 to
8e580f8
Compare
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