GoldenTao

+Clients
  • Content count

    5
  • Joined

  • Last visited


GoldenTao's Activity

  1. GoldenTao added a comment: XML-RPC interface doesn't appear to deserialize arrays properly   

    Will try with 3.4 and report back.
  2. GoldenTao added a record in IP.Board   

    XML-RPC interface doesn't appear to deserialize arrays properly
    We are having issues passing basic string arrays through the XML-RPC interface provided by IPB. Specifically, we are passing data that looks like so:
     


     [code=auto:0] <?xml version="1.0" encoding="UTF-8"?> <methodCall><methodName>testMethod</methodName><params><param><value><struct><member><name>max_players</name><value><i4>4</i4></value></member><member><name>game_type</name><value>Walls</value></member><member><name>alive_players</name><value><array><data><value>GoldenTao</value></data></array></value></member><member><name>status</name><value>Waiting for players</value></member><member><name>location</name><value>US</value></member><member><name>api_key</name><value>123456</value></member><member><name>players</name><value><i4>1</i4></value></member><member><name>map</name><value>The Walls 2</value></member><member><name>spectators</name><value><array><data/></array></value></member><member><name>server</name><value>dev.punchingblocks.com</value></member><member><name>api_module</name><value>ipb</value></member></struct></value></param></params></methodCall>[/code]
     
     
    This is generated via Apache XML-RPC and is per specifications. We haven't had an issue with IPB until we introduced the array type. For example, this snippet...
     
     [code=auto:0] <member><name>alive_players</name><value><array><data><value>GoldenTao</value></data></array></value></member>[/code]
     
    ... gets translated to:
     
     [code=auto:0] array (   'name' => 'alive_players',   'value' =>   array ( 'array' => array (    'data' => '', ),   ),[/code]
     
    In [font=courier, monospace]\interface\board\modules\ipb\methods.php[/font], we have this parameter typed as an "array", although we tried both "string" and "array" to no avail.
     
    • 0 replies
    • 0 views

About Me

Status Feed