Issue Type: Bug Bug
Assignee: Unassigned
Attachments: 20150417-tdomzal-vncviewer-hostname.patch
Components: other
Created: 17/Apr/15 7:27 PM
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()
Project: Jenkins
Priority: Minor Minor
Reporter: Tomasz Domżał
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to