Project

General

Profile

Discovering Pubsub Node Metadata in Tigase

Hamid Alimohammadi
Added about 3 years ago

Hi,

Our client development team are examining the Pubsub in a Tigase-b3821 test server.

They created a test Node h1_pubsub_node

<iq type='set'
from='user1@test.com/Pars-PC002'
    to='pubsub.test.com'
    id='create1'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
    <create node='h1_pubsub_node'/>
  </pubsub>
</iq>

And the following response was received from the server:

<iq from="pubsub.test.com" type="result" id="create1" to="user1@test.com/Pars-PC002">
<text>Created in 131 ms</text>
</iq>

In order to "Discover Node Metadata", the following Stanza is sent to the server:

<iq type='get'
from='user1@test.com/Pars-PC002'
    to='pubsub.test.com'
    id='meta1'>
  <query xmlns='http://jabber.org/protocol/disco#info'
         node='h1_pubsub_node'/>
</iq>

The Server responds with the following information:

<iq from="pubsub.test.com" type="result" id="meta1" to="user1@test.com/Pars-PC002">
<query xmlns="http://jabber.org/protocol/disco#info">
<identity category="pubsub" type="leaf"/>
<feature var="http://jabber.org/protocol/pubsub"/>
<x xmlns="jabber:x:data" type="result">
<field type="hidden" var="FORM_TYPE">
<value>http://jabber.org/protocol/pubsub#meta-data</value>
</field>
<field type="text-single" label="A short name for the node" var="pubsub#title">
<value/>
</field>
</x>
</query>
</iq>

Actually they expect to receive more information from the server similar to http://www.xmpp.org/extensions/xep-0060.html#entity-metadata

But some information like "creator" are missed.

Do you know why some fields are missing?

I appreciate for any hint.


Replies (4)

(1)

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam about 3 years ago

XEP-0060 which describes PubSub protocol states that service discovery may include detailed meta data of a node.

So if there would be no meta data at all it also would be correct, however XEP-0060 also states that discovery should include full configuration and automatic informations is meta data is provided.

Due to this fact and missing metadata informations in returned discovery I created task #3948 to fix this issue.

Added by Hamid Alimohammadi about 3 years ago

Thank you Andrzej for the reply.

Added by Hamid Alimohammadi almost 3 years ago

Hi Andrrzej,

May I ask if the metadata option "Number of subscribers" has been included in the Tigase version tigase-server-7.0.4-b3844?

Thank you in advance

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam almost 3 years ago

Task #3948 in which changes were made is part of Tigase XMPP Server 7.1.0 released on which we work and should released it soon.

Tigase XMPP Server 7.0.4 is a bugfix release for Tigase XMPP Server 7.0.x releases.

    (1-4/4)