element-hq / element-hq/synapse
Cannot start a chat with a user if domain contains uppercases
- 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:

Contributor guide
Assessment
This issue has not been assessed yet.