[PubSub] Requesting items on a node without items

Peter Saint-Andre stpeter at stpeter.im
Thu Apr 16 14:43:44 CDT 2009


On 12/15/08 7:06 AM, Christophe Romain wrote:
> Hi
> 
> From http://xmpp.org/extensions/xep-0060.html#subscriber-retrieve-error
> There is no error case to handle nodes without items.
> 
> it's not clear to me if this is an error case or not. should the service
> reply en empty items list ?
> 
> note that item-not-found error is returned if the node does not exists.

Probably it makes sense to do what we do in disco: return an empty
element. Here I think that would be the <items/> element, like so:

<iq type='result'
    from='pubsub.shakespeare.lit'
    to='francisco at denmark.lit/barracks'
    id='items1'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
    <items node='princely_musings'/>
  </pubsub>
</iq>

Peter

-- 
Peter Saint-Andre
https://stpeter.im/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6751 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mail.jabber.org/pipermail/pubsub/attachments/20090416/7fe2356c/attachment-0001.bin 


More information about the PubSub mailing list