You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading my server to prosody v0.10, I’ve noticed that jabber.el reports the following error upon connecting:
Thu Oct 13 11:21:17 2016: Error in jabber-connection/:sasl-auth: Invalid base64 data
However, both the server log and jabber.el’s XML console log show that SASL authentication succeeds.
Subsequently, the roster is shown empty. When setting presence, no messages seem to be sent to the server, and fsm-debug reports that the event triggered are ignored in state jabber-connection/:sasl-auth.
The invalid base64 error might be related to the contents of the success message:
I’m not sure if this is legal or whether prosody is sending something broken here. Could you advise? Apparently the single = is legal as per rfc6120, via prosody’s issue tracker.
The text was updated successfully, but these errors were encountered:
I tried working around the issue by forcing the contents of <success> to be empty on the client. This alleviated the stuck-after-auth issue, but as soon as jabber.el registers me as online and notifies me of contact presences, Emacs segfaults. Might be as separate issue though.
eigengrau
added a commit
to eigengrau/emacs-jabber
that referenced
this issue
Nov 8, 2016
Servers are free to return the string “=” instead of actual base64 data in the
success message payload as per [1] (cf. [2]). Prosody does this as of v0.10.
Hence, despite login success, we choke when trying to base64-decode non-base64
data and get stuck after auth.
We avoid getting stuck by making sure the data is not just nil but also not a
void “=”.
[1] <http://xmpp.org/rfcs/rfc6120.html#sasl-process-neg-initiate>
[2] <https://prosody.im/issues/issue/729>
Fixeslegoscia#19
After upgrading my server to prosody v0.10, I’ve noticed that jabber.el reports the following error upon connecting:
However, both the server log and jabber.el’s XML console log show that SASL authentication succeeds.
Subsequently, the roster is shown empty. When setting presence, no messages seem to be sent to the server, and fsm-debug reports that the event triggered are
ignored in state jabber-connection/:sasl-auth
.The invalid base64 error might be related to the contents of the success message:
I’m not sure if this is legal or whether prosody is sending something broken here. Could you advise? Apparently the single
=
is legal as per rfc6120, via prosody’s issue tracker.The text was updated successfully, but these errors were encountered: