matrix-org / matrix-bifrost

General purpose bridging with a variety of backends including libpurple and xmpp.js
Apache License 2.0
163 stars 31 forks source link

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

Open Mikaela opened 2 years ago

Mikaela commented 2 years ago

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:

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
  2. The message never arrives.

Expected behavior

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

maranda commented 2 years ago

Just for clarity: "you can't have caps in the node portion of a JID"

Mikaela commented 2 years ago

I guess this is an instance of https://github.com/matrix-org/matrix-spec-proposals/issues/3794

JokerGermany commented 2 years ago

This is related to #281

Half-Shot commented 2 years ago

We'll probably have to solve this by QP encoding localparts (which will be ugly but functional).

Half-Shot commented 2 years ago

This is a S-Minor because it technically affects only users who are not spec compliant.