Uploaded image for project: 'JOC - JobScheduler Operations Center'
  1. JOC - JobScheduler Operations Center
  2. JOC-1412

It should be possible to add string values containing underscores to environment variables

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • 2.4.1
    • 2.5.0
    • JOC Cockpit GUI
    • 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 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 '('
          
      • 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'"
                  },
          

      Workaround

      • If the value is quoted as in 'c:/file_name' then the workflow is valid.

      Attachments

        Activity

          People

            ztsa0019 Sourabh Agrawal
            ur Uwe Risse
            Pramokshi Narawariya Pramokshi Narawariya
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: