[ejabberd] Pubsub: weirdness...

Xavier Maillard xavier at maillard.mobi
Mon Dec 29 02:36:54 MSK 2008


Hi,

I finally figured out how to make pubsub "working".

Now I have created nodes and published onto them.

Server answered correctly *but* none of the subscribers got the
notifications. I can see the message response hitting my client but
nothing happens on any of the numeral clients I checked (from gajim 0.12
to psi).

The other weird thing is that items are marked as "not found" like this
one:

<iq from="pubsub.maillard.mobi" type="error" xml:lang="en"
to="toto at maillard.mobi/mastodonte" id="abd5a" >
<query xmlns="http://jabber.org/protocol/disco#info"
node="/home/maillard.mobi/xavier/org/test!4CE7B5CE7DE22" />
<error type="cancel" code="404" >
<item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
</error>
</iq>

So why did the server tell OK to my publish request ? :


Here is a transcript of a session:

<iq type="set" to="pubsub.maillard.mobi" id="publish211">

<pubsub xmlns='http://jabber.org/protocol/pubsub'>

<publish node='/home/maillard.mobi/xavier/org'>

<item>

<entry xmlns='http://www.w3.org/2005/Atom'>

<title>Soliloquy</title>

<summary>

To be, or not to be: that is the question:

Whether 'tis nobler in the mind to suffer

The slings and arrows of outrageous fortune,

Or to take arms against a sea of troubles,

And by opposing end them?

</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>

</publish>

</pubsub>

</iq>

<iq from="pubsub.maillard.mobi" type="result"
to="toto at maillard.mobi/mastodonte" id="publish211" />

<message from="pubsub.maillard.mobi" to="toto at maillard.mobi" >

<event xmlns="http://jabber.org/protocol/pubsub#event">

<items node="/home/maillard.mobi/xavier/org" >

<item id="4CE7B9178C7EF" >

<entry xmlns="http://www.w3.org/2005/Atom">

<title>Soliloquy</title>

<summary>

To be, or not to be: that is the question:

Whether 'tis nobler in the mind to suffer

The slings and arrows of outrageous fortune,

Or to take arms against a sea of troubles,

And by opposing end them?

</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>

</event>

</message>


<iq type="get" to="pubsub.maillard.mobi" id="abafa" >

<query xmlns="http://jabber.org/protocol/disco#info"
node="/home/maillard.mobi/xavier/org" />

</iq>

<iq from="pubsub.maillard.mobi" type="result"
to="toto at maillard.mobi/mastodonte" id="abaea" >

<query xmlns="http://jabber.org/protocol/disco#items"
node="/home/maillard.mobi/xavier/org" >

<item node="/home/maillard.mobi/xavier/org/test" name="test"
jid="pubsub.maillard.mobi" />

<item node="/home/maillard.mobi/xavier/org!4CE7AF496CBA"
name="4CE7AF496CBA" jid="pubsub.maillard.mobi" />

<item node="/home/maillard.mobi/xavier/org!4CE7B489C8569"
name="4CE7B489C8569" jid="pubsub.maillard.mobi" />

<item node="/home/maillard.mobi/xavier/org!4CE7B73C9DB13"
name="4CE7B73C9DB13" jid="pubsub.maillard.mobi" />

<item node="/home/maillard.mobi/xavier/org!4CE7B863B0BCC"
name="4CE7B863B0BCC" jid="pubsub.maillard.mobi" />

<item node="/home/maillard.mobi/xavier/org!4CE7B9178C7EF"
name="4CE7B9178C7EF" jid="pubsub.maillard.mobi" />

</query>

</iq>

<iq type="get" to="pubsub.maillard.mobi" id="abb0a" >

<query xmlns="http://jabber.org/protocol/disco#info"
node="/home/maillard.mobi/xavier/org!4CE7B9178C7EF" />

</iq>

<iq type="get" to="pubsub.maillard.mobi" id="abb1a" >

<query xmlns="http://jabber.org/protocol/disco#items"
node="/home/maillard.mobi/xavier/org!4CE7B9178C7EF" />

</iq>

<iq from="pubsub.maillard.mobi" type="result"
to="toto at maillard.mobi/mastodonte" id="abafa" >

<query xmlns="http://jabber.org/protocol/disco#info"
node="/home/maillard.mobi/xavier/org" >

<identity category="pubsub" type="leaf" />

<identity category="pubsub" type="collection" />

<feature var="http://jabber.org/protocol/pubsub" />

<feature var="http://jabber.org/protocol/pubsub#access-open" />

<feature var="http://jabber.org/protocol/pubsub#access-presence" />

<feature var="http://jabber.org/protocol/pubsub#collections" />

<feature var="http://jabber.org/protocol/pubsub#config-node" />

<feature var="http://jabber.org/protocol/pubsub#create-and-configure" />

<feature var="http://jabber.org/protocol/pubsub#item-ids" />

<feature var="http://jabber.org/protocol/pubsub#last-published" />

<feature
var="http://jabber.org/protocol/pubsub#presence-notifications" />

<feature var="http://jabber.org/protocol/pubsub#presence-subscribe" />

<feature
var="http://jabber.org/protocol/pubsub#publisher-affiliation" />

<feature var="http://jabber.org/protocol/pubsub#retrieve-default" />

<feature var="http://jabber.org/protocol/pubsub#create-nodes" />

<feature var="http://jabber.org/protocol/pubsub#auto-create" />

<feature var="http://jabber.org/protocol/pubsub#delete-nodes" />

<feature var="http://jabber.org/protocol/pubsub#instant-nodes" />

<feature var="http://jabber.org/protocol/pubsub#manage-subscriptions" />

<feature var="http://jabber.org/protocol/pubsub#modify-affiliations" />

<feature var="http://jabber.org/protocol/pubsub#outcast-affiliation" />

<feature var="http://jabber.org/protocol/pubsub#persistent-items" />

<feature var="http://jabber.org/protocol/pubsub#publish" />

<feature var="http://jabber.org/protocol/pubsub#purge-nodes" />

<feature var="http://jabber.org/protocol/pubsub#retract-items" />

<feature
var="http://jabber.org/protocol/pubsub#retrieve-affiliations" />

<feature var="http://jabber.org/protocol/pubsub#retrieve-items" />

<feature
var="http://jabber.org/protocol/pubsub#retrieve-subscriptions" />

<feature var="http://jabber.org/protocol/pubsub#subscribe" />

<feature
var="http://jabber.org/protocol/pubsub#subscription-notifications" />

</query>

</iq>

<iq from="pubsub.maillard.mobi" type="error" xml:lang="en"
to="toto at maillard.mobi/mastodonte" id="abb0a" >

<query xmlns="http://jabber.org/protocol/disco#info"
node="/home/maillard.mobi/xavier/org!4CE7B9178C7EF" />

<error type="cancel" code="404" >

<item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>

</error>

</iq>


Regards



More information about the ejabberd mailing list