ejabberd - Comments for "eJbberd v2.1.5: pub-sub retract item: notification do not work" https://www.ejabberd.im/node/4323 en You are right, the newer https://www.ejabberd.im/node/4323#comment-56706 <p>You are right, the newer changes to pubsub in 2.1 introduced this, it is not the correct behavior in this case.<br /> We have opened a bug for it, you can track it here</p> <p><noindex><a href="https://support.process-one.net/browse/EJAB-1316" title="https://support.process-one.net/browse/EJAB-1316" rel="nofollow" >https://support.process-one.net/browse/EJAB-1316</a></noindex></p> <p>thanks!</p> Tue, 05 Oct 2010 19:25:49 +0000 ppolv comment 56706 at https://www.ejabberd.im 'notify' attribute is useless? https://www.ejabberd.im/node/4323#comment-56689 <p>Why 'notify' attribute is useless for item retract?<br /> This violates <strong>XEP-0060</strong>, which paragraph <strong><noindex><a href="http://xmpp.org/extensions/xep-0060.html#publisher-delete-success-notify" rel="nofollow" >7.2.2.1 Delete And Notify</a></noindex></strong> says that if 'notify' attribute with value 'true' or '1' present,<br /> <blockquote>the service MUST delete the item and MUST notify all subscribers</blockquote></p> <p>!<br /> And that paragraph precedes paragraph <strong>8.2 Configure a Node</strong>, which says about 'pubsub#notify_retract' feature. So, notify='1' MUST work regardless of 'pubsub#notify_retract' configuration setting.</p> Thu, 30 Sep 2010 15:25:45 +0000 Real_Yagiza comment 56689 at https://www.ejabberd.im PEP item deletion notification https://www.ejabberd.im/node/4323#comment-56688 <p>To be able to retract an item, the node has to be configured with persistent items and notification of items deletion :</p> <div class="codeblock"><code>&lt;iq type=&#039;set&#039; id=&#039;config2&#039;&gt;<br /> &lt;pubsub xmlns=&#039;http://jabber.org/protocol/pubsub#owner&#039;&gt;<br />&nbsp; &lt;configure node=&#039;http://jabber.org/protocol/mood&#039;&gt;<br />&nbsp;&nbsp; &lt;x xmlns=&#039;jabber:x:data&#039; type=&#039;submit&#039;&gt;<br />&nbsp;&nbsp;&nbsp; &lt;field var=&#039;FORM_TYPE&#039; type=&#039;hidden&#039;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp; &lt;value&gt;http://jabber.org/protocol/pubsub#node_config&lt;/value&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/field&gt;<br />&nbsp;&nbsp;&nbsp; &lt;field type=&quot;boolean&quot; var=&quot;pubsub#persist_items&quot; &gt;<br />&nbsp;&nbsp;&nbsp;&nbsp; &lt;value&gt;1&lt;/value&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/field&gt;<br />&nbsp;&nbsp;&nbsp; &lt;field type=&quot;text-single&quot; var=&quot;pubsub#max_items&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp; &lt;value&gt;10&lt;/value&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/field&gt;<br />&nbsp;&nbsp;&nbsp; &lt;field type=&quot;boolean&quot; var=&quot;pubsub#notify_retract&quot; &gt;<br />&nbsp;&nbsp;&nbsp;&nbsp; &lt;value&gt;1&lt;/value&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/field&gt;<br />&nbsp;&nbsp; &lt;/x&gt;<br />&nbsp; &lt;/configure&gt;<br /> &lt;/pubsub&gt;<br />&lt;/iq&gt;</code></div> <p>By default, PEP nodes are not configured with persistent items and items deletion notification.</p> <p>And to retract an item, the 'notify' attribute is useless :</p> <div class="codeblock"><code>&lt;iq type=&#039;set&#039; id=&#039;retract1&#039;&gt;<br /> &lt;pubsub xmlns=&#039;http://jabber.org/protocol/pubsub&#039;&gt;<br />&nbsp; &lt;retract node=&#039;http://jabber.org/protocol/mood&#039;&gt;<br />&nbsp;&nbsp; &lt;item id=&#039;current&#039;/&gt;<br />&nbsp; &lt;/retract&gt;<br /> &lt;/pubsub&gt;<br />&lt;/iq&gt;</code></div> Thu, 30 Sep 2010 12:29:06 +0000 kael comment 56688 at https://www.ejabberd.im