Assert when calling a Method on an existing node that is not a Method
Description
Server side, when a CallMethod is received for a node that exists but that is not a Method, the following assertion is triggered in SOPC_AddressSpace_Get_Executable
(src/ClientServer/configuration/sopc_address_space.c
):
switch (node->node_class)
{
case OpcUa_NodeClass_Method:
return node->data.method.Executable;
default:
assert(false && "Current element has no Executable attribute.");
return false;
}
Analysis
This function is only used by address_space_bs__get_Executable
and which should not be called on non-Method nodes.