Plesk XML API virtdir update error: Element 'application': This element is not expected

Created:

2017-02-07 20:21:37 UTC

Modified:

2017-08-16 16:23:51 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk XML API virtdir update error: Element 'application': This element is not expected

Applicable to:

  • Plesk Onyx for Linux

Symptoms

Plesk XML API virtdir update error:

Parser error: Request is invalid. Error in line 16: Element 'application': This element is not expected. Expected is one of ( access-windows, require-ssl, asp-buffering-limit, asp-max-request-entity-allowed, asp-enabled-server-debug, asp-enabled-client-debug, ip-allow, ip-deny, mime-type, is-deny-by-concurrent-requests ). 

Cause

According to the xsd schema, the XML sequence is hardcoded and element <require-ssl> should go after <application>.

The documentation bug with ID #PPPM-5721.

Resolution

The correct example is:

<?xml version="1.0"?>
<packet>
<virtdir>
<create>
<site-id>1</site-id>
<name>/my_vdir</name>
<properties>
<application>
<enabled/>
<parent-paths>true</parent-paths>
<run-in-mta>true</run-in-mta>
</application>
<execute-perm>none</execute-perm>
<require-ssl>true</require-ssl>
</properties>
</create>
</virtdir>
</packet>
Have more questions? Submit a request
Please sign in to leave a comment.