-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Creating second share to user who renamed received folder creates a second entry #25568
Conversation
@PVince81, thanks for your PR! By analyzing the annotation information on this pull request, we identified @SergioBertolinSG, @rullzer and @LukasReschke to be potential reviewers |
In some situations, a group share is created before a user share, and the recipient renamed the received share before the latter is created. In this situation, the "file_target" was already modified and the second created share must align to the already renamed share. To achieve this, the MountProvider now groups only by "item_source" value and sorts by share time. This makes it so that the least recent share is selected as super-share and its "file_target" value is then adjusted in all grouped shares. This fixes the issue where this situation would have different "file_target" values resulting in two shared folders appearing instead of one.
TODOs after merge:
|
@PVince81 yes that is the correct usage. 👍 |
@DeepDiver1975 can the Jenkinsfile thing be ignored ?
If yes, please merge. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps
Expected result
Only one folder "test_renamed" appear
Actual result
Two folders, "test" and "test_renamed".
Also happens when sharing first with "user1" and "group1"
Versions
Regression since OC 9.0, works fine in OC 8.2.7.
This PR brings an integration test to cover this case.
On master there were fixes regarding to grouping for #24575 but they failed to cover this specific case.
Let's address this inside this PR.
@owncloud/sharing