vsomeip
vsomeip copied to clipboard
[BUG]: <In configuration_impl::load_partition function, its_partition_members usage can be improved>
vSomeip Version
v3.5.1
Boost Version
1.71
Environment
Ubuntu 22.04
Describe the bug
Hi vsomeip experts,
In configuration_impl::load_partition(const boost::property_tree::ptree &_tree)function, only the last service-instance key-value pair is inserted into the its_partition_members container. If more than 1 service-instance pairs are configured in one partition, the preceding configuration will not be loaded which leads to subscription failure.
Reproduction Steps
"0x7901" and "0x7107" share the same local port, so I configure patitions as below
"partitions":
[
{"clients1":
{
"service": "0x7901",
"service": "0x7107",
"instance": "0x0001"
}
}
]
Expected behaviour
Service "0x7901" and "0x7107" use the same port at subscribe stage, and receives SubscribeAck.
Logs and Screenshots