[JDEV] 1.4 BUG REPORT: 'ask' attribute missing in roster item

Robert Temple robert.temple at dig.com
Fri Feb 16 05:03:26 CST 2001


In the 1.2 server, I could count on the ask attribute of roster 
items being returned from the server.  But now in 1.4, the ask 
attribute only reliably comes back in the roster item when 
I send a presence subscription message to someone.

For example, say I have a item on my roster, "foo at org", and I
am currently in the ask="subscribe" state to that user.

If I send a message to change groups around like this:
<iq type="set">
 <query xmlns="jabber:iq:roster">
  <item jid="foo at org">
    <group>FooGroup</group>
  </item>
 </query>
</iq>

In 1.2 I would get back something like:
<iq type="set">
 <query xmlns="jabber:iq:roster" subscription="none" ask="subscribe">
  <item jid="foo at org">
    <group>FooGroup</group>
  </item>
 </query>
</iq>

But now in 1.4, I get back something like:
<iq type="set">
 <query xmlns="jabber:iq:roster">
  <item jid="foo at org" subscription="none">
    <group>FooGroup</group>
  </item>
 </query>
</iq>

I am counting on that "ask" attribute coming back consistently.
-Robert




More information about the JDev mailing list