element-hq / element-hq/synapse

Cannot start a chat with a user if domain contains uppercases

Open
#1,999 0 comments 0 reactions 0 assignees View on GitHub
A-Create-Room A-Validation T-Defect
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#1999](https://github.com/matrix-org/synapse/issues/1999).

---

When we try to start a chat with (or invite in a room) a user identifier whose domain contains uppercases, we get an error HTTP 401 `{"errcode":"M_UNKNOWN","error":"Unauthorized"}`.

For example, we can start a chat with `@riotuser6:matrix.org` but we can't with `@riotuser6:Matrix.org`. An empty room is created but the user is not invited and we get the error above.

In that case, on iOS and Android, we display "Unauthorized" and the web client displays the error below:
![untitled](https://cloud.githubusercontent.com/assets/8929916/23903647/82106948-08c5-11e7-9228-c7bf7ecd8959.jpg)

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.