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

Bug in hudson.remoting.Engine

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • remoting
    • None
    • Platform: All, OS: All

      There is a bug in line 150 of hudson.remoting.Engine which reads:

      String[] tokens = tunnel.split(":");
      if(tokens.length!=2)
      throw new IOException("Illegal tunneling parameter: "+tunnel);

      This does not work as documented since String.split ignores delimiters at the
      end of the string, thus when tunnel="HOST:" tokens.length is 1. The fix is trivial

      String[] tokens = tunnel.split(":",2);
      if(tokens.length!=2)
      throw new IOException("Illegal tunneling parameter: "+tunnel);

            mindless Alan Harder
            tonyj tonyj
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: