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

start button in Console output does not work if jenkins instance is installed behind reverse proxy (should extract host from Jenkins URL global settings)

    XMLWordPrintable

Details

    Description

      VncViewer Plugin allows accessing to Xvnc desktops via browser.
      'Start' button in Console Output for launching noVNC browser generates URL using hostname retrieved with:

      InetAddress.getLocalHost().getHostName()
      

      which will not work in general if Jenkins is available to clients under name different than jenkins server hostname.

      Attached patch (base: https://svn.jenkins-ci.org/trunk/hudson/plugins/vncviewer/trunk rev 41315) changes noVNC URL build behavior to following:

      • if 'Global settings - Jenkins Location - Jenkins URL' is not empty - extracts host from it
      • if 'Jenkins URL' is empty or malformed - fall-backs to jenkins server hostname retrieved with InetAddress.getLocalHost().getHostName()

      Attachments

        Activity

          tdomzal Tomasz Domżał added a comment - Plugin page: https://wiki.jenkins-ci.org/display/JENKINS/VncViewer+Plugin

          Thank you for your fix Thomasz! Fixed in release 1.2.

          tbaum Dimitri Tenenbaum added a comment - Thank you for your fix Thomasz! Fixed in release 1.2.

          People

            tbaum Dimitri Tenenbaum
            tdomzal Tomasz Domżał
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: