[ejabberd] Retrieving all the items from a pubsub Collection

jasper at clinct.nl jasper at clinct.nl
Mon Apr 4 12:48:38 MSD 2011


Hey all,

I'm using the pubsub-plug-in 'dag' to build up a hierarchy of collections and nodes in xmpp, but while subscriptions on collections result in receiving items from one of the underlying nodes, trying to manually retrieve the underlying items fails.

According to http://xmpp.org/extensions/xep-0248.html#retrieve-items, item retrieval should have the following behavior:
"When an entity requests items on a collection node the service SHOULD return the items on any leaf nodes associated with it subject to the access model of the collection node."

However, if I send the following stanza:

<iq type='get' from='123 at server/resource' to='pubsub.server.com' id='items1'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
    <items node='/home/server/user'/>
  </pubsub>
</iq>

=> Nothing is retrieved:

<iq xmlns='jabber:client' from='pubsub.server.com' to='123 at server/resource' id='items1' type='result'>
	<pubsub xmlns='http://jabber.org/protocol/pubsub'>
		<items node='/home/server/user'/>
	</pubsub>
</iq>

While:

<iq type='get' from='123 at server/resource' to='pubsub.server.com' id='items1'>
  <query xmlns='http://jabber.org/protocol/disco#items' node='/home/server/user'>
  </query>
</iq>

=> Retrieves only the collections directly under this collection:

<iq xmlns='jabber:client' from='pubsub.server.com' to='123 at server/resource' id='items1' type='result'>
	<query xmlns='http://jabber.org/protocol/disco#items' node='/home/server/user'>
		<item jid='pubsub.server.com' node='/home/server/user/collectionA'/>
		<item jid='pubsub.server.com' node='/home/server/user/collectionB'/>
		<item jid='pubsub.server.com' node='/home/server/user/collectionC'/>
		<item jid='pubsub.server.com' node='/home/server/user/collectionD'/>
	</query>
</iq>

Am I missing a config somewhere, or is this not implemented in eJabberd?

Thanks in Advance!

Jasper Hartong


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20110404/427e900a/attachment.html>


More information about the ejabberd mailing list