matrix-org / matrix-org/matrix.to

MXIDs with slashes (`/`) incorrectly rejected

Open
#288 8 comments 6 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.4k
Forks
318
PR merge metrics
No merged PRs in 30d

Description

Per [the spec](https://spec.matrix.org/v1.4/appendices/#user-identifiers), MXIDs are allowed to contain forward slashes (`/`). However, matrix.to rejects such MXIDs:

>The localpart of a user ID is an opaque identifier for that user. It MUST NOT be empty, and MUST contain only the characters a-z, 0-9, ., _, =, -, and /.

![image](https://user-images.githubusercontent.com/83190128/200065934-2cc9a4d0-9670-422b-a3dc-d4f740f20292.png)

Contributor guide

Open the contributing guide

Research direction

No source file, test, or entry point is named in the issue. Start by locating the MXID validation used by matrix.to and reproduce the rejection with a forward slash in a valid localpart. Done means valid slash-containing MXIDs are accepted while invalid identifiers remain rejected, with coverage added if the project has validation tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.