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

Multi-branch pipelines using branches with non-standard characters result in 404's against certain REST API endpoints

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • blueocean-plugin
    • None
    • 1.0-m11

      Multi-branch pipelines with branch names using non-standard characters will return 404 errors from the REST API for certain endpoints.

      Example:
      Here is the URL for the "jenkins-design-language" project's branches:
      https://ci.blueocean.io/blue/rest/organizations/jenkins/pipelines/jenkins-design-language/branches/

      Any branches with special characters return a URL with the branch name in URL-encoded format (expected).

      The "feature/JENKINS-35912" branch returns a 404:
      https://ci.blueocean.io/blue/rest/organizations/jenkins/pipelines/jenkins-design-language/branches/feature%2FJENKINS-35912/

      Accessing the same URL with the branch name double-encoded works okay:
      https://ci.blueocean.io/blue/rest/organizations/jenkins/pipelines/jenkins-design-language/branches/feature%252FJENKINS-35912/

      Ideally the branch names would be single-encoded. I think it's fair to expect the end user or application shouldn't have to URL encode the URL in order to use it, unless this is a HATEOS convention I'm not familiar with.

            vivek Vivek Pandey
            cliffmeyers Cliff Meyers
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: