Skip to content

Expiration of pagination tokens on /hierarchy not specified  #1058

@turt2live

Description

@turt2live

Link to problem area: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv1roomsroomidhierarchy

Issue

MSC2946 (MD) states:

When the current response page is full, the current state should be persisted and a pagination token should be generated (if there is more data to return). To prevent resource exhaustion, the server may expire persisted data that it deems to be stale.

however, this note about expiration is not included in the spec for clients to rely on.

Expected behaviour

The spec should clearly state the expiration requirements to avoid confusion such as matrix-org/synapse#12697 / element-hq/element-web#22138

Historical proof

This was implemented in matrix-org/synapse#10574 as part of maintenance work for matrix-org/synapse#10495 which appeared shortly after MSC2946 was updated.

matrix-org/synapse#12697 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    spec-bugSomething which is in the spec, but is wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions