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

Franky Orson franky.orson at gmail.com
Fri Mar 18 14:45:40 MSK 2011


Badlop,

I applied the change you submitted, reloaded and unfortunately the problem
is still there - I checked twice.

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

=INFO REPORT==== 2011-03-18 11:41:24 ===
D(<0.25909.9>:ejabberd_commands:314) : Executing command
mod_muc_admin:get_room_affiliations with Args=["blah",

"conference.mychatserver.com"]

=ERROR REPORT==== 2011-03-18 11:41:24 ===
{xmlrpc_http,153,
    {ejabberd_xmlrpc,handler,
        {'EXIT',
            {function_clause,
                [{lists,flatten,[owner]},
                 {ejabberd_xmlrpc,format_result,2},
                 {lists,map,2},
                 {lists,map,2},
                 {ejabberd_xmlrpc,format_result,2},
                 {lists,map,2},
                 {ejabberd_xmlrpc,format_result,2},
                 {ejabberd_xmlrpc,do_command,6}]}}}}

On Thu, Mar 17, 2011 at 3:35 AM, Badlop <badlop at gmail.com> wrote:

> 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
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20110318/c32aa818/attachment.html>


More information about the ejabberd mailing list