[ejabberd] ejabberd_xmlrpc issue when executing mod_muc_admin:get_room_affiliations()

Franky Orson franky.orson at gmail.com
Thu Mar 17 06:29:35 MSK 2011


I posted this on the Ejabberd community site but it seems to be much less
active than this site so I am posting it here if that's ok.
I will link back to here on the other site for the solution of course.

I'm running Ejabberd 2.1.3 and one issue I have at the moment is when I try
to execute one particular "mod_muc_admin:get_room_affiliations()" operation
via ejabberd_xmlrpc - pretty much all of my other operation cmds work except
that one.

If I run the command via ejabberdctl, no problem at all and naturally the
same with mod_rest.

Note that mod_muc_admin:get_room_occupants() runs fine via ejabberd_xmlrpc.

% erl -pa '/usr/lib/ejabberd/ebin/'
Erlang R13B03 (erts-5.7.4) [source] [64-bit] [smp:8:8] [rq:8]
[async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.7.4 (abort with ^G)
1> xmlrpc:call({127, 0, 0, 1}, 4560, "/", {call, get_room_occupants,
[{struct, [{name, "blah"}, {service, "conference.mychatserver.com"}]}]}).
Bob at conference.mychatserver.com/Bob"}]},
2> xmlrpc:call({127, 0, 0, 1}, 4560, "/", {call, get_room_affiliations,
[{struct, [{name, "blah"}, {service, "conference.mychatserver.com"}]}]}).
{error,"HTTP/1.1 500 Internal Server Error\r\n"}

I did set extra logging and got this in ejabberd's log:

=INFO REPORT==== 2011-03-16 02:45:15 ===
D(<0.23353.6>:ejabberd_commands:314) : Executing command
mod_muc_admin:get_room_affiliations with Args=["blah",

=ERROR REPORT==== 2011-03-16 02:45:15 ===

My Ejabberd's config file does NOT have XMLRPC authentication turned on for
these tests:
{4560, ejabberd_xmlrpc, []},

Any idea?

Thanks in advance!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20110316/b9f13a85/attachment.html>

More information about the ejabberd mailing list