On Wed, 2011-09-07 at 22:05 +0200, Alexander Holler wrote: > Hello, > > I think it should be defined what happens with subscriptions when > ownership is granted or removed (through 8.9.2 Modify Affiliation). > > I suggest the following changes: > > - Ownership is granted. > All subscriptions which are not for the bare JID (that means with > resource) will be removed. > A subscription for the bare JID is added (if not already existent). > > - Ownership is removed. > The subscripton for the bare JID is removed, which means the affected > entity won't have a subscription afterwards.
Hi! Why would you want this? Subscriptions and affiliations are intentionally orthogonal. One of the key aspects of the observer pattern, which is the basis of our pubsub protocol, is that there is a separation of concerns between publishers and subscribers. Publishers may only ever want to push stuff out and never subscribe, subscribers may never push. Some entities might do both. We also added the concept of 'owners'. Owners of nodes don't necessarily need (or want) to subscribe to their nodes. I certainly wouldn't want to have such side effects in my currently deployed pubsub applications. -- ralphm
