cli_pubsub_server sample failed to start when compiling with zephyr docker
Assertion is raised when running application cli_pubsub_server generated by script samples/embedded/platform_dep/zephyr/ci/build-zephyr-samples.sh
raising the following assertion
...
[2023/05/11 10:12:46.219] Common library DATE='May 11 2023 10:12:26' VERSION='1.4.0' SIGNATURE='' DOCKER='N.A.'
[2023/05/11 10:12:46.229] Client/Server toolkit library DATE='May 11 2023 10:12:26' VERSION='1.4.0' SIGNATURE='' DOCKER='N.A.'
...
t:~[2023/05/11 10:12:46.268] (Error) Assertion failed. Context = ../src/cli_pubsub_server.c:710 => status == SOPC_STATUS_OK && "SOPC_ServerHelper_StartServer failed"
Assertion failed. Context =
rver.c:710 => status == SOPC_STATUS_OK && "SOPC_ServerHelper_StartServer failed"
assertion "false" failed: file "WEST_TOPDIR/modules/lib/s2opc/src/Common/helpers/sopc_assert.c", line 75, function: SOPC_Assert_Failure
Absence of commit signature information lead to this error cause SOPC_String_AttachFrom
doesn't accept data length equal to 0 and SOPC_String_AttachFromCstring
does so we failed on function SOPC_RuntimeVariables_BuildWriteRequest
calling set_server_variables
setting the build info variables.
Suggest to set a default value if we don't succeed to get commit signature and to change behavior of SOPC_String_AttachFrom
to accept attaching to SOPC_String with data equal to 0.