The STAF Command Parsers (C++ and Java) treats any string that starts with
a colon as being in a CLC (ColonLengthColon) format. Instead, it should
only treat a string as a CLC format if there is a second colon and if the
data between the colon is a number.
For example:
# staf local log log global logname test level info message :Hi
Error submitting request, RC: 7
Additional info
---------------
Invalid length delimited data specifier, 'Hi'
C:\>staf local log log global logname test level info message
::::Warning::::
Error submitting request, RC: 7
Additional info
---------------
Invalid length delimited data specifier, ''
If you enclose the value containing the leading colon in double quotes,
then it works (as follows), but you shouldn't have to do that.
C:\>staf local log log global logname test level info message ":::: Warning
::::"
Response
--------
Also, when using the C++ STAF Command Parser, if the length specified in a
CLC format, when added to the current position in the request string
exceeds UINT_MAX, you get RC 7, but no error message. For example:
# staf local log log global logname test level info message :4294967295:Hi
Error submitting request, RC: 7
Sharon Lucas
Lang::C/C++
All
Public