element-hq / element-hq/synapse

Synapse does not respect event order of spec /createRoom

Open
#11,731 0 comments 0 reactions 0 assignees View on GitHub
A-Create-Room A-Power-Levels A-Spec-Compliance T-Other
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#11731](https://github.com/matrix-org/synapse/issues/11731).

---

https://github.com/matrix-org/synapse/blob/890c0c041d2d7f84525ad2031caabc74af9feba7/synapse/handlers/room.py#L820-L822

If no `power_level_content_override` event is given in step 3, one needs to create a default power levels event. The power levels event from `initial_state` can only be used in step 6 and needs to be auth checked against the power levels event from step 3.

https://spec.matrix.org/v1.1/client-server-api/#post_matrixclientv3createroom
![image](https://user-images.githubusercontent.com/25297359/149159063-843c58bb-a985-4cfb-b1ed-b63647324c0e.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.