Cannot disable shield when creating site using admin_add_site.

Description

Hi, I am using soap apis on node backend to connect with apiscp, sending xml to apiscp via rest, When creating site with admin_add_site, i am facing issue with shield property.
Cannot disable shield via SOAP API when creating/editing a site. Shield remains enabled regardless of the value sent.

Steps to Reproduce

  1. Send SOAP request to admin_add_site with shield.enabled = 0
  2. After site creation, send SOAP request to admin_edit_site with shield.enabled = 0
  3. Check site in apiscp panel - shield is still enabled

Expected Behavior

Shield should be disabled for the site.

Actual Behavior

Shield remains enabled.

Environment

ApisCP version: 3.2.0-a167cef15 (Latest)

Additional Information

Tested with multiple XML formats:

  • <value xsi:type="xsd:boolean">false</value>
  • <value xsi:type="xsd:boolean">0</value>
  • <value xsi:type="xsd:int">0</value>

None of them work. Other .enabled settings (ftp, ssh, ssl, logs, metrics) work correctly. Is shield.enabled supported via admin_edit_site, or is there a different API method to disable shield?

Thanks for the bug report. Zero values are correctly dispatched from the API to EditDomain call now.

1 Like