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

Redirect link broken, double slash

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
    • Environment:
      Jenkins 2.117
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          neothethird Jan Sprinz added a comment -

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

          Show
          neothethird Jan Sprinz added a comment - Turns out this can have significantly more severe effects, since it also affects the webhook-bot. See attached screenshot.
          Hide
          halkeye 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.

          Show
          halkeye 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.
          Hide
          danield 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.

          Show
          danield 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.

            People

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

              Dates

              Created:
              Updated: