mod_pubsub and the 'purge' feature?

Hi All,

I am trying to 'purge' items from a pubsub node I created for a user in my ejabberd server. I am using xmpp4r ruby client to make this call. Everytime I try to do this I get:

Received XML on stream =

<iq 
  from='sarah_jelinek@re.clynetic.com' 
  type='set' 
  id='7637' 
  to='pubsub.re.clynetic.com'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
    <purge node='/home/re.clynetic.com/sarah_jelinek'/>
  </pubsub>
</iq>

That's my initial xml request.

The error I get is:

<iq 
  from='pubsub.re.clynetic.com' 
  to='sarah_jelinek@re.clynetic.com/2593853945123620322203055' 
  type='error' 
  xml:lang='en' 
  id='7637'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
    <purge node='/home/re.clynetic.com/sarah_jelinek'/>
  </pubsub>
  <error code='501' type='cancel'>
    <feature-not-implemented xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
  </error>
</iq>

I installed and configured the latest release of ejabberd, 2.0.3, thinking that maybe I had an older version that did not support this. When I look at the source in mod_pubsub.erl I see purge is implemented.

Any thoughts on what might be going wrong?

thanks,
sarah

Your IQ stanza is incorrect,

Your IQ stanza is incorrect, check the example in http://xmpp.org/extensions/xep-0060.html#owner-purge-request
You specify: xmlns='http://jabber.org/protocol/pubsub
It must be: xmlns='http://jabber.org/protocol/pubsub#owner'

Syndicate content