You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling a GET for job//<build#>/toggleLogKeep, I get an exception thrown:
org.apache.http.client.CircularRedirectException: Circular redirect to 'https:///job//<build#>/toggleLogKeep/api/'
If I edit the source code in JenkinsHttpClient.addAuthentication(HttpClientBuilder builder, URI uri, String username, String password) to add HttpClientBuilder.disableRedirectHandling(), this prevents the Exception from being thrown and allows me to toggle the "Keep build forever" functionality.
The text was updated successfully, but these errors were encountered:
But that means your environment makes such redirection...and not the api. The api only follows the redirect...Apart from that you could also offer a patch to improve that handling in java-client-api ?
True, the Jenkins API is causing the cyclical redirect. Updating the HttpClientBuilder in the java-client-api to ignore redirects will prevent the exception from being thrown in these situations. Opened #266 for this fix.
When calling a GET for job//<build#>/toggleLogKeep, I get an exception thrown:
org.apache.http.client.CircularRedirectException: Circular redirect to 'https:///job//<build#>/toggleLogKeep/api/'
If I edit the source code in JenkinsHttpClient.addAuthentication(HttpClientBuilder builder, URI uri, String username, String password) to add HttpClientBuilder.disableRedirectHandling(), this prevents the Exception from being thrown and allows me to toggle the "Keep build forever" functionality.
The text was updated successfully, but these errors were encountered: