Skip to content

[stable34] fix(mount-provider): Pass the recipient to the federated share storage - #3074

Merged
DerDreschner merged 1 commit into
stable34from
backport/3060/stable34
Oct 20, 2026
Merged

DerDreschner merged 1 commit into
stable34from
backport/3060/stable34

Conversation

@backportbot

@backportbot backportbot Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Backport of #3060

Warning, This backport's changes differ from the original and might be incomplete 鈿狅笍

Todo

  • Review and resolve any conflicts
  • Review and verify the backported changes
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Since Nextcloud 34.0.5 / 35.0.2, the federated share storage requires the user receiving the share as `recipient` option. Team mounts didn't pass it, so setting up the filesystem of a user with a team share from a remote instance failed with an `Undefined array key "recipient"` exception. This aborted e.g. `occ versions:expire` and `occ versions:cleanup`.

Pass the user the mounts are set up for from getMountsForUser() and getMountsForPath() to the storage.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: David Dreschner <david.dreschner@nextcloud.com>
@DerDreschner
DerDreschner force-pushed the backport/3060/stable34 branch from 7e44ece to 6aa151c Compare October 20, 2026 09:57
@DerDreschner

Copy link
Copy Markdown
Contributor

stable34 has no getMountsForPath() function, which explains the smaller diff.

@DerDreschner
DerDreschner marked this pull request as ready for review October 20, 2026 09:58
@DerDreschner
DerDreschner merged commit e2a3553 into stable34 Oct 20, 2026
43 checks passed
@DerDreschner
DerDreschner deleted the backport/3060/stable34 branch October 20, 2026 10:15
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.

2 participants