All pastes #475273 Raw Edit

ptlo

public text v1 · immutable
·published 2007-05-07 10:51 UTC
rendered paste body
1. We create a new roster item for the contact:

SEND:
-----------------------------------
<iq type="set" id="msg_144132cc_1a432003_242"> <query gr:include="all" gr:ext="2" xmlns:gr="google:roster" xmlns="jabber:iq:roster"> <item jid="senko.rasic@gmail.com"></item>
</query>
</iq>


2. Server informs us that the item is created:

RECV [205]:
-----------------------------------
'<iq to="ptloxx@gmail.com/TelepathyF1ADC7A3" id="546DFD52" type="set"><query gr:ext="2" xmlns="jabber:iq:roster" xmlns:gr="google:roster"><item jid="senko.rasic@gmail.com" subscription="none"/></query></iq>'


3. We acknowledge the item creation response

SEND:
-----------------------------------
<iq type="result" id="546DFD52"></iq>


4. Server acknowledges our item creation request.

RECV [90]:
-----------------------------------
'<iq to="ptloxx@gmail.com/TelepathyF1ADC7A3" id="msg_144132cc_1a432003_242" type="result"/>'


5. We can now request presence subscription to contact

SEND:
-----------------------------------
<presence type="subscribe" to="senko.rasic@gmail.com" id="msg_144132cc_1a432003_244"> <nick xmlns="http://jabber.org/protocol/nick">Senko &quot;Ptlo&quot; Ra?i?</nick>
</presence>


6. Server informs us that the presence subscription is none+pending

RECV [221]:
-----------------------------------
'<iq to="ptloxx@gmail.com/TelepathyF1ADC7A3" id="546DFD58" type="set"><query gr:ext="2" xmlns="jabber:iq:roster" xmlns:gr="google:roster"><item jid="senko.rasic@gmail.com" subscription="none" ask="subscribe"/></query></iq>'


7. We acknowledge (6)

SEND:
-----------------------------------
<iq type="result" id="546DFD58"></iq>


8. Server informs us that the subscription is none. Why has this happened?
Gabble detects 'pending'->'none' transition as "subscription rejected".

RECV [205]:
-----------------------------------
'<iq to="ptloxx@gmail.com/TelepathyF1ADC7A3" id="546DFD59" type="set"><query gr:ext="2" xmlns="jabber:iq:roster" xmlns:gr="google:roster"><item jid="senko.rasic@gmail.com" subscription="none"/></query></iq>'


9. We acknowledge (8)

SEND:
-----------------------------------
<iq type="result" id="546DFD59"></iq>


10. Server informs us that the subscription is none+pending after all (wtf?)

RECV [221]:
-----------------------------------
'<iq to="ptloxx@gmail.com/TelepathyF1ADC7A3" id="546DFD5C" type="set"><query gr:ext="2" xmlns="jabber:iq:roster" xmlns:gr="google:roster"><item jid="senko.rasic@gmail.com" subscription="none" ask="subscribe"/></query></iq>'

11. We acknowledge (10)

SEND:
-----------------------------------
<iq type="result" id="546DFD5C"></iq>