Python Jenkins no longer works with jenkins 1.532.2 (LTS)

Bug #1282525 reported by jhn
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Python Jenkins
Invalid
Undecided
Unassigned

Bug Description

Following an upgrade from Kenkins 1.532.1 (LTS) to 1.532.2 which contains a number of security fixes I am no longer able to authenticate agains a server. With a configuration and api token that works with 1.532.1 I get an authentication error similar to the one which is thrown with a wrong api token.

---------------------------------------------------------------------------
JenkinsException Traceback (most recent call last)
<ipython-input-5-4fa85a340b61> in <module>()
----> 1 jstaging.get_jobs()

/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/jenkins/__init__.pyc in get_jobs(self)
    315 :returns: list of jobs, ``[ { str: str} ]``
    316 """
--> 317 return self.get_info()['jobs']
    318
    319 def copy_job(self, from_name, to_name):

/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/jenkins/__init__.pyc in get_info(self)
    297 try:
    298 return json.loads(self.jenkins_open(
--> 299 urllib2.Request(self.server + INFO)))
    300 except urllib2.HTTPError:
    301 raise JenkinsException("Error communicating with server[%s]"

/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/jenkins/__init__.pyc in jenkins_open(self, req)
    216 raise JenkinsException(
    217 'Error in request.' +
--> 218 'Possibly authentication failed [%s]' % (e.code)
    219 )
    220 # right now I'm getting 302 infinites on a successful delete

JenkinsException: Error in request.Possibly authentication failed [401]

Revision history for this message
jhn (jenshnielsen) wrote :

This is probably related to https://issues.jenkins-ci.org/browse/JENKINS-21882 so it might just be a bug in jenkins

I am using the github oauth plugin

Revision history for this message
Antoine "hashar" Musso (hashar) wrote :

My Jenkins is a 1.532.2 with authentication via a LDAP database. We have no issue with the pypi version of python-jenkins.

Revision history for this message
jhn (jenshnielsen) wrote :

The bug is in the github Oauth plugin. I will close this one

Changed in python-jenkins:
status: New → Invalid
Revision history for this message
Pratik Anand (anandpratik141) wrote :

Any fixes for authentication via an LDAP database still facing issue

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.