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

Open Blue Ocean link with / character in branch name redirects to 404

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • blueocean-plugin
    • Jenkins ver. 2.164.1, Blue Ocean 1.14.0

      I am using a multi branch pipeline. The branches name contains a /
      Example: branch name is feature/ABS-62317

      When I am in a build in a multibranch pipeline in normal view, the URL is like this:
      job/<MyJobName>/job/feature%252FABS-62317/<MyBuildNumber>/

      When I am pressing Open Blue Ocean I am redirected to:
      blue/organizations/jenkins/<MyJobName>/detail/feature/ABS-62317/<MyBuildNumber>/
      The problem is that this will result in 404, page not found.
      The correct link should've been
      blue/organizations/jenkins/<MyJobName>/detail/feature*%2F*ABS-62317/<MyBuildNumber>/

      So replace the / in the url of the branch name with %2F
      Finally, after replacing the text and seing the build pipeline in ocean blue mode, if I press next/previous(the arrows from top left) and then refresh, I am redirected again to the 404 page.

          [JENKINS-56956] Open Blue Ocean link with / character in branch name redirects to 404

          Mircea-Andrei Albu created issue -
          Mircea-Andrei Albu made changes -
          Link New: This issue is related to JENKINS-30744 [ JENKINS-30744 ]
          Mircea-Andrei Albu made changes -
          Description Original: I am using a multi branch pipeline with having branches with */* in the name. 
          Example: branch name is _feature/ABS-62317_

          When I am in a build in a multibranch pipeline in normal view, the URL is like this:
          job/<MyJobName>/job/feature%252FABS-62317/<MyBuildNumber>/

          When I am pressing _Open Blue Ocean_ I am redirected to:
          blue/organizations/jenkins/<MyJobName>/detail/feature/ABS-62317/<MyBuildNumber>/
          The problem is that this will result in 404, page not found.
          The correct link should've been
          blue/organizations/jenkins/<MyJobName>/detail/feature*%2F*ABS-62317/<MyBuildNumber>/

          So replace the */* in the url of the branch name with *%2F*
          New: I am using a multi branch pipeline. The branches name contains a */*. 
           Example: branch name is _feature/ABS-62317_

          When I am in a build in a multibranch pipeline in normal view, the URL is like this:
           job/<MyJobName>/job/feature%252FABS-62317/<MyBuildNumber>/

          When I am pressing _Open Blue Ocean_ I am redirected to:
           blue/organizations/jenkins/<MyJobName>/detail/feature/ABS-62317/<MyBuildNumber>/
           The problem is that this will result in 404, page not found.
           The correct link should've been
           blue/organizations/jenkins/<MyJobName>/detail/feature*%2F*ABS-62317/<MyBuildNumber>/

          So replace the */* in the url of the branch name with *%2F*
          Mircea-Andrei Albu made changes -
          Description Original: I am using a multi branch pipeline. The branches name contains a */*. 
           Example: branch name is _feature/ABS-62317_

          When I am in a build in a multibranch pipeline in normal view, the URL is like this:
           job/<MyJobName>/job/feature%252FABS-62317/<MyBuildNumber>/

          When I am pressing _Open Blue Ocean_ I am redirected to:
           blue/organizations/jenkins/<MyJobName>/detail/feature/ABS-62317/<MyBuildNumber>/
           The problem is that this will result in 404, page not found.
           The correct link should've been
           blue/organizations/jenkins/<MyJobName>/detail/feature*%2F*ABS-62317/<MyBuildNumber>/

          So replace the */* in the url of the branch name with *%2F*
          New: I am using a multi branch pipeline. The branches name contains a */*. 
           Example: branch name is _feature/ABS-62317_

          When I am in a build in a multibranch pipeline in normal view, the URL is like this:
           job/<MyJobName>/job/feature%252FABS-62317/<MyBuildNumber>/

          When I am pressing _Open Blue Ocean_ I am redirected to:
           blue/organizations/jenkins/<MyJobName>/detail/feature/ABS-62317/<MyBuildNumber>/
           The problem is that this will result in 404, page not found.
           The correct link should've been
           blue/organizations/jenkins/<MyJobName>/detail/feature*%2F*ABS-62317/<MyBuildNumber>/

          So replace the */* in the url of the branch name with *%2F*
          Finally, after replacing the text and seing the build pipeline in ocean blue mode, if I press next/previous(the arrows from top left) and then refresh, I am redirected again to the 404 page.
          Mircea-Andrei Albu made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            Unassigned Unassigned
            mirceaalbu Mircea-Andrei Albu
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: