Skip to content
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

user_directory_search_enabled is not spec compliant #17534

Open
Johennes opened this issue Aug 7, 2024 · 0 comments
Open

user_directory_search_enabled is not spec compliant #17534

Johennes opened this issue Aug 7, 2024 · 0 comments

Comments

@Johennes
Copy link
Contributor

Johennes commented Aug 7, 2024

Description

As discussed in matrix-org/matrix-spec-proposals#4170 (comment), when the user_directory_search_enabled config setting is disabled, Synapse responds with HTTP 200 and an empty results array on all requests to POST /_matrix/client/v3/user_directory/search. I believe this is incompatible with the spec which requires that at least users from shared and public rooms are searchable:

Performs a search for users. The homeserver may determine which subset of users are searched, however the homeserver MUST at a minimum consider the users the requesting user shares a room with and those who reside in public rooms (known to the homeserver). The search MUST consider local users to the homeserver, and SHOULD query remote users as part of the search.

Excluding these users from search results also doesn't seem to have any benefit because the requester has access to the returned information anyway through room membership.

Steps to reproduce

Homeserver

Synapse Version

Installation Method

I don't know

Database

Workers

I don't know

Platform

Configuration

Relevant log output

Anything else that would be useful to know?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant