[ejabberd] mod_pubsub doesn't accept external components stanzas

Kirk Bateman kirk.bateman at gmail.com
Fri Apr 16 23:31:29 MSD 2010


Ricardo,

By the way it is worth noting that in general I've found that ejabberd  
is normally more strict about standards and protocols (as you found  
with <stream>). So do check all the stanzas that your component is  
sending.

Cheers

Kirk (going to look at your logs again)

On 16 Apr 2010, at 20:25, Ricardo Otero dos Santos <oterosantos at gmail.com 
 > wrote:

> Hello
>
> Yes, I know that nodeA doesn't exist. But I should get that on my
> component, that is my problem!
>
> I've been playing with Psi and I get the correct reply from the  
> server.
>
> On Fri, Apr 16, 2010 at 8:11 PM, Kirk Bateman  
> <kirk.bateman at gmail.com> wrote:
>> Ricardo,
>>
>> Try using psi or something, and try playing with pubsub from a user  
>> jid
>> rather than from the component. I suspect the problem to be your  
>> mod_pubsub
>> configuration, a lot of issues are generally to do with the wrong  
>> node tree
>> type.
>>
>> From your logs it looks like nodeA doesn't exist.
>>
>> Cheers
>>
>> Kirk
>>
>> On 16 Apr 2010, at 19:07, Ricardo Otero dos Santos <oterosantos at gmail.com 
>> >
>> wrote:
>>
>>> Hi!
>>>
>>> I'm trying to interact with pubsub from an external component,  
>>> that is
>>> connected and working fine but apparently ejabberd can't route  
>>> replies
>>> to my component.
>>>
>>> Here's an example where I can't get the response from the server. I
>>> send this stanza:
>>>
>>> <iq from='profile.localhost' id='1312' to='pubsub.localhost'
>>> type='get' xmlns='jabber:component:accept'><query node='nodeA'
>>> xmlns='http://jabber.org/protocol/disco#info'/></iq>
>>>
>>> And on the debug log I get:
>>>
>>> (...)
>>>
>>> =INFO REPORT==== 2010-04-16 18:54:27 ===
>>> D(<0.1592.0>:ejabberd_router:301) : route
>>>   from {jid,[],"profile.localhost",[],[],"profile.localhost",[]}
>>>   to {jid,[],"pubsub.localhost",[],[],"pubsub.localhost",[]}
>>>   packet {xmlelement,"iq",
>>>                  [{"from","profile.localhost"},
>>>                   {"id","1312"},
>>>                   {"to","pubsub.localhost"},
>>>                   {"type","get"}],
>>>                  [{xmlelement,"query",
>>>                       [{"node","invalid_node"},
>>>                        {"xmlns","http://jabber.org/protocol/disco#info 
>>> "}],
>>>                       []}]}
>>>
>>>
>>> =INFO REPORT==== 2010-04-16 18:54:27 ===
>>> D(<0.1530.0>:mod_pubsub:3625) : tree_call "pubsub.localhost"  
>>> get_node
>>> ["pubsub.localhost",
>>>
>>> <<"invalid_node">>]
>>>
>>> =INFO REPORT==== 2010-04-16 18:54:27 ===
>>> D(<0.1530.0>:ejabberd_router:301) : route
>>>   from {jid,[],"pubsub.localhost",[],[],"pubsub.localhost",[]}
>>>   to {jid,[],"profile.localhost",[],[],"profile.localhost",[]}
>>>   packet {xmlelement,"iq",
>>>                  [{"type","error"},
>>>                   {"to","profile.localhost"},
>>>                   {"from","pubsub.localhost"},
>>>                   {"id","1312"}],
>>>                  [{xmlelement,"query",
>>>                       [{"node","invalid_node"},
>>>                        {"xmlns","http://jabber.org/protocol/disco#info 
>>> "}],
>>>                       []},
>>>                   {xmlelement,"error",
>>>                       [{"code","404"},{"type","cancel"}],
>>>                       [{xmlelement,"item-not-found",
>>>
>>>  [{"xmlns","urn:ietf:params:xml:ns:xmpp-stanzas"}],
>>>                            []}]}]}
>>>
>>>
>>> So it seems like the packet is OK and well formed but is never sent!
>>>
>>> I can even interact with other components (I tested with 'vjud') and
>>> all goes well, but not with pubsub. Is mod_pubsub blocking access  
>>> from
>>> external components? How can I solve this? I'm using ejabberd 2.1.3.
>>>
>>> Thanks,
>>>
>>> -Ricardo
>>> _______________________________________________
>>> ejabberd mailing list
>>> ejabberd at jabber.ru
>>> http://lists.jabber.ru/mailman/listinfo/ejabberd
>>
>> _______________________________________________
>> ejabberd mailing list
>> ejabberd at jabber.ru
>> http://lists.jabber.ru/mailman/listinfo/ejabberd
>>
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd


More information about the ejabberd mailing list