[JDEV] roster managment and the server

Keith Minkler kminkler at jabber.com
Thu Sep 14 14:18:02 CDT 2000


Robert..

This is the correct behavior..

Because you did not request your roster, (with the iq get), you will not recieve any part of your roster, even the roster pushes (the iq sets from the server).

however, an iq MUST return *something*, which is why you get the result only.

if you don't request the server, you are telling it that you don't want to see any roster items or roster pushes.. so this is what it should be doing, in this case.

Keith Minkler


On Thu, Sep 14, 2000 at 12:43:13AM -0700, Robert Temple wrote:
> The server responds inconsistenly to roster management and 
> presence subscription messages if a client has not ever 
> sent an iq to get the whole roster.  This isn't documented 
> anywhere and it cost me a lot of time trying to figure it 
> out.
> 
> Try it out, telnet to a server, login, but don't send a 
> <iq type="get"><query xmlns="jabber:iq:roster"...
> 
> Sending a:
> <iq type="set"><query xmlns="jabber:iq:roster"><item...
> makes the server responds with only a
> <iq type="result"...
> 
> But if a the whole roster was requested already, the server would have responded with a
> <iq type="set"><query xmlns="jabber:iq:roster">
> followed by a
> <iq type="result"...
> 
> If this is by design it really ought to be documented somewhere.
> 
> -Robert
> 
> ___________________________________________________
> GO.com Mail                                    
> Get Your Free, Private E-mail at http://mail.go.com
> 
> 
> 
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev




More information about the JDev mailing list