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

Git branch with slashes are double encoded (Jenkins core and blue ocean)

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Component/s: blueocean-plugin, core
    • Labels:
    • Environment:
      Jenkins 2.169
      BlueOcean 1.14.0
      Jenkins installed on Windows
      Git Plugin 3.9.3
      Git Client Plugin 2.7.6
    • Similar Issues:

      Description

      I have a GIT Branch called "v10/release".

      1. In default UI of Jenkins, the link of this branch in my "ice" Github repository (/job/ice/)  is  : "/job/ice/job/v10%252Frelease/" (404 error) instead of "/job/ice/job/v10%2Frelease/" which works (display correctly the page, I can execute a build, see logs, etc...)

       note: All branches without slashes work perfectly.

       

      2. In Blue Ocean, Jobs of this branch are listed, but not displayed correctly:

      Example: /blue/organizations/jenkins/ice/detail/v10%2Fmaster/2/pipeline/

      As you can see in my screenshot, urls are also double encoded

       

       

        Attachments

          Activity

          Hide
          lardef frederic larde added a comment -

          I found my issue.

          I have a reverse proxy for HTTPS. Double encoding is Ok and necessary for Jenkins

          My reverse proxy is an IIS server, and after adding in my web.config:

          <system.webServer>

              <security>

                      <requestFiltering allowDoubleEscaping="true" />

              </security>

          </system.webServer>

           

          It works.

          Show
          lardef frederic larde added a comment - I found my issue. I have a reverse proxy for HTTPS. Double encoding is Ok and necessary for Jenkins My reverse proxy is an IIS server, and after adding in my web.config: <system.webServer>     <security>             <requestFiltering allowDoubleEscaping="true" />     </security> </system.webServer>   It works.
          Hide
          halkeye Gavin Mogan added a comment -

          https://github.com/cb-gmogan-test/mbtest is my test repo

          I'm going to close this for now saying unable to reproduce, but if you can reproduce it, especially in a repo we can use to test with (maybe its with a different scm (git, bitbucket, etc)) feel free to re-open.

          Show
          halkeye Gavin Mogan added a comment - https://github.com/cb-gmogan-test/mbtest  is my test repo I'm going to close this for now saying unable to reproduce, but if you can reproduce it, especially in a repo we can use to test with (maybe its with a different scm (git, bitbucket, etc)) feel free to re-open.
          Hide
          lardef frederic larde added a comment -

          I'm confused. It seems to work for you. I'm double checking my conf.

          Show
          lardef frederic larde added a comment - I'm confused. It seems to work for you. I'm double checking my conf.
          Hide
          halkeye Gavin Mogan added a comment -

          I tried to reproduce it on ci.blueocean and wasn't able to

          https://ci.blueocean.io/blue/organizations/jenkins/Gavin%20Folder%2Fmbtest/detail/slash%2Ftest/1/pipeline

          Can you give me a list of steps starting from https://ci.blueocean.io/job/Gavin%20Folder/ that reproduces the error?

          Show
          halkeye Gavin Mogan added a comment - I tried to reproduce it on ci.blueocean and wasn't able to https://ci.blueocean.io/blue/organizations/jenkins/Gavin%20Folder%2Fmbtest/detail/slash%2Ftest/1/pipeline Can you give me a list of steps starting from  https://ci.blueocean.io/job/Gavin%20Folder/  that reproduces the error?
          Hide
          lardef frederic larde added a comment -

          Hi, thanks a lot for your messages. I just wanted to be sure, that this issue was not forgotten.

          Show
          lardef frederic larde added a comment - Hi, thanks a lot for your messages. I just wanted to be sure, that this issue was not forgotten.

            People

            • Assignee:
              Unassigned
              Reporter:
              lardef frederic larde
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: