bans are too persistent #855

Closed
opened 2025-06-18 16:26:57 +00:00 by nex · 5 comments
Owner

Sometimes, when a user is banned and then unbanned, we don't seem to (receive? validate? allow?) the unban, meaning the ban gets stuck, and and subsequent join attempts fail. Somehow, this even means accepting an invite results in a "you're banned" error.

This is worked around by having a second account join the room to receive the updated state (why dont we get this anyway?)

Sometimes, when a user is banned and then unbanned, we don't seem to (receive? validate? allow?) the unban, meaning the ban gets stuck, and and subsequent join attempts fail. Somehow, this even means accepting an invite results in a "you're banned" error. This is worked around by having a second account join the room to receive the updated state (why dont we get this anyway?)
nex added the
Bug
Matrix/Client
Matrix/Federation
Status
Needs Investigation
labels 2025-06-18 16:26:57 +00:00
Owner

If no accounts in a room or on the server then we don't receive events from the room - so the state that we have is out of date. I need to look into this more, but it's likely that we should ignore any room state that we already have when trying to join a room from that state

If no accounts in a room or on the server then we don't receive events from the room - so the state that we have is out of date. I need to look into this more, but it's likely that we should ignore any room state that we already have when trying to join a room from that state
Author
Owner

That would make sense if this were a persistent issue, but it isn't. When a membership is changed, we tell the target server even if they aren't in the room, so I'm not too sure how this is happening in the first place

That would make sense if this were a persistent issue, but it isn't. When a membership is changed, we tell the target server even if they aren't in the room, so I'm not too sure how this is happening in the first place
Owner

A step through debugger on an instance of this would be helpful

A step through debugger on an instance of this would be helpful
Author
Owner

A step-through debugger would probably solve most of our problems 🧌

A step-through debugger would probably solve most of our problems 🧌
Author
Owner

Travis suggested that https://github.com/matrix-org/synapse/pull/15323 may be related, and it does indeed look like the same thing we're running into (i.e. host not in room with dead state). Mirroring the synapse changes into our own code might fix the issue

Travis suggested that https://github.com/matrix-org/synapse/pull/15323 may be related, and it does indeed look like the same thing we're running into (i.e. host not in room with dead state). Mirroring the synapse changes into our own code might fix the issue
nex added
Status
Confirmed
and removed
Status
Needs Investigation
labels 2025-06-28 18:56:20 +00:00
nex closed this issue 2025-06-29 12:14:21 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: continuwuation/continuwuity#855
No description provided.