The patch above makes it use base64.b64encode() instead :-D -- 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/1039307
Title: Basic auth fails for long usernames/passwords Status in Python API for Jenkins: In Progress Bug description: The python base64 encoding adds a newline character every 76 chars. However, HTTP basic authentication (at least as implemented by Jenkins) does not accept newlines. This means that the API fails with long username/passwords because it contains a '\n' in the middle (and user receives a 403 error). I have attached a patch that appears to fix this. To manage notifications about this bug go to: https://bugs.launchpad.net/python-jenkins/+bug/1039307/+subscriptions -- Mailing list: https://launchpad.net/~python-jenkins-developers Post to : [email protected] Unsubscribe : https://launchpad.net/~python-jenkins-developers More help : https://help.launchpad.net/ListHelp

