Fix share into share move scenario #40612
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Scenario:
Given three users Alice, Bob and Charlie.
Alice shares a folder X with Bob.
Bob shares a file Y with Charlie.
Bob shares a file Z via a public link.
Bob moves Y and Z into the shared folder X.
What is expected:
Alice becomes owner of the files Y and Z.
The share for Charlie on Y and the public link on Z become visible to both Alice and Bob.
What happens:
Alice becomes owner of the files Y and Z.
The share for Charlie on Y becomes visible to Alice and Bob.
The public link on Z is only visible to Bob, not visible to Alice. Owner is not updated to Alice.
Related Issue
Motivation and Context
Public links are lost upon moving share into another share as the share owner is not correctly set.
How Has This Been Tested?
Manually by reproducing the scenario above.
Types of changes
Checklist:
@IljaN FYI.