jenkinsci / jenkinsci/java-client-api
DisableRedirectHandling in JenkinsHttpClient
Offen
- Vorherrschende Sprache
- Java
- Sterne
- 913
- Forks
- 466
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
When calling a GET for job///toggleLogKeep, I get an exception thrown:
org.apache.http.client.CircularRedirectException: Circular redirect to 'https:///job///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.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.