[Mono-list] RE: Question about XML-RPC.Net (CookComputing) (Matthias Kestenholz)

Cook, Charles (Charles) chcook at avaya.com
Sat Sep 3 06:53:13 EDT 2005


Hi Matthias - Wordpress is returning an XML-RPC int value for
mt_allow_comments instead of the expected boolean so your modified code
should be ok. The error you're then seeing looks like a Mono problem, on
the basis that the XML-RPC.NET assembly is verifiable and so type safe.
- Charles 


-----Original Message-----

Date: Fri, 02 Sep 2005 17:34:08 +0200
From: Matthias Kestenholz <lists at irregular.ch>
Subject: [Mono-list] Question about XML-RPC.Net (CookComputing)
To: mono-list at lists.ximian.com
Message-ID: <1125675248.4277.13.camel at atmosphere>
Content-Type: text/plain

Hi everyone,


I've been struggling with a bug (?) either in the WordPress xmlrpc
server or the CookComputing XML-RPC library for .NET

I have put up a .zip archive[1] on my webhost to demonstrate the problem
I'm having; the password has been changed.


When I try to use metaWeblog.getRecentPosts I get the following error:

$ ./rpctest.exe
Unhandled Exception: CookComputing.XmlRpc.XmlRpcTypeMismatchException:
response contains int value where boolean expected [response : array
mapped to type Post[] : element 0 : struct mapped to type Post : member
mt_allow_comments mapped to type Boolean] [...]


Modifying MetaWeblogAPI.cs and recompiling doesn't really help:


$ diff MetaWeblogAPI-modified.cs MetaWeblogAPI.cs
49,51c49,51
<     public int mt_allow_comments;
<     public int mt_allow_pings;
<     public int mt_convert_breaks;
---
>     public bool mt_allow_comments;
>     public bool mt_allow_pings;
>     public bool mt_convert_breaks;


$ ./rpctest2.exe
*** glibc detected *** free(): invalid next size (fast): 0x084818d8 ***

The error happens somewhere inside the proxy.getRecentPosts(...) call.

The backtrace I get from gdb doesn't really help since I have no
debugging symbols (or I do not know how to find them; I am using mono
from Debian Unstable)

The only thing I see is that the backtrace is 1109 calls deep...



Thanks for any help or tips,
 - Matthias




[1]: http://test.irregular.ch/rpctest.zip

mk at atmosphere ~/Projects > unzip -l rpctest
Archive:  rpctest.zip
  Length     Date   Time    Name
 --------    ----   ----    ----
        0  09-02-05 17:22   rpctest/
     3440  09-02-05 17:08   rpctest/MetaWeblogAPI.cs
   106496  09-02-05 17:08   rpctest/CookComputing.XmlRpc.dll
      394  09-02-05 17:22   rpctest/rpctest.cs
      229  09-02-05 17:12   rpctest/Makefile
     3437  09-02-05 17:11   rpctest/MetaWeblogAPI-modified.cs
 --------                   -------
   113996                   6 files







More information about the Mono-list mailing list