Closed adriananeci closed 5 years ago
I think the problem is not a change in crumb_requester.py, but one in requester.py itself. 0a10e81f1fb9b5996b53a00cd9683dc05277d5c9 changes the variables "username" and "password in the requester init from a keyworded to a non-keyworded. The how_to for the crumb_requester uses keyworded variables, as it was before 0a10e81f1fb9b5996b53a00cd9683dc05277d5c9.
I think #682 should fix this.
Just released v0.3.8 with that fix.
Many thanks for fixing it!
ISSUE TYPE
Jenkinsapi VERSION
0.3.7
Jenkins VERSION
Jenkins ver. 2.150.1
SUMMARY
Looks like in the latest release the connection to a jenkins instance that has CSRF protection enabled is not working anymore. For example by executing:
EXPECTED RESULTS
Print all the jobs currently available on the jenkins instance. In the previous version (0.3.6) the above code just worked fine.
ACTUAL RESULTS
Getting 403 forbidden when instantiating a new Jenkins object. The stacktrace is:
USEFUL INFORMATION
Just run the code above using both 0.3.6 and 0.3.7 and compare output.