Skip to content

Conversation

@a-iv
Copy link

@a-iv a-iv commented Feb 11, 2011

http://xmpp.org/rfcs/rfc3920.html#rfc.section.6.2, step 3 describes that empty element MUST contains a single equals sign ("=").
But this is not declared for empty .
Some servers doesn't accept such =, for example chrome.pl based on jabberd 2.2.

<challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cmVhbG09ImNocm9tZS5wbCIsIG5vbmNlPSIwMDAwMDAwMDAwMDAwMDAwMDAwMDAwPT0iLCBxb3A9ImF1dGgiLCBjaGFyc2V0PXV0Zi04LCBhbGdvcml0aG09bWQ1LXNlc3M=</challenge>

<response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dXNlcm5hbWU9InVzZXIiLHJlYWxtPSJjaHJvbWUucGwiLGNub25jZT0iMDAwMDAwIixuYz0wMDAwMDAwMSxxb3A9YXV0aCxkaWdlc3QtdXJpPSJ4bXBwL2Nocm9tZS5wbCIscmVzcG9uc2U9MDAwMDAwLGNoYXJzZXQ9dXRmLTgsbm9uY2U9IjAwMDAwMD09Ig==</response>

<challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cnNwYXV0aD0wMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAw==</challenge>

<response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">=</response>

<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><incorrect-encoding/></failure>

But:
cmVhbG09ImNocm9tZS5wbCIsIG5vbmNlPSIwMDAwMDAwMDAwMDAwMDAwMDAwMDAwPT0iLCBxb3A9ImF1dGgiLCBjaGFyc2V0PXV0Zi04LCBhbGdvcml0aG09bWQ1LXNlc3M=

<response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dXNlcm5hbWU9InVzZXIiLHJlYWxtPSJjaHJvbWUucGwiLGNub25jZT0iMDAwMDAwIixuYz0wMDAwMDAwMSxxb3A9YXV0aCxkaWdlc3QtdXJpPSJ4bXBwL2Nocm9tZS5wbCIscmVzcG9uc2U9MDAwMDAwLGNoYXJzZXQ9dXRmLTgsbm9uY2U9IjAwMDAwMD09Ig==</response>

<challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cnNwYXV0aD0wMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAw==</challenge>

<response xmlns="urn:ietf:params:xml:ns:xmpp-sasl" />

<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>

@a-iv
Copy link
Author

a-iv commented Feb 28, 2011

DataForm in FileTransferNegotiator must contains field with TYPE_LIST_SINGLE
(see http://xmpp.org/extensions/xep-0096.html#examples).
For example Gajim reject request with TYPE_LIST_MULTI.

Alexander Ivanov and others added 27 commits March 2, 2011 17:10
as it causes problems on disconnect().  Features check the state of the connection with:
        // remove feature from service discovery
        ServiceDiscoveryManager serviceDiscoveryManager = ServiceDiscoveryManager.getInstanceFor(this.connection);

        // check if service discovery is not already disposed by connection shutdown
        if (serviceDiscoveryManager != null) {
            serviceDiscoveryManager.removeFeature(NAMESPACE);
        }

This reverts commit 7ad98dc.
ge0rg pushed a commit to ge0rg/smack that referenced this pull request Mar 11, 2012
Fix direct socket connections always trying only one IP address for a given server.
ge0rg pushed a commit to ge0rg/smack that referenced this pull request Feb 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant