Project

General

Profile

Bug #7953

XMLRPC produces an error when attempting to sync an empty section

Added by Jim Pingle over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
High
Category:
XmlRPC
Target version:
Start date:
10/16/2017
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.4.x
Affected Architecture:
All

Description

When attempting to sync an empty section (e.g. VIPs are set to sync, but no VIPs are defined), the following error is produced:

Oct 16 15:52:33     php-fpm     305     /rc.filter_synchronize: Beginning XMLRPC sync data to https://172.16.1.3:443/xmlrpc.php.
Oct 16 15:52:33     php-fpm     305     /rc.filter_synchronize: Exception calling XMLRPC method restore_config_section # Impossible to encode value '' from type 'NULL'. No analogous type in XML_RPC.
Oct 16 15:52:33     php-fpm     305     /rc.filter_synchronize: New alert found: Exception calling XMLRPC method restore_config_section # Impossible to encode value '' from type 'NULL'. No analogous type in XML_RPC.

Associated revisions

Revision 73ee3d78 (diff)
Added by Renato Botelho over 1 year ago

Fix #7953: Make sure NULL values are not passed to XMLRPC functions

Revision 2a781563 (diff)
Added by Renato Botelho over 1 year ago

Fix #7953: Make sure a proper empty array is returned instead of NULL

History

#1 Updated by Renato Botelho over 1 year ago

  • Status changed from Confirmed to Feedback
  • % Done changed from 0 to 100

Fix pushed

#2 Updated by Jim Pingle over 1 year ago

  • Status changed from Feedback to Assigned

The XMLRPC error is gone but the affected section does not sync when empty.

You can never delete the last virtual IP from the secondary in this way, for example. The VIP list on the primary is empty but the last item is not removed from the secondary.

#3 Updated by Renato Botelho over 1 year ago

  • Status changed from Assigned to Feedback

#4 Updated by Jim Pingle over 1 year ago

  • Status changed from Feedback to Resolved

Works now, the last item delete gets synchronized as expected.

Also available in: Atom PDF