-
Bug
-
Resolution: Fixed
-
Major
-
None
The method checkApiUrlValidity() does not work fine when a GitHub Enterprise instance is configured in private mode.
When I've added this method in GitHub API forget to check with this configuration:
public void checkApiUrlValidity() throws IOException { retrieve().to("/", GHApiInfo.class).check(apiUrl); }
Probably, we need to do changes in this plugin (to handle the error) and in GitHub API.
- is related to
-
JENKINS-33228 GitHub server configuration undocumented / duplicated
-
- Open
-
- links to
[JENKINS-33318] GitHub Enterprise Server validation does not work when private mode is enabled
Description |
New:
|
Priority | Original: Minor [ 4 ] | New: Major [ 3 ] |
Description |
Original:
|
New:
The method {{checkApiUrlValidity()}} does not work fine when a GitHub Enterprise instace is configured in {{private mode}}. When I've added this method in [GitHub API|https://github.com/kohsuke/github-api] forget to check with this configuration: {noformat} public void checkApiUrlValidity() throws IOException { retrieve().to("/", GHApiInfo.class).check(apiUrl); } {noformat} Probably, we need to do changes in this plugin (to handle the error) and in *GitHub API*. |
Description |
Original:
The method {{checkApiUrlValidity()}} does not work fine when a GitHub Enterprise instace is configured in {{private mode}}. When I've added this method in [GitHub API|https://github.com/kohsuke/github-api] forget to check with this configuration: {noformat} public void checkApiUrlValidity() throws IOException { retrieve().to("/", GHApiInfo.class).check(apiUrl); } {noformat} Probably, we need to do changes in this plugin (to handle the error) and in *GitHub API*. |
New:
The method {{checkApiUrlValidity()}} does not work fine when a GitHub Enterprise instance is configured in {{private mode}}. When I've added this method in [GitHub API|https://github.com/kohsuke/github-api] forget to check with this configuration: {noformat} public void checkApiUrlValidity() throws IOException { retrieve().to("/", GHApiInfo.class).check(apiUrl); } {noformat} Probably, we need to do changes in this plugin (to handle the error) and in *GitHub API*. |
Link | New: This issue is related to JENKINS-33228 [ JENKINS-33228 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
This seems to be what I'm talking about here and here.
For info, from my GitHub Enterprise instance:
The 401 response throws an IOException, which the plugin turns into a generic error message.
This is also why the GitHub Plugin's UI, where I can enter credentials and click the "Verify credentials" is way more user-friendly