Open giomfo opened 5 years ago
Given that we're not yet joined to the room, we don't have any sense of its current state and hence have no idea who's in the room.
The invite event may include stripped state events in its unsigned.invite_room_state
, but this doesn't include membership events.
The spec is not explicit but my reading of https://spec.matrix.org/v1.5/client-server-api/#get_matrixclientv3roomsroomidmembers is that we should return HTTP 403 in this situation.
The error comes from https://github.com/matrix-org/synapse/blob/86c5a710d8b4212f8a8a668d7d4a79c0bb371508/synapse/handlers/message.py#L205-L206 which is called https://github.com/matrix-org/synapse/blob/86c5a710d8b4212f8a8a668d7d4a79c0bb371508/synapse/rest/client/room.py#L590-L595
So this is another example of NotFoundError
bubbling up to the rest layer and deciding what the status code is.
If anyone wants to take this on, I suggest:
get_state_events
in a try/except block catching NotFoundErrorSynapseError
with
Hello there! Is this still up?I would like to contribute :)
Hello there! Is this still up?I would like to contribute :)
The issue has not been fixed yet. Feel free to PR a fix.
Description get
/_matrix/client/r0/rooms/{roomId}/members
on an invite received from another federated server fails with the following error:Steps to reproduce Consider 2 users userA and userB, created on 2 different Homeservers. userA creates a room and invites userB When userB requests for the members of this room, he gets an error