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

Hyperlinks quietly fail when JenkinsLocationConfiguration incorrect

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins ver. 1.642, Workflow Plugin 1.12

      When the Jenkins site is accessed via short name, e.g.: http://jenkins instead of http://jenkins.domain.tld, the "Click here to forcibly terminate running steps" link fails silently. Opening the developer tools in the browser and checking the console shows the following error in Chrome:

      XMLHttpRequest cannot load http://jenkins.domain.tld:8080/job/${ProjectName}/branch/${BranchName}/9/term. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://jenkins:8080' is therefore not allowed access. The response had HTTP status code 405.
      

      If this behavior can't be "fixed" (one could argue it's not broken), notifying the end-user of the error and referring them to the URL specified in the JENKINS_URL variable seems like a potential improvement.

          [JENKINS-32192] Hyperlinks quietly fail when JenkinsLocationConfiguration incorrect

          Brian G. Shacklett created issue -

          Jesse Glick added a comment -

          A warning gets printed to the Jenkins log but it should probably be shown in the build log.

          Jesse Glick added a comment - A warning gets printed to the Jenkins log but it should probably be shown in the build log.
          Jesse Glick made changes -
          Summary Original: Step termination link fails silently when site accessed by short name New: Hyperlinks quietly fail when JenkinsLocationConfiguration incorrect
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-34862 [ JENKINS-34862 ]

          Jesse Glick added a comment -

          A fix of JENKINS-31661 would make this less relevant.

          Jesse Glick added a comment - A fix of JENKINS-31661 would make this less relevant.
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-31661 [ JENKINS-31661 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 167767 ] New: JNJira + In-Review [ 182835 ]
          Andrew Bayer made changes -
          Component/s New: pipeline-general [ 21692 ]
          Andrew Bayer made changes -
          Component/s Original: workflow-plugin [ 18820 ]
          Jesse Glick made changes -
          Component/s New: workflow-support-plugin [ 21719 ]
          Component/s Original: pipeline [ 21692 ]

            Unassigned Unassigned
            bgshacklett Brian G. Shacklett
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: