fix(sharing): Add isTrustedServer flag to lookup results#56501
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 <fenn25.fn@gmail.com>
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.