jenkinsci / jenkinsci/java-client-api

CRUM does not work / when using with localhost

Ouverte
#372 0 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
Langage dominant
Java
Étoiles
913
Forks
466
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

JobWithDetails jJob = jenkins.getJob(name);

//crumb support
QueueReference q = jJob.build(true);

===
the above API works fine when Jenkins URL is set to say http://10.158.13.X:8080/ but gives Crumb error when is set to http://localhost:8080/

org.apache.http.client.HttpResponseException: No valid crumb was included in the request
at com.offbytwo.jenkins.client.validator.HttpResponseValidator.validateResponse(HttpResponseValidator.java:11) ~[jenkins-client-0.3.8.jar:0.3.8]

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start by reproducing the localhost case with the JobWithDetails.build(true) call and compare it with the 10.158.13.X URL. Read the crumb-related request path and com.offbytwo.jenkins.client.validator.HttpResponseValidator; done means the same build request succeeds against localhost without the invalid-crumb exception.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
java
Domaine
api, authentication
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.