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

BlueOcean not opening builds created within folders

      Pipeline builds created within folders cannot be accessed directly via BlueOcean. Link when clicking on BlueOcean icon for a pipeline build looks like: <jenkins-master>blue/organizations/jenkins/testing%2Ftesting and troughs an http 400 error.

      Freestyle builds within folders don't seem to be affected by this issue.

          [JENKINS-54987] BlueOcean not opening builds created within folders

          I observe the same effect. Further analyis:

          On clicking the link, the following request happen:

          GET
          https://server/jenkins/blue/organizations/jenkins/Generic%2FPythonGenericPylint/detail/PythonGenericPylint/801 [HTTP/1.1 302 Found 12ms]
          10:47:12.199 GET
          http://server/jenkins/blue/organizations/jenkins/Generic/PythonGenericPylint/detail/PythonGenericPylint/801/

           

          Note the missing  "/" at the end of the first request. This  then results in a redirect to the to a http endpoint that loses the encoded slash.

           

          Björn Pedersen added a comment - I observe the same effect. Further analyis: On clicking the link, the following request happen: GET https://server/jenkins/blue/organizations/jenkins/Generic%2FPythonGenericPylint/detail/PythonGenericPylint/801 [HTTP/1.1 302 Found 12ms] 10:47:12.199 GET http://server/jenkins/blue/organizations/jenkins/Generic/PythonGenericPylint/detail/PythonGenericPylint/801/   Note the missing  "/" at the end of the first request. This  then results in a redirect to the to a http endpoint that loses the encoded slash.  

          Nelu Vasilica added a comment -

          Discovered the other day that if you are running jenkins on apache tomcat(which we do) you need to set these 2 flags in the tomcat config:

          -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true
          -Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true

          as per https://wiki.jenkins.io/display/JENKINS/Blue+Ocean+Plugin. that resolved the issue for us.

          Nelu Vasilica added a comment - Discovered the other day that if you are running jenkins on apache tomcat(which we do) you need to set these 2 flags in the tomcat config: -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true as per https://wiki.jenkins.io/display/JENKINS/Blue+Ocean+Plugin.  that resolved the issue for us.

            Unassigned Unassigned
            nelus Nelu Vasilica
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: