MSC4311 says that for "version 12+ rooms, servers SHOULD rather than MAY respond to such requests with 400 M_MISSING_PARAM":
If any of the events are not a PDU, not for the room ID specified, or fail
signature checks, or the m.room.create event is missing, the receiving
server MAY respond to invites with a 400 M_MISSING_PARAM standard Matrix
error (new to the endpoint). For invites to room version 12+ rooms, servers
SHOULD rather than MAY respond to such requests with 400 M_MISSING_PARAM.
-- MSC4311
Currently, we only log in room versions 12+ where this SHOULD be the case already.
After 2027-06-01 (to allow some time for the ecosystem to adapt and support MSC4311), instead of logging, we should reject with 400 M_MISSING_PARAM. Given we have the lee-way to enforce this in all room versions (granted by the MAY langauge in the spec), we might as well. This is marked as a leftover FIXME task in #19723
Definition of done
Dev notes
Synapse PR: #19723
Complement tests: matrix-org/complement#796
MSC4311 says that for "version 12+ rooms, servers SHOULD rather than MAY respond to such requests with 400 M_MISSING_PARAM":
Currently, we only log in room versions 12+ where this SHOULD be the case already.
After 2027-06-01 (to allow some time for the ecosystem to adapt and support MSC4311), instead of logging, we should reject with 400
M_MISSING_PARAM. Given we have the lee-way to enforce this in all room versions (granted by the MAY langauge in the spec), we might as well. This is marked as a leftoverFIXMEtask in #19723Definition of done
TestMSC4311RejectInvalidStrippedStateFederationComplement testsDev notes
Synapse PR: #19723
Complement tests: matrix-org/complement#796