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

Eric Chamberlain eric at ringfree.com
Wed May 18 22:30:34 MSD 2011


Hello,

We use xmlrpc to register our users with ejabberd.  Today we had a new error in our logs and I'm hoping someone here can help us prevent it in the future.

Are we not registering non-ascii JID's correctly?

The JID that failed was a non-ascii JID.  I've included it below:

JID: الخبراني@rf.com

Here's what we sent to the ejabberd xmlrpc service:

<?xml version='1.0'>
<methodCall>
  <methodName>register</methodName>
  <params>
    <param>
      <value>
        <struct>
          <member>
            <name>password</name>
            <value><string>****</string></value>
          </member>
          <member>
            <name>user</name>
            <value><string>xmlrpc-bot</string></value>
          </member>
          <member>
            <name>server</name>
            <value><string>rf.com</string></value>
          </member>
        </struct>
      </value>
    </param>
    <param>
      <value>
        <struct>
          <member>
            <name>host</name>
            <value><string>rf.com</string></value>
          </member>
          <member>
            <name>password</name>
            <value><string>************</string></value>
          </member>
          <member>
            <name>user</name>
            <value><string>\xd8\xa7\xd9\x84\xd8\xae\xd8\xa8\xd8\xb1\xd8\xa7\xd9\x86\xd9\x8a</string></value>
          </member>
        </struct>
      </value>
    </param>
  </params>
</methodCall>

The ejabberd xmlrpc service returns a 500 error and here is what is in the ejabberd log:

=ERROR REPORT==== 2011-05-18 13:00:38 ===
{xmlrpc_http,153,
    {ejabberd_xmlrpc,handler,
        {'EXIT',
            {badarg,
                [{erlang,port_control,
                     [stringprep_port,2,
                      [1575,1604,1582,1576,1585,1575,1606,1610]]},
                 {stringprep,control,2},
                 {jlib,nodeprep,1},
                 {ejabberd_auth_internal,is_user_exists,2},
                 {ejabberd_auth,'-is_user_exists/2-fun-0-',3},
                 {lists,any,2},
                 {ejabberd_auth,try_register,3},
                 {ejabberd_admin,register,3}]}}}}

=WARNING REPORT==== 2011-05-18 13:00:38 ===
W(<0.25445.0>:ejabberd_xmlrpc:328) : Error -112
Unknown call: {call,'register.__repr__',[{struct,[]}]}

=WARNING REPORT==== 2011-05-18 13:00:38 ===
W(<0.25446.0>:ejabberd_xmlrpc:328) : Error -112
Unknown call: {call,'register.__repr__',[{struct,[]}]}

--
Eric Chamberlain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20110518/c19166fd/attachment.html>


More information about the ejabberd mailing list