jenkinsci / jenkinsci/java-client-api

DisableRedirectHandling in JenkinsHttpClient

Aperta
#235 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
913
Fork
466
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.