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

GitHub Enterprise server can be created with incorrect URL path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • blueocean-plugin
    • None
    • Blue Ocean 1.2-beta4, Blue Ocean 1.2

      A user can add a new GitHub Enterprise server which points to the root GitHub Enterprise URL rather than the API endpoint. This leads to an error downstream when trying to fetch organizations.

      Repro Steps

      1. Launch "New Pipeline" flow
      2. Choose "GitHub Enterprise"
      3. Next to server dropdown, click "Add"
      4. Enter any name
      5. Enter a URL that points to the root of a GHE server, such as https://github.beescloud.com

      Expected

      • Should return an error indicated the URL is not valid.

      Actual

      • Add is successful.

      Notes
      In the above example, the URL should actually be: https://github.beescloud.com/v3/api. We need to enhance the backend validation code to ensure the URL is correct, or perhaps try to autocorrect it.

            cliffmeyers Cliff Meyers
            cliffmeyers Cliff Meyers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: