matrix-org / matrix-bifrost

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

issues mapping libpurple xmpp to matrix #27

Open pvagner opened 5 years ago

pvagner commented 5 years ago

Let's assume that I have added purple xmpp account with JID pvagner@puppeting.xmpp . I have used

accounts map-existing xmpp pvagner@puppeting.xmpp

Thus it should be correctly mapped to my matrix account for future bridging.

When I receive a new XMPP message on said account, the bridge prints this into the log:

(18:51:37) jabber: Recv (ssl)(228): <message xml:lang='en' to='pvagner@puppeting.xmpp/647707731450494668930058216' from='friend@jabber.sk/625532613263466700946438404' type='chat' id='purpledb6c9628'><composing xmlns='http://jabber.org/protocol/chatstates'/></message>
(18:51:39) jabber: Recv (ssl)(245): <message xml:lang='en' to='pvagner@puppeting.xmpp/647707731450494668930058216' from='friend@jabber.sk/625532613263466700946438404' type='chat' id='purpledb6c9629'><active xmlns='http://jabber.org/protocol/chatstates'/><body>error 1</body></message>
(18:51:39) prefs: purple_prefs_get_bool: Unknown pref /purple/logging/log_ims
(18:51:39) jabber: Recv (ssl)(225): <message xml:lang='en' to='pvagner@puppeting.xmpp/647707731450494668930058216' from='friend@jabber.sk/625532613263466700946438404' type='chat' id='purpledb6c962a'><active xmlns='http://jabber.org/protocol/chatstates'/></message>
Jan-2 18:51:39.575 ERROR Store Could not find an account for prpl-jabber://pvagner@puppeting.xmpp/. Either the accountis not assigned to a matrix user, or we have hit a bug.

I can partially workaround this by adding slash to the end of my JID inside the file user-store.db manually however I'm afraid it might break something else.

Half-Shot commented 5 years ago

This needs working around so that the names are consistent