Skip to content

refactor(federatedfilesharing): detect reshares from the node's mount - #66361

Open
skjnldsv wants to merge 1 commit into
masterfrom
refactor/federated-reshare-by-mount
Open

skjnldsv wants to merge 1 commit into
masterfrom
refactor/federated-reshare-by-mount

Conversation

@skjnldsv

@skjnldsv skjnldsv commented Nov 5, 2026

Copy link
Copy Markdown
Member

Summary

Stacked on #66360. Instead of looking up the target name and checking the node afterwards, only a node that is the root of a federated share mounted for the share owner is looked up, using that node's own mount point.

Note

Behaviour change: a received federated share that was moved into a subfolder is now also recognised as a reshare and goes through its remote owner. Before, it was shared as a plain federated share from this instance.

Existing tests updated. The moved-mount case has no dedicated test yet.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

👾 This pull request was assisted by Claude Code, commits carry an Assisted-by trailer.

@skjnldsv
skjnldsv requested a review from a team as a code owner November 5, 2026 10:32
@skjnldsv
skjnldsv removed the request for review from a team November 5, 2026 10:32
@skjnldsv skjnldsv self-assigned this Nov 5, 2026
@skjnldsv
skjnldsv requested review from GhassenKefi and pabzm November 5, 2026 10:32
@skjnldsv
skjnldsv added this pull request to stack #66363 November 5, 2026 10:33
Base automatically changed from fix/federated-reshare-node-match to master November 5, 2026 13:01
Instead of looking up the share target name in the received federated
shares and checking the node afterwards, only consider nodes that are
the root of a federated share mounted for the share owner and use the
mount point of that node for the lookup.

This also recognises federated shares that were moved into a subfolder
as reshares, so they are reshared through their remote owner.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
@skjnldsv
skjnldsv force-pushed the refactor/federated-reshare-by-mount branch from aed9d45 to 5dc8b06 Compare November 5, 2026 13:02
@skjnldsv
skjnldsv enabled stacked auto-merge November 5, 2026 13:02

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants