[ejabberd] Pubsub: item not found

Vincent Courcelle vincent.courcelle at gmail.com
Wed Jan 20 12:59:04 MSK 2010


Hi,



I’m quite new with XMPP, so please excuse me if this seems evident to you.
I’m really impress by the potential of XMPP, amazing!

I’m using ejabberd (of course!) because of its scalability (going to have
hundreds of thousands simultaneous users) and documentation J



I want to do a pubsub system where publishers are authenticated users (my
servers) and subscribers are anonymous (my users – browsing the website).
It’s typically for a realtime web application.



I’m using Strophe (JS) over BOSH right now to debug things an watch what’s
happening behind the scene (do you have a raw XMPP toolbox to recommend to
me? (under Windows) I’m looking for one, but can’t find anything good…)



Here are the channel creation stanzas (I don’t obscure anything as this
should not have any security problem and will be public):

SENT: <body rid='3030453428' xmlns='http://jabber.org/protocol/httpbind'
sid='8bf46ca38d7c85b1fde82f7d1b198df3dd412069'><iq from='
server at push.oopad.com/40920709061263979266308076' to='push.oopad.com'
type='set' id='2090:pubsubcreatenode' xmlns='jabber:client'><pubsub xmlns='
http://jabber.org/protocol/pubsub'><create
node='channel'/><configure/></pubsub></iq></body>



RECV: <body xmlns='http://jabber.org/protocol/httpbind'><iq
xmlns='jabber:client' from='push.oopad.com' to='
server at push.oopad.com/40920709061263979266308076' id='2090:pubsubcreatenode'
type='result'/></body>





The problem is when my anonymous account want to subscribe to the channel
(you can connect to the server anonymously yourself, it’s open – do I have
any security breach here? Anonymous users must only be able to listen) :

SENT: <body rid='1708834866' xmlns='http://jabber.org/protocol/httpbind'
sid='24b5d9771a1edca218cdf77404668aaf82a9329e'><iq from='
1661478084126398010876641 at push.oopad.com/10008815821263980108626620' to='
push.oopad.com' type='set' id='8680:subscribenode'
xmlns='jabber:client'><pubsub
xmlns='http://jabber.org/protocol/pubsub'><subscribe
node='channel' jid='
1661478084126398010876641 at push.oopad.com/10008815821263980108626620'/
></pubsub></iq></body>



RECV: <body xmlns='http://jabber.org/protocol/httpbind'><iq
xmlns='jabber:client' from='push.oopad.com' to='
1661478084126398010876641 at push.oopad.com/10008815821263980108626620'
id='8680:subscribenode' type='error'><error code='404'
type='cancel'><item-not-found
xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error><pubsub xmlns='
http://jabber.org/protocol/pubsub'><subscribe node='channel' jid='
1661478084126398010876641 at push.oopad.com/10008815821263980108626620'/
></pubsub></iq></body>





There is obviously something going bad here…

I’ve also tried with node in the form /home/push.oopad.com/channel but still
the same.



Thanks for your help J



Cordialement,
Vincent Courcelle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20100120/7952f605/attachment.html>


More information about the ejabberd mailing list