Repository navigation
Conversation
… node When a user receives another share for a node they already have a share mount for, for example from a group and then directly, the shares belong to one mount at the existing target. The added share was instead validated on its own and registered as a second mount at its default target. The shares were only merged on the next full filesystem setup, so until then the recipient saw the node twice, and a target the recipient had renamed came back. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Contributor
Author
|
/backport to stable35 |
susnux
marked this pull request as ready for review
December 6, 2026 01:48
susnux
requested review from
icewind1991,
pabzm,
provokateurin and
vlotysh
and removed request for
a team and
pabzm
December 6, 2026 01:48
Contributor
|
Possible performance regression detected Show Output |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
When a user receives another share for a node they already have a share mount for (e.g. first via a group, later directly), both shares should end up in one mount at the existing target.
ShareRecipientUpdater::updateForAddedShare()instead validated the new share on its own and added a second mount at its default target to the mount cache. The shares were only merged (MountProvider::buildSuperShares()→adjustTarget()) on the next full filesystem setup. Until then the recipient saw the node twice, and a target they had renamed seemed to come back.If the recipient already has a share mount rooted at the same node,
updateForAddedShare()now falls back toupdateForUser(), which groups the shares and moves the new share to the existing target.On master this is mostly hidden because every login without a session (e.g. each basic auth request) does a full setup. #54803 removes that, and
sharing-v1-part3.feature:307("Merging shares for recipient when shared from outside with group then user and recipient renames in between") then fails without this fix.Checklist
3. to review, feature component)stable32)AI (if applicable)