matrix-org / matrix-org/matrix-bifrost

XMPP -> Matrix doesn't work when the MXID has capital letter

Open
#303 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

S-Minor T-Defect
Dominant language
TypeScript
Stars
187
Forks
38
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

Matrix users whose MXID contains a capital letter (from time before that became disallowed) cannot be messaged from XMPP as [according to Maranda](https://matrix.to/#/!vKsKNErebdRaQvsUkQ:half-shot.uk/$EcFy5T6NfW0yJ89EVAsvVH8vHl_omwICsFYgVdtRdr4?via=half-shot.uk&via=matrix.org&via=libera.chat):

> You can't have caps in a JID that's against the prep profile so XMPP servers will normalize that

**To Reproduce**

1. Send a message from XMPP to a Matrix user e.g. [Ciblia_matrix.org@matrix.org](xmpp:Ciblia_matrix.org@matrix.org)
2. The message never arrives.

**Expected behavior**

The messages go through and I can read them at Matrix.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the XMPP-to-Matrix message failure with the capitalized MXID Ciblia_matrix.org@matrix.org, then trace the bridge's XMPP address normalization and Matrix delivery path. Confirm the fix by showing that messages to legacy Matrix users with capital letters are delivered and readable in Matrix.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.