Deadlock in XMPPConnection while login and parsing stream features

Description

The Tigase XMPP server offers in-band registration in the authenticated XML stream. This causes a deadlock in the XMPPConnection by trying to get the AccountManager while it is blocked by the login method. The bug prevent to use Smack and Spark with an Tigase server.

Details see http://www.igniterealtime.org/community/message/191633#191633

Environment

None

Activity

Show:
j
September 24, 2010, 5:26 AM

Actually I take this back.
I've tracked the problem and discovered that it seems tigase never sends a 'session' stream feature, only register and bind. eg:

<stream:features><register xmlns="http://jabber.org/features/iq-register"/><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/></stream:features>

If I force the client to ignore the fact it never saw this feature and assume it exists then everything works.

j
September 24, 2010, 1:18 AM

This problem has returned
I just checked out the latest trunk (in order to try the new pubsub stuff)
and this problem exists again. I can login against tigase with my older version, but not with the latest trunk.

Guenther Niess
August 29, 2009, 11:53 PM

After a second review and long testing I committed the patch to r11227.

Guenther Niess
June 23, 2009, 2:20 PM

Thanks in advance for having a look at this issue.

Fixed

Assignee

Guus der Kinderen

Reporter

Guenther Niess