Skip to content

Private messages in MUC don't get sent to the right resource if it contains certain characters #268

@maranda

Description

@maranda

Describe the bug
Bifrost seems to be mangling and/or prepping incorrectly certain characters when sending stanzas.

To Reproduce
Steps to reproduce the behavior:

  1. Join [email protected]
  2. Attempt to privately message jonas’‎
  3. Message gets sent to "jonas 19" which doesn't exist

Expected behavior
The message should be sent to jonas’

Additional context
Some logs about the issue

Bifrost:
Jul-29 08:19:05.390 INFO MatrixEventHandler Handling IM message
Jul-29 08:19:05.391 INFO MatrixEventHandler Sending IM to [email protected]/jonas 19
Jul-29 08:19:05.392 INFO XmppJsGateway Looking up possible gateway: @maranda:aria-net.org [email protected]/jonas 19 [email protected]

XMPP Server:
Jul 29 08:19:05 jcp55df4cc03bb0 debug Received[component]:
Jul 29 08:19:05 s2sout55df4b10b5c0 debug sending:
Jul 29 08:19:05 s2sout55df4b10b5c0 debug Received[s2sout]:

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-DefectBugs, crashes, hangs, vulnerabilities, or other reported problems.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions