[Standards-JIG] JEP 60: Resource Based Subscription problem

Chris Mullins chris.mullins at coversant.net
Mon May 23 03:31:28 UTC 2005


PubSub subscriptions can be from a particular resource, and this brings
up a question:

If user1 has a resource based subscription to a node, but is logged in
with a different resource, what is the behavior?

What we have today would be:
1 - Publisher published new data to the node
2 - Server looks up the subscriptions and finds "user at server/One"
3 - Server (following standard XMPP message processing rules) checks to
see if this resource is online. 
4 - The resource is not online, but the user is online with a different
resource ("Two") that has a positive presence priority.
5 - Server sends PubSub notification to user at server/Two.

>From the user perspective, this doesn't seem like what was intended. If
the user subscribed using a resource, does it make sense for the
notifications to go to a different place? 

The case for "user is not online at all" is equally non-obvious. 
1 - Publisher published new data to the node
2 - Server looks up the subscriptions and finds "user at server/One"
3 - Server (following standard XMPP message processing rules) checks to
see if this resource is online. 
4 - The resource is not online, and the user does not have any positive
priority resources logged in. 
5 - Server queues the message for offline delivery.
6 - User logs in later with "Two" and has a positive presence priority,
and gets the delayed notifications. 

(I sure wish we could disallow resource based subscriptions.)

-- 
Chris Mullins



More information about the Standards mailing list