matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.83k stars 2.12k forks source link

Kicking an external user gives an error, even though it should be allowed by the specification #16736

Open marijnvanwezel opened 11 months ago

marijnvanwezel commented 11 months ago

Description

The specification allows kicking an external user (https://spec.matrix.org/v1.8/client-server-api/#room-membership):

image

However, Synapse returns an error when you try to kick a user that is external:

{'errcode': 'M_FORBIDDEN', 'error': 'The target user is not in the room'}

Steps to reproduce

Homeserver

local

Synapse Version

v1.93.0

Installation Method

Docker (matrixdotorg/synapse)

Database

SQLite

Workers

Single process

Platform

Docker Container (matrixdotorg/synapse:v1.93.0)

Configuration

We use the default homeserver options, but with ratelimiting disabled.

Relevant log output

n/a

Anything else that would be useful to know?

No response