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

User ID length limit is not correct (should be 255 for the whole User ID, not just the local part) #2861

Open
reivilibre opened this issue Jun 20, 2024 · 1 comment
Labels
T-Defect Something isn't working

Comments

@reivilibre
Copy link
Contributor

if username.is_empty() || username.len() > 255 {

https://spec.matrix.org/v1.10/appendices/#user-identifiers

The length of a user ID, including the @ sigil and the domain, MUST NOT exceed 255 characters.

Other than that, it seems that + chars are not allowed even though the spec says they should be

@matrixbot
Copy link
Member

For your information, this issue has been copied over to the Element fork of matrix-authentication-service: element-hq/matrix-authentication-service#2861

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Defect Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants