• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

API Bugs / Issues

abdi

Platinum Pleskian
Hello Team,

I think there is a bug in the API particularly this section:

http://download1.parallels.com/Plesk/Doc/de-DE/online/plesk-api-rpc/index.htm?fileName=33852.htm

Apparently the code below triggers the error (below):
Code:
<packetversion="1.6.3.5">
<customer>
<add>
   <gen_info>
       <cname>LogicSoft Ltd.</cname>
       <pname>Stephen Lowell</pname>
       <login>stevelow</login>
       <passwd>Jhtr66fBB</passwd>
       <status>0</status>
       <phone>416 907 9944</phone>
       <fax>928 752 3905</fax>
       <email>[email protected]</email>
       <address>105 Brisbane Road, Unit 2</address>
       <city>Toronto</city>
       <state/>
       <pcode/>
       <country>CA</country>
   </gen_info>
</add>
</customer>
</packet>

The above triggers the error

Code:
Array
(
    [@attributes] => Array
        (
            [version] => 1.6.3.5
        )

    [system] => Array
        (
            [status] => error
            [errcode] => 1014
            [errtext] => Parser error: Request is invalid. Error in line 7: Element 'cname': This element is not expected. Expected is one of ( status, phone, fax, email, address, city, state, pcode, country, locale ).
        )
)

Work around is to omit the
Code:
<cname>LogicSoft Ltd.</cname>

Is this a bug or am missing out something?

Thanks!
 
Have you tried it with

<packet version="1.6.7.0">

?
 
Last edited:
Changing the packet version yields the same following error:
Code:
Array
(
    [@attributes] => Array
        (
            [version] => 1.6.7.0
        )

    [system] => Array
        (
            [status] => error
            [errcode] => 1014
            [errtext] => Parser error: Request is invalid. Error in line 7: Element 'cname': This element is not expected. Expected is one of ( status, phone, fax, email, address, city, state, pcode, country, locale ).
        )

)
 
Strange. I can't reproduce this issue on our test servers.
Maybe you have something wrong in your XSD schemas?

/usr/local/psa/admin/htdocs/schemas/rpc/plesk_client.xsd <xs:complexType name="clientAddGenInfo">
/usr/local/psa/admin/htdocs/schemas/rpc/<version>/plesk_client.xsd <xs:complexType name="clientAddGenInfo">
 
Back
Top