Public bug reported: I'm trying to migrate a Jenkins server which currently uses the "anyone can do anything" authorization strategy to "logged-in users can do anything". When Jenkins is set in this mode, all requests that require a crumb fail with a 401 authorization error, even though I provide a valid user and API token to the `Jenkins` object when creating it.
Looking through the code in the debugger, it seems that something is going wrong in `jenkins_request` and it tries to get a crumb when calling `self.maybe_add_crumb(req)`. I'm pretty sure that the error here is in the python-jenkins framework, since I can manually request a crumb just fine using a web browser (in an anonymous window, no less). ** Affects: python-jenkins Importance: Undecided Status: New -- You received this bug notification because you are a member of Python Jenkins Developers, which is subscribed to Python Jenkins. https://bugs.launchpad.net/bugs/1990982 Title: Can't get crumbs when Jenkins authorization strategy is "logged-in users can do anything" Status in Python Jenkins: New Bug description: I'm trying to migrate a Jenkins server which currently uses the "anyone can do anything" authorization strategy to "logged-in users can do anything". When Jenkins is set in this mode, all requests that require a crumb fail with a 401 authorization error, even though I provide a valid user and API token to the `Jenkins` object when creating it. Looking through the code in the debugger, it seems that something is going wrong in `jenkins_request` and it tries to get a crumb when calling `self.maybe_add_crumb(req)`. I'm pretty sure that the error here is in the python-jenkins framework, since I can manually request a crumb just fine using a web browser (in an anonymous window, no less). To manage notifications about this bug go to: https://bugs.launchpad.net/python-jenkins/+bug/1990982/+subscriptions -- Mailing list: https://launchpad.net/~python-jenkins-developers Post to : python-jenkins-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~python-jenkins-developers More help : https://help.launchpad.net/ListHelp