Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

"InviteState" in sync response has inconsistent contents #4363

Open
elinorbgr opened this issue Jan 8, 2019 · 1 comment
Open

"InviteState" in sync response has inconsistent contents #4363

elinorbgr opened this issue Jan 8, 2019 · 1 comment
Labels
A-Spec-Compliance places where synapse does not conform to the spec S-Minor Blocks non-critical functionality, workarounds exist. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues.

Comments

@elinorbgr
Copy link

Description

The /sync client endpoint specifies the InviteState as a list of StrippedState and reads about these events that

These state events may only have the sender, type, state_key and content keys present.

I see two ways to interpret this sentence (I find the "may only" ambiguous):

  • either this means that these events are only allowed to contain these keys, in which case synapse is inconsistent with the spec in that it also sends non-stripped events in this list
  • either this means that these events are allowed to only have these fields, in which case it is contradictory with the later definition that the contents of InviteState is [StrippedState]

Steps to reproduce

assuming the first interpretation, #4359 contains an example JSON returned by synapse containing a mix of stripped and non-stripped events

Version information

  • Homeserver: my personal HS

If not matrix.org:

  • Version: 0.34.0

  • Install method: pip

  • Platform: Gentoo/Linux in virtualenv

@neilisfragile neilisfragile added z-bug (Deprecated Label) A-Spec-Compliance places where synapse does not conform to the spec labels Jan 10, 2019
@florianjacob
Copy link

Relevant spec issue: matrix-org/matrix-spec-proposals#2066
Was fixed in matrix-org/matrix-spec-proposals#2067

@clokep clokep added S-Minor Blocks non-critical functionality, workarounds exist. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues. and removed z-bug (Deprecated Label) labels Feb 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Spec-Compliance places where synapse does not conform to the spec S-Minor Blocks non-critical functionality, workarounds exist. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Projects
None yet
Development

No branches or pull requests

4 participants