[JDEV] Presence bug in Jabber 0.9

Rick Graham rick at bitflash.com
Thu Apr 6 08:56:06 CDT 2000


This seems almost too obvious to mention, but in examples 1 and 5 below you have
not closed the presence tag, it seems likely that you just forgot, but you did
it twice.

Nickolai Kussovski wrote:

> Thanks,this worked.But I found something else that really sound like a bug:1.
> Let A and B have subscription of type both to each other2. Connect user A and
> send let's say    <presence>        <show>chat</show>    <presence>3. Connect
> user B with the same presence.4. User B receives    <presence from='A'>
> <show>chat</show>        <x xmlns='jabber:x:delay' from='A'
> stamp='20000406T15:42:50'/>    </presence>5. B tries to send:
> <presence>        <show>chat</show>    <presence>and here comes the problem: A
> doesn't receive anything.If A sends another presence to B, after that he is
> able to receive such presences from B.  > you should NEVER send a
> type='available' in <presence> tag. If u don't send
> > type attribute in <presence>, then it'll mean that you're available. If you
> > send any type attribute, then it'll mean you're unavailable (please note:
> > always send type='unavailable' for unavailable mode, although any string in
> > type attribute will work).
> >
> > It isn't required to send "<presence/>", if you're sending a <presence> tag
> > without type attribute. It's just for marking you 'available' in server.
> >
> > thanks,
> > Kerem HADIMLI
> >
> > Nickolai Kussovski wrote:
> > >
> > > Hi,
> > > I try to send some presence like:
> > >
> > > <presence type="available">
> > >      <show>chat</show>
> > > </presence>
> > >
> > > after the initial <presence/>
> > >
> > > The result is that I cannot see anybody's presences after that.
> > > Any idea?
> > >
> > > Thanks,
> > > Nike
> > >
> > > _______________________________________________
> > > jdev mailing list
> > > jdev at jabber.org
> > > http://mailman.jabber.org/listinfo/jdev
> >
> > --
> > If it happens once, it's a bug.
> > If it happens twice, it's a feature.
> > If it happens more than twice, it's a design philosophy.
> >
> > _______________________________________________
> > jdev mailing list
> > jdev at jabber.org
> > http://mailman.jabber.org/listinfo/jdev

--
Rick Graham, Senior Architect
BitFlash Inc., Ottawa, Canada.
rick at bitflash.com
http://www.bitflash.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20000406/10acb861/attachment-0002.htm>


More information about the JDev mailing list