ejabberd - Comments for "[2.1.8] Publishing Forbidden on (...)protocol/nick" https://www.ejabberd.im/node/4980 en The client asks for the last https://www.ejabberd.im/node/4980#comment-57937 <p>The client asks for the last nickname, which seems to be working well.</p> <div class="codeblock"><code>&lt;iq type=&#039;get&#039;&gt;<br />&nbsp;&nbsp;&nbsp; &lt;pubsub xmlns=&#039;http://jabber.org/protocol/pubsub&#039;&gt;<br />&nbsp;&nbsp;&nbsp; &lt;items node=&#039;http://jabber.org/protocol/nick&#039; max_items=&#039;1&#039;/&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/pubsub&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/iq&gt;</code></div> <p>The server replies with the last nickname, which is empty if no nickname exists :</p> <div class="codeblock"><code>&lt;iq from=&#039;carriere.p@server&#039; to=&#039;carriere.p@server/ressource&#039; id=&#039;purplee9228bb7&#039; type=&#039;result&#039;&gt;<br /> &lt;pubsub xmlns=&#039;http://jabber.org/protocol/pubsub&#039;&gt;<br /> &lt;items node=&#039;http://jabber.org/protocol/nick&#039;&gt;<br /> &lt;item id=&#039;5259D99652540&#039;&gt;<br /> &lt;nick xmlns=&#039;http://jabber.org/protocol/nick&#039;&gt;My Last Nickname&lt;/nick&gt;<br /> &lt;/item&gt;<br /> &lt;/items&gt;<br /> &lt;/pubsub&gt;<br />&lt;/iq&gt;</code></div> <p>The user changes his or her nickname using Pidgin's interface and send it. The client sends the new nickname :</p> <div class="codeblock"><code>&lt;iq type=&#039;set&#039; id=&#039;purplee9228bb8&#039;&gt;<br /> &lt;pubsub xmlns=&#039;http://jabber.org/protocol/pubsub&#039;&gt;<br /> &lt;publish node=&#039;http://jabber.org/protocol/nick&#039;&gt;<br /> &lt;item&gt;<br /> &lt;nick xmlns=&#039;http://jabber.org/protocol/nick&#039;&gt;My New Nickname&lt;/nick&gt;<br /> &lt;/item&gt;<br /> &lt;/publish&gt;<br /> &lt;/pubsub&gt;<br />&lt;/iq&gt;</code></div> <p>When I tested 2.1.8, both on Windows Server 2003 and CentOS 6, those stanzas were working. The problem was that they weren't accepted on the server. Either by not sending a reply at all, or by sending the error I posted in the first post.</p> <p>As I said, we are currently working with the 2.1.6 version, but as soon as I can, I'll install 2.1.9 on a test server and run some tests.</p> <p>Thank you for your time!</p> Tue, 18 Oct 2011 17:40:00 +0000 carriere.p comment 57937 at https://www.ejabberd.im Hi. It would be easier to https://www.ejabberd.im/node/4980#comment-57928 <p>Hi. It would be easier to reproduce the problem, if you showed what exact stanzas you send to set the nickname, and get it.</p> <p>Also, if you are only interested in setting and asking nicknames, maybe you don't need pubsub: you can store nickname in vcards.</p> Fri, 14 Oct 2011 09:34:23 +0000 mfoss comment 57928 at https://www.ejabberd.im