ejabberd - Comments for "PubSub / Su Smack - Cant create PubSub Node / invalid conf... Please"
https://www.ejabberd.im/node/3380
enThanks
https://www.ejabberd.im/node/3380#comment-53994
<p>Thanks for the quick answer, helped me a lot!!!<br />
:D</p>
Thu, 05 Feb 2009 12:10:34 +0000Pilgercomment 53994 at https://www.ejabberd.imTwo small errors in your stanza to create node
https://www.ejabberd.im/node/3380#comment-53992
<p>Your stanza has two problems:</p>
<ol>
<li>The user "admin@forth-laptop" can only create nodes in "/home/forth-laptop/admin/*" . Check <noindex><a href="/mod_pubsub-usage" rel="nofollow" >How to use ejabberd's pubsub module</a></noindex>
</li><li>ejabberd 2.0.3 implements XEP-0060 v1.12. It requires that a stanza for node creation includes 'create' element, and also 'configure' element. Probably you got confused by <noindex><a href="http://xmpp.org/extensions/xep-0060.html#example-113" rel="nofollow" >Example 113</a></noindex>, that shows node creation without 'configure'. I'll report this mistake in the document.
</li></ol>
<p>This is wrong (needs to fix 1 and 2):</p>
<div class="codeblock"><code><iq to="pubsub.forth-laptop" from="admin@forth-laptop" type="set"><br /> <pubsub xmlns="http://jabber.org/protocol/pubsub"><br /> <create node='/home/forth/forth-laptop/pubsub'/><br /> </pubsub><br /></iq></code></div>
<p>This is wrong (needs to fix 1):</p>
<div class="codeblock"><code><iq to="pubsub.forth-laptop" from="admin@forth-laptop" type="set"><br /> <pubsub xmlns="http://jabber.org/protocol/pubsub"><br /> <create node='/home/forth/forth-laptop/pubsub'/><br /> <configure/><br /> </pubsub><br /></iq></code></div>
<p>This is wrong (needs to fix 2):</p>
<div class="codeblock"><code><iq to="pubsub.forth-laptop" from="admin@forth-laptop" type="set"><br /> <pubsub xmlns="http://jabber.org/protocol/pubsub"><br /> <create node='/home/forth-laptop/admin'/><br /> </pubsub><br /></iq></code></div>
<p>Finally, this is correct :D</p>
<div class="codeblock"><code><iq to="pubsub.forth-laptop" from="admin@forth-laptop" type="set"><br /> <pubsub xmlns="http://jabber.org/protocol/pubsub"><br /> <create node='/home/forth-laptop/admin'/><br /> <configure/><br /> </pubsub><br /></iq></code></div>
Wed, 04 Feb 2009 16:18:49 +0000mfosscomment 53992 at https://www.ejabberd.im