On Mon Apr 20 10:00:33 2009, Vincent BARAT wrote:
It appears that the specification of the handling of the
send_last_published_items / on_sub_and_presence option (default
option) on PEP nodes is not clear: people understand it in
different ways.
Coincidentally, I noticed this the other day while testing some PEP
edge cases in our server, too.
When a user become available, should he receive the last items
published on all PEP nodes belonging to ALL of his contacts
(provided he asked for them through his caps) or should he receive
the last items published on all PEP nodes belonging to his
CURRENTLY ONLINE contacts only?
There's also a related issue. Gajim, at least, ignores PEP events for
offline contacts. Foolish Gajim, because if the answer is "ALL", then
it won't get a new event when the contact comes online - unless,
mind, a contact coming online itself causes a rebroadcast of the last
event. So, should a last_published rebroadcast happen when a resource
for an account comes online, and (optionally) this is the only such
resource?
FWIW, I looked through XEP-0060 section 9, and concluded that the
correct behaviour appears to be:
a) ALL contacts have a PEP service, which will send out last
published events, whether or not the owner of that service is online
or not.
b) There is no mention of any resending of last events for when the
owner comes online.
However, Gajim (at least, and possibly other clients) appear to rely
on different behaviour.
Dave.
--
Dave Cridland - mailto:[email protected] - xmpp:[email protected]
- acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
- http://dave.cridland.net/
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade