xmpp.js icon indicating copy to clipboard operation
xmpp.js copied to clipboard

SASL negotiation fails if 'mechanisms' contains boundary white spaces

Open serge-medvedev opened this issue 3 years ago • 2 comments

https://github.com/xmppjs/xmpp.js/blob/63aecc49157980f6d68cc58605cf8a3fef664a2a/packages/sasl/index.js#L13

An error el.text is not a function is thrown if mechanisms stream feature contains boundary whitespaces, i.e. isn't minified.

serge-medvedev avatar Aug 11 '22 21:08 serge-medvedev

Do you have an example of such xml ?

sonnyp avatar Aug 12 '22 07:08 sonnyp

Do you have an example of such xml ?

<stream:features>
    <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-bind">


       <mechanism>PLAIN</mechanism>


    </mechanisms>
</stream:features>

serge-medvedev avatar Aug 12 '22 16:08 serge-medvedev