Share

SW Test Automation Framework

Tracker: Bugs

5 STAF Command Parser assumes CLC format if begins with : - ID: 2893441
Last Update: Tracker Item Submitted ( slucas )

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 ( slucas ) - 2009-11-06 17:29

5

Open

None

Sharon Lucas

Lang::C/C++

All

Public


Comments

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.