I've noticed that, on 5.6.4, creating metadata fails - the TypedValue is missing. XML shown by temporarily adding print_r($data) to the post function in ServiceAbstract.php.
<MetadataEntry>
<Domain visibility="PRIVATE">SYSTEM</Domain>
<Key>test-key</Key>
< xsi:type="MetadataStringValue">
<Value>test-value</Value>
</>
</MetadataEntry>
Should be:
<MetadataEntry>
<Domain visibility="PRIVATE">SYSTEM</Domain>
<Key>test-key</Key>
<TypedValue xsi:type="MetadataStringValue">
<Value>test-value</Value>
</TypedValue>
</MetadataEntry>
Error:
PHP Fatal error: Uncaught exception 'VMware_VCloud_SDK_Exception' with message 'POST https://vcloud.cloudhelix.net/api/admin/vdc/dba49353-bdc8-4fd8-b3af-8372070cd396/metadata failed, return code: 400, error: <?xml version="1.0" encoding="UTF-8"?>
<Error xmlns="http://www.vmware.com/vcloud/v1.5" majorErrorCode="400" message="The provided XML could not be parsed: The content of elements must consist of well-formed character data or markup." minorErrorCode="BAD_REQUEST" stackTrace="com.vmware.vcloud.api.rest.handlers.exceptions.BadRequestRestApiException: The provided XML could not be parsed: The content of elements must consist of well-formed character data or markup.
at com.vmware.vcloud.api.rest.common.handlers.ErrorHandler.getBadRequestApiException(ErrorHandler.java:99)
at com.vmware.vcloud.api.rest.common.handlers.ErrorHandler.errorBadRequest(ErrorHandler.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflec in /sdk/utils/VMware/VCloud/ServiceAbstract.php on line 189
↧
Creating metadata on 5.6
↧