Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-3425

Work around javaws incorrectly putting quotes into the PATH environment variable


    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: remoting
    • Labels:
    • Environment:
      Platform: All, OS: All
    • Similar Issues:


      Last week I was tracking down an issue where I would get a PATH which looked
      like this:

      Path=C:\Windows\system32;...;"C:\Program Files\Java\jdk1.6.0_06\bin"

      The problem is the quotes - they caused a batch file somewhere deep in the build
      to break because the batch file (correctly!) quoted the %Path%.

      I put tracing info all over the place, and it turned out that this was already
      present at the time the slave was started via Java WebStart, so javaws must be
      the culprit. If you launch it from a command prompt where the quotes are not
      present, they are present by the time the slave starts up, and all goes to ****.

      The workaround for us was to hack EnvVars to strip quotes from that variable
      when it creates the initial one.



          trejkaz trejkaz created issue -
          radzaw rad zaw made changes -
          Field Original Value New Value
          Issue Type Improvement [ 4 ] Bug [ 1 ]
          alex_okrushko Alex Okrushko made changes -
          Assignee Kohsuke Kawaguchi [ kktest3 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 133498 ] JNJira + In-Review [ 174038 ]


            • Assignee:
              kktest3 Kohsuke Kawaguchi
              trejkaz trejkaz
            • Votes:
              7 Vote for this issue
              10 Start watching this issue


              • Created: