matrix-org / matrix-org/matrix.to

Invalid url for valid usernames

Open
#310 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.4k
Forks
318
PR merge metrics
No merged PRs in 30d

Description

According to specification [4.3.1](https://spec.matrix.org/v1.6/appendices/#user-identifiers), a single `/` is a valid localpart for a user identifier.

Matrix.to shows that I can use `@localpart:domain`, and in fact `@name:host` does work, but writing `@/:domain` only shows "invalid URL" dialog - even when I explicitly write it in the text field and press "Create link", which I think is bad UX (should say that the name is invalid).

Also, according to the matrix specification [4.3.1.1](https://spec.matrix.org/v1.6/appendices/#historical-user-ids), clients MUST accept localparts that have any ASCII printing characters except `:`.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in Matrix.to's text field and the "Create link" flow using the valid localparts described in the Matrix specification. Inspect the URL and username validation entry point; done means valid usernames such as `/` are accepted and invalid input receives an appropriate name-validation message rather than an "invalid URL" dialog.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.