Victor Danilchenko | 17 Feb 2012 15:39

Jabber protocol change?

	Hi guys,

	Sorry to bother you again, this is still related to my jabber upgrade 
project.

	So the new server is running jaber14 1.6, the old one was jabber14 1.4. 
My client is actually a Flash applet, we use it to provide a chatroom 
facility for out product. Now the client is failing to connect to the 
new server, I captured the TCP stream, and I am trying to figure out 
what my client is doing wrong -- but since I have no clue about the 
Jabber protocol, i am totally lost.

	The server logs nothing useful. This is all it logged for the failed 
connection:

jabberd14[13239]: [stat] (sessions.localhost): delivered messages 0
jabberd14[13239]: [stat] (sessions.localhost): delivered presences 0
jabberd14[13239]: [stat] (sessions.localhost): delivered iqs 0
jabberd14[13239]: [stat] (sessions.localhost): delivered subscriptions 0

	here is what the malfunctioning stream looks like -- when my client 
connects to Jabber14 1.6 server:

SENT: <?xml version="1.0"?><stream:stream to="foo.askonline.net" 
xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" 
version="1.0" />

SENT: <presence 
to="foo-WritingCenter-1197 <at> conference.localhost/victor-admin"><x 
xmlns="http://jabber.org/protocol/muc" /></presence>
(Continue reading)

Tomasz Sterna | 17 Feb 2012 16:53
Gravatar

Re: Jabber protocol change?

Dnia 2012-02-17, pią o godzinie 09:39 -0500, Victor Danilchenko pisze:
> SENT: <?xml version="1.0"?><stream:stream to="foo.askonline.net" 
> xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" 
> version="1.0" />
> 
> SENT: <presence 
> to="foo-WritingCenter-1197 <at> conference.localhost/victor-admin"><x 
> xmlns="http://jabber.org/protocol/muc" /></presence> 

Your client sends presence packet before authenticating.
This is not allowed.

--

-- 
Tomasz Sterna
Instant Messaging Consultant : Open Source Developer
http://tomasz.sterna.tv/  http://www.xiaoka.com/portfolio

_______________________________________________
JAdmin mailing list
Info: http://mail.jabber.org/mailman/listinfo/jadmin
Unsubscribe: JAdmin-unsubscribe <at> jabber.org
_______________________________________________
Victor Danilchenko | 17 Feb 2012 17:29

Re: Jabber protocol change?

	What you say makes sense, but if I defer sending the presence, and 
instead try to simply initiate authentication right away, i still get 
the same error:

SENT: <?xml version="1.0"?><stream:stream to="foo.askonline.net" 
xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" 
version="1.0" />

Connection succeeded!

RECEIVED: <?xml version='1.0'?><stream:stream 
xmlns:stream="http://etherx.jabber.org/streams" 
id="df6191a8b9c7bbb74fd14bc300e6ff334cc309aa" from="foo.askonline.net" 
version="1.0" xmlns="jabber:client" />

SENT: <iq id="log_user_1" type="get"><query 
xmlns="jabber:iq:auth"><username>victor</username></query></iq>

RECEIVED: <stream:features 
xmlns:stream="http://etherx.jabber.org/streams"><register 
xmlns="http://jabber.org/features/iq-register" /><auth 
xmlns="http://jabber.org/features/iq-auth" /></stream:features>

RECEIVED: <stream:error><conflict 
xmlns="urn:ietf:params:xml:ns:xmpp-streams" /><text 
xmlns="urn:ietf:params:xml:ns:xmpp-streams" 
xml:lang="en">Disconnected</text></stream:error>

ERROR: Remote Server Error

(Continue reading)

Tomasz Sterna | 17 Feb 2012 18:03
Gravatar

Re: Jabber protocol change?

Dnia 2012-02-17, pią o godzinie 11:29 -0500, Victor Danilchenko pisze:
> RECEIVED: <stream:error><conflict 
> xmlns="urn:ietf:params:xml:ns:xmpp-streams" /><text 
> xmlns="urn:ietf:params:xml:ns:xmpp-streams" 
> xml:lang="en">Disconnected</text></stream:error>
> 
> ERROR: Remote Server Error 

Try looking in server logs for the reason for disconnecting client.
Maybe enable some debug...

--

-- 
Tomasz Sterna
Instant Messaging Consultant : Open Source Developer
http://tomasz.sterna.tv/  http://www.xiaoka.com/portfolio

_______________________________________________
JAdmin mailing list
Info: http://mail.jabber.org/mailman/listinfo/jadmin
Unsubscribe: JAdmin-unsubscribe <at> jabber.org
_______________________________________________
Matthias Wimmer | 19 Feb 2012 16:32
Picon
Gravatar

Re: Jabber protocol change?

Hi Victor,

Am 17.02.12 17:29, schrieb Victor Danilchenko:
> SENT: <iq id="log_user_1" type="get"><query 
> xmlns="jabber:iq:auth"><username>victor</username></query></iq>
>
I guess it should be:

<iq id='log_user_1' to='foo.askonline.net' type='get'><query 
xmlns='jabber:iq:auth'><username>victor</username></query></iq>

(Note the additional to attribute of the <iq/> element.

Regards,
Matthias

Attachment (smime.p7s): application/pkcs7-signature, 4398 bytes
_______________________________________________
JAdmin mailing list
Info: http://mail.jabber.org/mailman/listinfo/jadmin
Unsubscribe: JAdmin-unsubscribe <at> jabber.org
_______________________________________________
Victor Danilchenko | 21 Feb 2012 00:29

Re: Jabber protocol change?

    I will try it, thanks. For now we have reverted to the old Jabber server, but this is clearly not a sustainable solution.

On 2/19/2012 10:32 AM, Matthias Wimmer wrote:
Hi Victor,

Am 17.02.12 17:29, schrieb Victor Danilchenko:
SENT: <iq id="log_user_1" type="get"><query xmlns="jabber:iq:auth"><username>victor</username></query></iq>

I guess it should be:

<iq id='log_user_1' to='foo.askonline.net' type='get'><query xmlns='jabber:iq:auth'><username>victor</username></query></iq>

(Note the additional to attribute of the <iq/> element.


Regards,
Matthias



_______________________________________________ JAdmin mailing list Info: http://mail.jabber.org/mailman/listinfo/jadmin Unsubscribe: JAdmin-unsubscribe <at> jabber.org _______________________________________________

_______________________________________________
JAdmin mailing list
Info: http://mail.jabber.org/mailman/listinfo/jadmin
Unsubscribe: JAdmin-unsubscribe <at> jabber.org
_______________________________________________

Gmane