jenkinsci / jenkinsci/java-client-api
DisableRedirectHandling in JenkinsHttpClient
- Langage dominant
- Java
- Étoiles
- 913
- Forks
- 466
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez dans JenkinsHttpClient.addAuthentication(HttpClientBuilder builder, URI uri, String username, String password), où l’issue indique que la gestion des redirections provoque une CircularRedirectException pour la requête GET toggleLogKeep. Reproduisez cette requête et vérifiez que l’opération « Keep build forever » se termine sans l’exception après la correction de la gestion des redirections.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- api
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 48/100