Not sure if this is the correct forum to ask about this, I'm new the these forums, just started playing around with ejabberd within the last few weeks, experimenting with pubsub stuff and interfacing with an ejabberd server via the su-smack java client library.
Anyways, here's my question: If I'm sending a pubsub request to list the published items for a particular node, I'm getting the following xml messages being sent to/from ejabberd, respectively:
<iq id="EPqEt-4" to="pubsub.mylocalserver" type="get">
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<items node="/home/mylocalserver/admin/collection/leaf"/>
</pubsub>
</iq>
<iq from='pubsub.mylocalserver' to='me@mylocalserver/Smack' id='EPqEt-4' type='result'>
<pubsub xmlns='http://jabber.org/protocol/pubsub#event'>
<items node='/home/mylocalserver/admin/collection/leaf'>
<item id='ae890ac52d0df67ed7cfdf51b644e901'>
<test/>
</item>
</items>
</pubsub>
</iq>
Now, why does the xmlns attribute on the pubsub element in the response have the #event suffix? From what I can tell of the <event xmlns="http://jabber.org/protocol/pubsub#event">...</event>
), and not for pubsub elements.
Is this a bug? Or it is functioning correctly?
I'm running v2.0.0 of the ejabberd server.
I'm asking because this impacts the IQProvider setup on the client side.
shadowfury wrote: Is this a
Is this a bug? Or it is functioning correctly?
It is a bug, thanks for reporting!
The bug report is tracked here:Incorrect xmlns on Requesting All Items
i created a node and
i created a node and published to it, then sending the get items iq
server returns with correct xmlns
<iq id="test" to="pubsub.localhost" type="get">
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<items node="/home/localhost/user1"/>
</pubsub>
</iq>
<iq from="pubsub.localhost" type="result" to="user1@localhost/MacBook" id="test" >
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<items node="/home/localhost/user1" >
<item id="ae890ac52d0df67ed7cfdf51b644e901" >
<entry xmlns="http://www.w3.org/2005/Atom">
<title>pep</title>
<summary>Message</summary>
<link rel="alternate" type="text/html" href="http://denmark.lit/2003/12/13/atom03" />
<id>tag:denmark.lit,2003:entry-32397</id>
<published>2003-12-13T18:30:02Z</published>
<updated>2003-12-13T18:30:02Z</updated>
</entry>
</item>
</items>
</pubsub>
</iq>
in which context are you exactly running ?
can you past the complete sequence ?