Discovering Pubsub Node Metadata in Tigase
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' firstname.lastname@example.org/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="email@example.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' firstname.lastname@example.org/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="email@example.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.
Added by Andrzej Wójcik 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.