← Back to team overview

python-jenkins-developers team mailing list archive

[Bug 1039307] [NEW] Basic auth fails for long usernames/passwords

 

Public bug reported:

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.

** 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/1039307

Title:
  Basic auth fails for long usernames/passwords

Status in Python API for Jenkins:
  New

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


Follow ups

References