Closed tparchambault closed 1 year ago
PR specific unit-tests still need to be generated.
The env var string is expected to be a number of K=V pairs, separated by commas. A single leading double quote and a single trailing double quote will be ignored. Internal double quotes and whitespace will be untouched.
From https://stackoverflow.com/questions/2821043/allowed-characters-in-linux-environment-variable-names , supported env var names are verified to support the following convention:
Environment variable names used by the utilities in the Shell and Utilities volume of IEEE Std 1003.1-2001 consist solely of uppercase letters, digits, and the '_' (underscore) from the characters defined in Portable Character Set and do not begin with a digit.
We can revisit supported env var names upon request. Values are not checked consequently any string is acceptable provided they don't contain commas or equal signs.
New app code verifies:
Tested rpm install over a RHEL 8.6 platform. No issues observed.
Validation of Profiler's environment variable field added such that errors are presented in a manner consistent with the current profiler args validation. Variable names are also verified that they do not start with a number and can contain only [a-zA-Z0-6_] chararters.
Closes #644