[ejabberd] Help me diagnose this error when registering over xmlrpc

Badlop badlop at gmail.com
Fri May 20 12:25:30 MSD 2011


2011/5/20 Eric Chamberlain <eric at ringfree.com>:
>
> If the xmlrpc register request user values match, could the problem be with the CentOS erlang-xmlrpc package?
>
> Installed Packages
> Name       : erlang-xmlrpc
> Arch       : i386
> Version    : 1.13
> Release    : 2.el5
> Size       : 110 k
> Repo       : installed
> Summary    : HTTP 1.1 compliant XML-RPC library for Erlang
> URL        : http://github.com/rwbr/exmlrpc


As mentioned in
http://www.ejabberd.im/ejabberd_xmlrpc
I use this version of the library:
http://ejabberd.jabber.ru/files/contributions/xmlrpc-1.13-ipr2.tgz
which works great.

I've now tried with the version you mention, dowloaded from git.
It has a bug that breaks ejabberd start. I've fixed that [1],
and the same script that worked before, now produces:
=ERROR REPORT==== 20-May-2011::10:19:01 ===
{xmlrpc_http,162,
    {ejabberd_xmlrpc,handler,
        {'EXIT',
            {badarg,
                [{erlang,port_control,
                     [stringprep_port,2,
                      [1575,1604,1582,1576,1585,1575,1606,1610]]},


Summary: download and install the library that I mention.

[1] I'll report this fix to the library maintainer:
--- a/src/xmlrpc.erl
+++ b/src/xmlrpc.erl
@@ -195,7 +195,7 @@ start_link(IP, Port, MaxSessions, Timeout,
Handler, State) ->
     tcp_serv:start_link([Port, MaxSessions, OptionList, SessionHandler]).

 ip(all) -> [];
-ip(IP) when is_tuple(IP) -> {ip, IP}.
+ip(IP) when is_tuple(IP) -> [{ip, IP}].

 %% Exported: stop/1

---
Badlop
ProcesOne


More information about the ejabberd mailing list