element-hq / element-hq/matrix-authentication-service

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

Open
#2,861 1 comment 1 reaction 0 assignees View on GitHub
T-Defect
Dominant language
Rust
Stars
280
Forks
111
Avg merge
3d 1h
Merged PRs (30d)
25

Description

*This issue was originally created by [**@reivilibre**](https://github.com/reivilibre) at .*

https://github.com/matrix-org/matrix-authentication-service/blob/121966ccceaf74b1c5728d5521299eac3ff9346d/crates/handlers/src/graphql/mutations/user.rs#L276

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

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.