Skip to content

[Bug]: new setting show_federated_shares_to_trusted_servers_as_internal returns options for federated shares in the internal section when searching for an email #54511

@maximelehericy

Description

@maximelehericy

⚠️ This issue respects the following points: ⚠️

Bug description

Context:

  • federated setup (at least two instances)
  • instances trust each other, and exchange their address book

As shown below, with the parameter show_federated_shares_to_trusted_servers_as_internal set to true, federated cloudId is possible in the External Share search input.
Image

However, when I type an email in the Internal share section input to find the user with that email, I am returned with:

  • one option for a federeted user,
  • one for a federated group,
  • one for the user matching the email
Image

The options for federated user and federated group are unexpected.

Steps to reproduce

  1. Have two nextcloud instances that trust each other and share their address book. Alice is on instance A, Bob on instance B.
  2. Run php occ config:app:set files_sharing show_federated_shares_to_trusted_servers_as_internal --value true --type boolean
  3. With Alice on instance A, input Bob's email address in the Internal Share field input.

Expected behavior

Only Bob's account from the synced address books should show up.

Image

Nextcloud Server version

29

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

Related PR: #53661

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions