This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Federation 'send_join' is insufficiently pedantic (SYN-507) #1407
Labels
A-Federated-Join
joins over federation generally suck
A-Spec-Compliance
places where synapse does not conform to the spec
A-Validation
500 (mostly) errors due to lack of event/parameter validation
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Minor
Blocks non-critical functionality, workarounds exist.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Z-Cleanup
Things we want to get rid of, but aren't actively causing pain
In the process of writing a wire-level federation test in sytest to check the room join dance of synapse, I have ended up with a "minimal viable case" test (https://github.com/matrix-org/sytest/blob/paul/federation/tests/50federation/30room-join.pl).
This test appears to be too small in places, and is missing things that we feel synapse ought to require. This bug exists to track those things it should be checking, that this test demonstrates it currently does not.
synapse does not notice any of the following mistakes:
m.room.member
event for the room creator.m.room.power_levels
event.m.room.member
event of joining user hasdepth
of 1.auth_events
have a depth of 0.send_join
.state
key returned bysend_join
can be an empty object, or an empty list.(Imported from https://matrix.org/jira/browse/SYN-507)
(Reported by @leonerd)
The text was updated successfully, but these errors were encountered: