Skip to content

Should v3+ room version events containing an event_id field be rejected? #2027

@anoadragon453

Description

@anoadragon453

Link to problem area: https://spec.matrix.org/v1.12/rooms/v3/#event-format

Issue

We received this pull request to Synapse which ignores incoming room v3+ events over federation if they contain an event_id field. The rationale being that events in rooms with room version v3+ have their event ID derived from the non-redactable contents of the event.

Given that the event_id field in such an event would thus be fed into that hashing algorithm, in order to generate itself, this event structure appears improbable. In addition, if such a field exists in the event, it's likely that in practice the sending homeserver is accidentally sending an event constructed for a room v1/v2 room, instead of the v3+ room it's intended to be placed in.

Should the spec clarify that an event received with an event_id field already included, destined for a v3+ room, should thus not be accepted by the receiving homeserver?

Metadata

Metadata

Assignees

No one assigned

    Labels

    clarificationAn area where the expected behaviour is understood, but the spec could do with being more explicit

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions