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

Badlop badlop at gmail.com
Thu Mar 17 13:35:28 MSK 2011


2011/3/17 Franky Orson <franky.orson at gmail.com>:
> 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.

> 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"}

> {function_clause,
> [{lists,flatten,[owner]},
> {ejabberd_xmlrpc,format_result,2},

The bug is in mod_muc_admin.
Apparently ejabberdctl and mod_rest could handle that bug.
This short change will fix it; I've committed that to its SVN.

--- src/mod_muc_admin.erl       (revisión: 1107)
+++ src/mod_muc_admin.erl       (copia de trabajo)
@@ -146,7 +146,7 @@
                                                 {affiliation, {tuple,

[{username, string},

{domain, string},
-
{affiliation, string},
+
{affiliation, atom},

{reason, string}
                                                                ]}}
                                                }}}


---
Badlop
ProcessOne


More information about the ejabberd mailing list