• Florian Schmaus's avatar
    Don't return incorrect-encoding when receiving '=' · 84e41fbe
    Florian Schmaus authored
    when performing SASL authentication.
    
    Since 3eadecb6 Openfire would return
    incorrect-encoding when a SASL auth packet would contain just a single
    equals sign ('='). But this is correct (client) behavior according to
    RFC 6120 6.4.2.
    
    Related to OF-736
    
    07:25:42 PM SENT (2109957412): <stream:stream xmlns='jabber:client' to='igniterealtime.org' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
    07:25:42 PM RCV  (2109957412): <?xml version='1.0' encoding='UTF-8'?><stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="igniterealtime.org" id="1d96e3b3" xml:lang="en" version="1.0">
    07:25:43 PM RCV  (2109957412): <stream:features><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"></starttls><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>DIGEST-MD5</mechanism><mechanism>JIVE-SHAREDSECRET</mechanism><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism><mechanism>CRAM-MD5</mechanism></mechanisms><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><auth xmlns="http://jabber.org/features/iq-auth"/><register xmlns="http://jabber.org/features/iq-register"/></stream:features>
    07:25:43 PM SENT (2109957412): <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'>=</auth>
    07:25:43 PM RCV  (2109957412): <failure
    xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><incorrect-encoding/></failure>
    84e41fbe
SASLAuthentication.java 39.7 KB