GNOME Bugzilla – Bug 343973
libsoup's xmlrpc fault handling is broken
Last modified: 2006-06-07 19:45:19 UTC
From what I can see there is a member in the SoupXmlrpcResponsePrivate structure for the fault to be set, but this is never actually assigned in the function soup_xmlrpc_response_from_string(). Also, there is no public method to check to see if a fault has occurred. Since the soup_xmlrpc_response_from_string() function points the "value" member regardless of whether the response returned <params> or <fault>, we need a way to determine if there was a fault. untested patch follows.
Created attachment 66806 [details] [review] untested patch (it compiles) Does three things. 1) Assigns the "fault" member of the SoupXmlrpcResponsePriv structure to the local variable's value in soup_xmlrpc_response_from_string() 2) Provide a public function to access the priv->value member called soup_xmlrpc_response_is_fault() 3) Provide a prototype for the new function in soup-xmlrpc-response.h
This patch is needed for Bug-Buddy XML-RPC bug submission. We want to include the XML-RPC Bug-Buddy in 2.15.3 (12th). Appreciate if this could be added + new libsoup be released.
Committed. I'll probably wait until Monday to put out the new release, in case any other bugfixes come in between now and then.