Hello,

I have a small question. In the XEP-0060, one can read in section 5.3:
> 
> Note: If a node has an identity type of "leaf", then it MUST NOT
> contain other nodes or collections (only items); if a node has an
> identity type of "collection", then it MUST NOT contain items (only
> other nodes or collections).
> 

So a node cannot be both a leaf and a collection. Yet I discovered a
case in ejabberd (last version: 2.0.1) where a node is both. If I make a
query "disco#info" on this node, I get:


Code:
--------------------
    
  <iq from='<pubsub server>' to='<my jid>' id='nodes1'
  type='result'>
  <query xmlns='http://jabber.org/protocol/disco#info'
  node='<my node>'>
  <identity category='pubsub' type='leaf'/>
  <identity category='pubsub' type='collection'/>
  ...
  [a lot of features]
  ...
  </query>
  </iq>
  
--------------------


As one can see, there are 2 lines of "identity", one leaf and one
collection.

This is obviously a bug. I was going to report this, but then I was
wondering: what is the reason exactly of this? Why a node could not
contain both items and other nodes?
Thanks.

Jehan


-- 
Jehan
------------------------------------------------------------------------
Jehan's Profile: http://www.jabberforum.org/member.php?userid=16911
View this thread: http://www.jabberforum.org/showthread.php?t=311

Reply via email to