Skip to content

Conversation

@nfebe
Copy link
Contributor

@nfebe nfebe commented Nov 25, 2025

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 nfebe requested a review from a team as a code owner November 25, 2025 09:10
@github-project-automation github-project-automation bot moved this to 🏗️ In progress in 📁 Files team Nov 25, 2025
@nfebe
Copy link
Contributor Author

nfebe commented Nov 25, 2025

/backport to stable32

@nfebe
Copy link
Contributor Author

nfebe commented Nov 25, 2025

/backport to stable31

@nfebe nfebe force-pushed the fix/federated-share-external-filter branch from aa52ca4 to 8e788be Compare November 25, 2025 09:54
@nfebe
Copy link
Contributor Author

nfebe commented Nov 25, 2025

/compile

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

@szaimen szaimen left a comment

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 nfebe force-pushed the fix/federated-share-external-filter branch from 6ace53e to 56856a2 Compare November 28, 2025 08:32
@nfebe
Copy link
Contributor Author

nfebe commented Nov 28, 2025

/compile

@nfebe nfebe force-pushed the fix/federated-share-external-filter branch from 69d1f20 to f41666f Compare December 4, 2025 10:10
@nfebe
Copy link
Contributor Author

nfebe commented Dec 4, 2025

/compile

1 similar comment
@nfebe
Copy link
Contributor Author

nfebe commented Dec 4, 2025

/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 <[email protected]>
@nfebe nfebe force-pushed the fix/federated-share-external-filter branch from f41666f to 0838228 Compare December 10, 2025 16:41
@nfebe
Copy link
Contributor Author

nfebe commented Dec 10, 2025

/compile

Signed-off-by: nextcloud-command <[email protected]>
@nfebe nfebe merged commit b07801a into master Dec 10, 2025
124 checks passed
@nfebe nfebe deleted the fix/federated-share-external-filter branch December 10, 2025 17:41
@backportbot
Copy link

backportbot bot commented Dec 10, 2025

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 free to 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

5 participants