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

Backslash should escape equal character when evaluation environment variables

      For exemple :
      If I set a environment variable containing a jtds connection string.

      JTDS_CONNECTION_STRING=jdbc:jtds:sqlserver://host:33455/DBName;domain\=myDomain

      I expect that the equal chararter will be escaped by the backslash.

      We can see in the Java Class ApplicationDeploy at line 145 that it's not the the case.

      You should split with the following regex :

      String regex = ".[^\\\\]=.";
      String[] parts = environmentVariable.split(regex);

          [JENKINS-29700] Backslash should escape equal character when evaluation environment variables

          Julien Piccaluga created issue -
          Julien Piccaluga made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 164683 ] New: JNJira + In-Review [ 209073 ]

            siamaksade Siamak Sadeghianfar
            jpiccaluga Julien Piccaluga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: