Details
-
Fix
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
2.4.1
-
None
Description
Current Situation
- When a shell job defines an environment variable x with the value c:/file_name (the value contains an underscore), then
- the GUI generates the JSON:
"env": { "MYFILE": "c:/file_name" },
- the GUI generates the JSON:
-
- the JSON is wrong as it misses quoting. Therefore the workflow becomes invalid.
$.jobs['CopyInstallationFiles'].executable.env[INSTALL_FILE]:Error in expression: Parsing failed at position 2 “c:/file_name Expected character '('
- the JSON is wrong as it misses quoting. Therefore the workflow becomes invalid.
- This problem occurs only for values that include an underscore.
Desired Behavior
- The JOC Cockpit GUI should correctly quote values assigned to variables that include one or more underscores.
- The following JSON should be generated:
"env": { "MYFILE": "'c:/file_name'" },
- The following JSON should be generated:
Workaround
- If the value is quoted as in 'c:/file_name' then the workflow is valid.