[JDEV] jabber:iq:last Bug in version 1.4.2. for Windows?
Geir Ove Skjærvik
geiroves at online.no
Wed May 14 17:19:58 CDT 2003
Hello,
I am new to this list, so sorry if this has been discussed before.
>From http://www.jabber.org/ietf/draft-ietf-xmpp-im-11.html#def-last I read:
The server MUST maintain a record of the time at which a user became
unavailable (whether gracefully or ungracefully). An authorized subscriber
to that user's presence MAY request the time of last activity by sending an
IQ stanza to the user's bare JID (user at domain) containing an empty <query/>
element scoped by the 'jabber:iq:last' namespace:
Requesting the last active time of a user:
<iq type='get' to='user at domain'> // Note no resource !!
<query xmlns='jabber:iq:last'/>
</iq>
<snip>...the server SHOULD return an IQ stanza of type "result" with the
number of seconds since the user was last active (if the user is online and
available, the 'seconds' attribute should be set to a value of "0", i.e.,
zero):
The issue is, that if I use a "bare JID" (no resource), 1.4.2 always returns
the LAST disconnect time, wheter the Client is online and availble (with
subscription both) or not.
However, if I send the request to the specific resource:
<iq type='get' to='user at domain/resource'> //WITH resource it works ok!!
<query xmlns='jabber:iq:last'/>
</iq>
then it works as described!
Questions:
a) Is this bug reported? If not, where to report it?
b) Is there a buglist?
c) Any workaround for this? (don't want to use the resource, but to check if
user is online)
Geir Ove
Norway.
More information about the JDev
mailing list