1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

M #-: Fix 'Unknown type: i8' when using Java OCA (#186)

The dialect 'xmlrpc_dialect_apache' must be set in the registry and xmlrpc
extensions must be enabled in the Java OCA client to properly handle OpenNebula
responses when requesting actions not allowed.

Signed-off-by: Ricardo Diaz <rdiaz@opennebula.io>
(cherry picked from commit 32606c23c829b893923268848ec533b41e5d34f2)
This commit is contained in:
Ricardo Diaz 2020-09-10 15:47:33 +02:00 committed by Ruben S. Montero
parent 2bd844381d
commit bcb57100d1
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87
3 changed files with 8 additions and 0 deletions

View File

@ -101,6 +101,11 @@ private:
{
return registered_methods.find(call) != registered_methods.end();
}
void setDialect(xmlrpc_dialect dialect)
{
registry.setDialect(dialect);
}
};
//--------------------------------------------------------------------------

View File

@ -205,6 +205,7 @@ public class Client{
}
XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setEnabledForExtensions(true);
try
{

View File

@ -662,6 +662,8 @@ void RequestManager::register_xml_methods()
RequestManagerRegistry.addMethod("one.hostpool.info", hostpool_info);
RequestManagerRegistry.addMethod("one.hostpool.monitoring", host_pool_monitoring);
RequestManagerRegistry.setDialect(xmlrpc_dialect_apache);
/* Group related methods */
xmlrpc_c::method * group_allocate_pt;