PubSub : is there a way to distinguish between leafs and items

I'm trying to find a way to distinguish a leaf from an item.

The specification says (5.5) that in the response to a disco#items request, "the item MUST NOT possess a 'node' attribute", but in the source code I see that items have a node attribute for backward compatibility with pubsub v1.8.

Also, a disco#info request on an item says it's of leaf type: <identity category="pubsub" type="leaf" />

So is there a way to distinguish between a leaf and an item (using the "!" in the node would be a hack specific for eJabberd) ?

Thanks !

Seems not posible yet

According to Christophe Romain, this is not possible right now.

I've added a ticket about it: Allow distinguish between leafs and items.

more annoying than I thought

In fact, this is more annoying than I thought because it allows everybody to see the list of items published in a node, even if it's access model is "Authorize" or "Whitelist". People can't get the items, but know they exist and can see their id, which can be meaningful. It could be a security concern. Hope it will be fixed in a future version.

Ok, additional ticket for

Ok, additional ticket for that problem: Enforce Authorize and Whitelist when viewing items

Syndicate content