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 unenforced size limit on room names #3669

Merged
merged 3 commits into from Feb 22, 2022

Conversation

aaronraimist
Copy link
Contributor

@aaronraimist aaronraimist commented Jan 23, 2022

Fixes #3641

The spec says the name field in m.room.name events must not exceed 255 bytes but no servers actually enforce this over the C-S API. Clients should probably already be truncating room names to an appropriate length for their user interface.

Alternatively servers could start enforcing the limit.

Preview: https://pr3669--matrix-org-previews.netlify.app

Signed-off-by: Aaron Raimist <aaron@raim.ist>
Signed-off-by: Aaron Raimist <aaron@raim.ist>
@richvdh richvdh requested a review from a team February 17, 2022 09:12
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

lgtm otherwise

@@ -0,0 +1 @@
Remove unenforced size limit on the `name` field of `m.room.name` events.
Copy link
Member

Choose a reason for hiding this comment

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

given we're making this change on the basis that it has never been enforced, this is a clarification rather than a .breaking imho

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok. I have switched it to a clarification.

Signed-off-by: Aaron Raimist <aaron@raim.ist>
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

thanks!

@richvdh richvdh merged commit 2e63733 into matrix-org:main Feb 22, 2022
@aaronraimist aaronraimist deleted the room-name branch February 22, 2022 18:42
RiotTranslateBot pushed a commit to RiotTranslateBot/matrix-doc that referenced this pull request Aug 22, 2023
Fixes matrix-org#3641

The spec says the name field in m.room.name events must not exceed 255 bytes but no servers actually enforce this over the C-S API. Clients should probably already be truncating room names to an appropriate length for their user interface.

Signed-off-by: Aaron Raimist <aaron@raim.ist>
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.

Should room name be limited to 255 bytes?
2 participants