[ https://issues.jenkins-ci.org/browse/JENKINS-12730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159064#comment-159064 ]
jieryn commented on JENKINS-12730: ---------------------------------- This is really weird.. As you can see in the plugin, we are exploiting getRootUrlFromRequest: https://github.com/jenkinsci/keyboard-shortcuts-plugin/blob/master/src/main/java/org/jenkins/ci/plugins/keyboard_shortcuts/KeyboardShortcutsPageDecorator.java#L118 And the javadoc for that method suggests it is immune to these kinds of issues: http://javadoc.jenkins-ci.org/jenkins/model/Jenkins.html#getRootUrlFromRequest() So... I am quite confused why this is happening. > Going to pages via global shortcuts doesn't use the current url/url set in > config > --------------------------------------------------------------------------------- > > Key: JENKINS-12730 > URL: https://issues.jenkins-ci.org/browse/JENKINS-12730 > Project: Jenkins > Issue Type: Bug > Components: keyboard-shortcuts > Affects Versions: current > Reporter: Mandeep Rai > Assignee: jieryn > > I have my jenkins running on port 8001 (ie: http://builds:8001) using a > prefix of "builds" (ie: http://builds:8001/builds). > I also have an Apache instance that is forwarding from port 80 to jenkins > (ie: http://builds.mydomain.com/builds). > In the jenkins main config, I have the "Jenkins URL" in the system config set > to the proper apache forwarded address (ie: > http://builds.mydomain.com/builds), as is the JENKINS_URL. > If I use the keyboard shortcut to go to a job, instead of > http://builds.mydomain.com/builds/job/<job>, it goes to > http://builds:8001/builds/job/<job>, and as a result of the url change, I am > no longer logged in, unless I manually change the host in the location bar > from builds:8001 to builds.mydomain.com -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira