This repository was archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Own knock or invite event in knock_state or invite_state in /sync is not stripped #14919
Copy link
Copy link
Open
Labels
A-Spec-Complianceplaces where synapse does not conform to the specplaces where synapse does not conform to the specO-OccasionalAffects or can be seen by some users regularly or most users rarelyAffects or can be seen by some users regularly or most users rarelyS-MinorBlocks non-critical functionality, workarounds exist.Blocks non-critical functionality, workarounds exist.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Description
Description
synapse/synapse/rest/client/sync.py
Line 345 in 19c0e55
async def encode_invited( |
This is then sent to clients via /sync. According to the spec all events in invite/knock_state should be stripped. There are benefits to the client having access to the timestamp of the invite however, so some might be relying on this, but strictly speaking this is a spec violation and looks like a bug.
Spec: https://spec.matrix.org/v1.5/client-server-api/#get_matrixclientv3sync
Steps to reproduce
- get invited or knock a room
- look at the sync response
Homeserver
neko.dev
Synapse Version
1.74
Installation Method
Other (please mention below)
Database
postgres, single
Workers
Multiple workers
Platform
Gentoo
Configuration
Can be reproduced on various configurations
Relevant log output
Screenshots and link to the offending code above, no logs about it, since it is a spec compliance issue.
Anything else that would be useful to know?
No response
1nternerd
Metadata
Metadata
Assignees
Labels
A-Spec-Complianceplaces where synapse does not conform to the specplaces where synapse does not conform to the specO-OccasionalAffects or can be seen by some users regularly or most users rarelyAffects or can be seen by some users regularly or most users rarelyS-MinorBlocks non-critical functionality, workarounds exist.Blocks non-critical functionality, workarounds exist.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.Bugs, crashes, hangs, security vulnerabilities, or other reported issues.