Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

internal server error when remote room directory is private #6896

@lub

Description

@lub

Description

When querying a remote server room directory which requires authentication, synapse currently just throws a {errcode: "M_UNKNOWN", error: "Internal server error"}

It probably makes sense to use a more specific error to indicate to the end user, that it's only possible to query that room directory as user of that server.

Steps to reproduce

  • query /_matrix/client/r0/publicRooms?server=example.com, where example.com is a server with a non-public room directory
  • get before mentioned generic internal server error

Version information

  • Homeserver: imninja.net

  • Version: 1.10.0rc5

  • Install method: Docker

  • Platform: Container

Metadata

Metadata

Assignees

Labels

z-bug(Deprecated Label)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions