Skip to content

fix(sharing): allow federated shares to non-trusted servers - #56652

Merged
nfebe merged 2 commits into
masterfrom
fix/federated-share-external-filter
Dec 10, 2025
Merged

fix(sharing): allow federated shares to non-trusted servers#56652
nfebe merged 2 commits into
masterfrom
fix/federated-share-external-filter

Conversation

@nfebe

Copy link
Copy Markdown
Contributor

When showFederatedSharesToTrustedServersAsInternal is enabled, the trusted server filter was incorrectly applied to both internal and external sharing sections. This prevented users from sharing with federated users on non-trusted servers via the external share UI.

The filter now only applies to the internal section, allowing non-trusted federated shares to appear in the external section.

Fixes: #56622

@nfebe

Copy link
Copy Markdown
ContributorAuthor

/backport to stable32

@nfebe

Copy link
Copy Markdown
ContributorAuthor

/backport to stable31

@nfebe
nfebeforce-pushed the fix/federated-share-external-filter branch from aa52ca4 to 8e788beCompareNovember 25, 2025 09:54
@nfebe

Copy link
Copy Markdown
ContributorAuthor

/compile

@nfebe
nfebe enabled auto-merge November 25, 2025 09:55

@szaimenszaimen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explanation makes sense but did not test

@nfebe
nfebeforce-pushed the fix/federated-share-external-filter branch from 6ace53e to 56856a2CompareNovember 28, 2025 08:32
@nfebe

Copy link
Copy Markdown
ContributorAuthor

/compile

@nfebe
nfebeforce-pushed the fix/federated-share-external-filter branch from 69d1f20 to f41666fCompareDecember 4, 2025 10:10
@nfebe

nfebe commented Dec 4, 2025

Copy link
Copy Markdown
ContributorAuthor

/compile

1 similar comment
@nfebe

nfebe commented Dec 4, 2025

Copy link
Copy Markdown
ContributorAuthor

/compile

When `showFederatedSharesToTrustedServersAsInternal` is enabled, the
trusted server filter was incorrectly applied to both internal and
external sharing sections. This prevented users from sharing with
federated users on non-trusted servers via the external share UI.
The filter now only applies to the internal section, allowing
non-trusted federated shares to appear in the external section.
Fixes: #56622
Signed-off-by: nfebe <fenn25.fn@gmail.com>
@nfebe
nfebeforce-pushed the fix/federated-share-external-filter branch from f41666f to 0838228CompareDecember 10, 2025 16:41
@nfebe

Copy link
Copy Markdown
ContributorAuthor

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nfebe
nfebe merged commit b07801a into masterDec 10, 2025
124 checks passed
@nfebe
nfebe deleted the fix/federated-share-external-filter branch December 10, 2025 17:41
@backportbot

Copy link
Copy Markdown

The backport to stable32 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable32
git pull origin stable32
# Create the new backport branch
git checkout -b backport/56652/stable32
# Cherry pick the change from the commit sha1 of the change against the default branch# This might cause conflicts, resolve them
git cherry-pick 08382282 5de1d46b
# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/56652/stable32

Error: Failed to check for changes with origin/stable32: No changes found in backport branch


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

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

Projects

Status: 🏗️ In progress

Development

Successfully merging this pull request may close these issues.

[Bug]: cannot share to remote users with "show_federated_shares_to_trusted_servers_as_internal" set to true

4 participants

@nfebe@artonge@szaimen@nextcloud-command