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:
parent
2bd844381d
commit
bcb57100d1
@ -101,6 +101,11 @@ private:
|
||||
{
|
||||
return registered_methods.find(call) != registered_methods.end();
|
||||
}
|
||||
|
||||
void setDialect(xmlrpc_dialect dialect)
|
||||
{
|
||||
registry.setDialect(dialect);
|
||||
}
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
@ -205,6 +205,7 @@ public class Client{
|
||||
}
|
||||
|
||||
XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
|
||||
config.setEnabledForExtensions(true);
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user