[JDEV] Receiving others' messages ([WAS] 406 presence error)

Andy Ames agames at sbcglobal.net
Mon Aug 4 15:10:32 CDT 2003


Now this is very strange. I changed the "get" to "set". This error was
pointed out to me by Robert Norris.

I was able to publish presence and send messages. Now, the next day when I
run the same exact code, I'm receiving messages intended for other users
from jabber.org. Check this out:

SENT: <?xml version="1.0"?>
      <stream:stream xmlns:stream="http://etherx.jabber.org/streams"
                     xmlns="jabber:client"
                     to="jabber.org">
RECV: <stream:stream xmlns='jabber:client'
                     xmlns:stream='http://etherx.jabber.org/streams'
                     from='jabber.org'
                     id='0123456789'>
        <iq id='jcl_14' type='result'>
          <query xmlns='jabber:iq:auth'>
            <username>perfre</username>
            <password/>
            <digest/>
            <resource/>
          </query>
        </iq>

All I'm doing is sending the opening stream, and I get back the result of
someone elses "get" query. I have no idea who "perfre" is, nor am I running
another jabber client. (The "jcl_14" id I recognize as something Exodus, and
maybe other clients, would generate.)

This has now happened three times consecutively. Each time, I get the result
of a different user's "get" query. I'm not even sending a "get" query
myself.

Any ideas? Could the jabber.org server be messing up?

Andy

-----Original Message-----
From: jdev-admin at jabber.org [mailto:jdev-admin at jabber.org]On Behalf Of
Andy Ames
Sent: Monday, August 04, 2003 1:11 AM
To: jdev at jabber.org
Subject: RE: [JDEV] 406 presence error


hahahaha!

Thank you.

Andy

-----Original Message-----
From: jdev-admin at jabber.org [mailto:jdev-admin at jabber.org]On Behalf Of
Robert Norris
Sent: Sunday, August 03, 2003 9:16 PM
To: jdev at jabber.org
Subject: Re: [JDEV] 406 presence error


> SENT: <iq type="get" to="jabber.org" id="0123456789">
>         <query xmlns="jabber:iq:auth">
>           <username>myusername</username>
>         </query>
>       </iq>
> RECV: <iq type='result' id='0123456789'>
>         <query xmlns='jabber:iq:auth'>
>           <username>myusername</username>
>           <password/>
>           <digest/>
>           <sequence>0</sequence>
>           <token>A1B2C3D4</token>
>           <resource/>
>         </query>
>       </iq>
> SENT: <iq type="get" to="jabber.org" id="0123456789">
>         <query xmlns="jabber:iq:auth">
>           <username>myusername</username>
>           <password>mypassword</password>
>         </query>
>       </iq>
> RECV: <iq type='result' id='0123456789'>
>         <query xmlns='jabber:iq:auth'>
>           <username>myusername</username>
>           <username>mypassword</username>
>           <password/>
>           <digest/>
>           <sequence>0</sequence>
>           <token>A1B2C3D4</token>
>           <resource/>
>         </query>
>       </iq>

Here's your problem. The second IQ should be a set, not a get. You're
not authenticated, so you're not yet allowed to send anything, including
presence.

Rob.

--
Robert Norris                                       GPG: 1024D/FC18E6C2
Email+Jabber: rob at cataclysm.cx                Web: http://cataclysm.cx/

_______________________________________________
jdev mailing list
jdev at jabber.org
http://mailman.jabber.org/listinfo/jdev




More information about the JDev mailing list