-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix(sharing): Add isTrustedServer flag to lookup results #56501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
/backport to 32 |
|
/backport to 31 |
|
tested and works as expected: |
When `show_federated_shares_to_trusted_servers_as_internal` is enabled, lookup server results were being filtered out because they lacked the `isTrustedServer` flag. This adds the flag to lookup results by: - Injecting TrustedServers service into LookupPlugin - Adding `server` and `isTrustedServer` fields to each lookup result - Updating tests to reflect new structure This ensures lookup results from trusted servers appear in internal sharing while non-trusted servers are correctly filtered out. Signed-off-by: nfebe <[email protected]>
0d88a4f to
40246d9
Compare
|
The backport to # Switch to the target branch and update it
git checkout 31
git pull origin 31
# Create the new backport branch
git checkout -b backport/56501/31
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 40246d9a
# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/56501/31Error: Failed to clone repository: Failed to create working tree: Preparing worktree (new branch 'backport/56501/31') Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports. |
|
The backport to # Switch to the target branch and update it
git checkout 32
git pull origin 32
# Create the new backport branch
git checkout -b backport/56501/32
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 40246d9a
# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/56501/32Error: Failed to clone repository: Failed to create working tree: Preparing worktree (new branch 'backport/56501/32') Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports. |
When
show_federated_shares_to_trusted_servers_as_internalis enabled, lookup server results were being filtered out because they lacked theisTrustedServerflag. This adds the flag to lookup results by:serverandisTrustedServerfields to each lookup resultThis ensures lookup results from trusted servers appear in internal sharing while non-trusted servers are correctly filtered out.