• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • core
    • Jenkins 2.117

      The url that is automatically added to the github status created by a multi-branch build (eg `URL/job/JOBNAME/job/BRANCHNAME/BUILDNUMBER/display/redirect`) redirects to a 404 URL that contains an extra forward slash.

      Example:

      `BASEURL//blue/organizations/jenkins/JOBNAME/detail/BRANCHNAME/BUILDNUMBER/`

      should be

      `BASEURL/blue/organizations/jenkins/JOBNAME/detail/BRANCHNAME/BUILDNUMBER/`

      If I remove one of the slashes, it works.

          [JENKINS-50961] Redirect link broken, double slash

          Jan Sprinz created issue -
          Jan Sprinz made changes -
          Attachment New: Bildschirmfoto zu 2018-05-02 11-26-05.png [ 42408 ]

          Jan Sprinz added a comment -

          Turns out this can have significantly more severe effects, since it also affects the webhook-bot. See attached screenshot.

          Jan Sprinz added a comment - Turns out this can have significantly more severe effects, since it also affects the webhook-bot. See attached screenshot.
          Jan Sprinz made changes -
          Priority Original: Minor [ 4 ] New: Critical [ 2 ]
          Jan Sprinz made changes -
          Summary Original: GitHub status redirect link broken New: Redirect link broken, double slash
          Gavin Mogan made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: blueocean-display-url-plugin [ 21827 ]

          Gavin Mogan added a comment -

          I'm pretty sure this isn't blueocean specific, other than blueocean url being redirected

          I think your self url in configuration has a slash on the end.

          Gavin Mogan added a comment - I'm pretty sure this isn't blueocean specific, other than blueocean url being redirected I think your self url in configuration has a slash on the end.
          Gavin Mogan made changes -
          Assignee Original: Ivan Meredith [ imeredith ]

          I am on 2.190.2 and had the same issue.

          We are also behind an Apache reverse proxy, and we had mismatching slashes in the proxypass directive:

          We had

          ProxyPass / http://127.0.0.1:8080/
          ProxyPassReverse / https://MYURL

          instead of

          ProxyPass / http://127.0.0.1:8080/ 
          ProxyPassReverse / https://MYURL/ 
           

          A sidenote: 

          It is not possible to remove the slash from the URL in Jenkins. I can change the URL manually in jenkins.model.JenkinsLocationConfiguration.xml, but whenever I try to remove the slash from the "Jenkins URL" field in the web configurator, it reappears.

          Daniel Dietsch added a comment - I am on 2.190.2 and had the same issue. We are also behind an Apache reverse proxy, and we had mismatching slashes in the proxypass directive: We had ProxyPass / http://127.0.0.1:8080/ ProxyPassReverse / https://MYURL instead of ProxyPass / http://127.0.0.1:8080/   ProxyPassReverse / https://MYURL/     A sidenote:  It is not possible to remove the slash from the URL in Jenkins. I can change the URL manually in jenkins.model.JenkinsLocationConfiguration.xml , but whenever I try to remove the slash from the "Jenkins URL" field in the web configurator, it reappears.

            Unassigned Unassigned
            neothethird Jan Sprinz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: