Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove outdated text saying that state_default defaults to 0 #1479

Merged
merged 4 commits into from
Apr 5, 2023

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Mar 31, 2023

There was substantial confusion around this, but I've done some archaeology.

Basically, this was changed back in r0.5.0 by MSC1304 and matrix-org/synapse#3397. Before that, it was indeed the case that state_default was 0 if there was no m.room.power_levels event, but that was confusing and a source of security holes, so we changed it.

matrix-org/matrix-spec-proposals#1656 changed the spec, but apparently overlooked the text in the description.

Reverts: #1478.
Fixes: #861.

Preview: https://pr1479--matrix-spec-previews.netlify.app

@richvdh richvdh requested a review from a team as a code owner March 31, 2023 08:26
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm either way though

Comment on lines -79 to -80
**Note**: When there is no `m.room.power_levels` event in the room, this defaults
to 0. See description for more information.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I probably should have done it in my original PR, but while you're here it'd be good to have a similar note for the "creator gets 100" clause on users_default (effectively).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a note in 4a90545 (and clarified the rest of the description of users_default too

turt2live added a commit to matrix-org/eigen-server that referenced this pull request Mar 31, 2023
@richvdh richvdh merged commit 91b2f77 into main Apr 5, 2023
@richvdh richvdh deleted the rav/state_default_is_not_zero branch April 5, 2023 09:57
@zecakeh zecakeh mentioned this pull request Apr 7, 2023
47 tasks
clokep pushed a commit to clokep/matrix-spec that referenced this pull request May 3, 2023
…org#1479)

There was substantial confusion around this, but I've done some archaeology.

Basically, this was changed back in r0.5.0 by MSC1304 and matrix-org/synapse#3397. Before that, it was indeed the case that state_default was 0 if there was no m.room.power_levels event, but that was confusing and a source of security holes, so we changed it.

matrix-org/matrix-spec-proposals#1656 changed the spec, but apparently overlooked the text in the description.

Reverts: matrix-org#1478.
Fixes: matrix-org#861.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default state_default of missing m.room.power_levels event is incorrect
2 participants