Function _xmlrpc is not returning error code and description in case of receiving a faulty message back from the called xmlrpc server.

I've tested that in my system and found out that the following line of _xmlrpc:

if ($message->messagetype == 'fault') {
xmlrpc_error($message->faultcode, $message->faultstring);

needs to be replaced by

if ($message->messagetype == 'fault') {
xmlrpc_error($message->fault_code, $message->fault_string);

Hope this helps!

.L.

CommentFileSizeAuthor
#1 xmlrpc_7.patch604 byteschx
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chx’s picture

Assigned: Unassigned » chx
Status: Active » Reviewed & tested by the community
FileSize
604 bytes
Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD, DRUPAL-4-5 and DRUPAL-4-6. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)