[JDEV] jabber:iq:roster question

Nickolai Kussovski nike at webmessenger.bg
Mon Jan 3 08:45:01 CST 2000


Hi,
I have some problems with the server. Consider the already described
situation.
> USER A and USER B just met, and want to add eachother to their roster. to
> simplify things, USER A's jid will be 'A' and USER B's jid will be 'B':
>
and both A and B have empty rosters.
> USER A adds USER B to his roster by sending this:
> <iq type='set'><query xmlns='jabber:iq:roster'><item name='some guy'
> jid='B'/></query></iq>
>
> and the server responds with:
> <iq type='result'><query xmlns='jabber:iq:roster/></iq>
>
> USER A also takes the opportunity to subscribe to USER B's presence, and
> sends this:
> <presence to='B' type='subscribe'/>
>
> The server will send back a roster push, indicating that the ask field is
> now changed:
> <iq type='set'><query xmlns:iq:roster><item name="some guy" jid = 'B'
> ask='subscribe'/></query></iq>
>
so far everything is OK, but B does not receive the following:

> at this point, user B recieves this notification with the following from
> his/her server:
> <presence from='A' type='subscribe'/>
>

instead when he/she gets the roster the latter contains an empty item for A
/if A has requested <presence from='A' type='subscribe'/> more than once,
B's roster contains <item jid='A' subscription='none'> <subscribe/>^N
</item>
where N is the number of <presence to='B' type='subscribe'/> -1

So my question is when B receives <presence from='A' type='subscribe'/>
and is this a problem with the server, or my fault?






More information about the JDev mailing list