• 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 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.

          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.

          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: