Public bug reported: while using python-jenkins via jenkins-jobs builder against Jenkins 2.138.1 it fails with:
jenkins.BadHTTPException: Error communicating with server[http ://jenkins-server/] further investigation reveals that when get_all_jobs() gets called following url is fetched from Jenkins: http://jenkins-server/api/json?tree=jobs[url,color,name,jobs] which fails with http 400. The request succeeds if the square brackets are correctly escaped e.g. like this: http://jenkins-server/api/json?tree=jobs%5Burl,color,name,jobs%5D this may apply to additional API calls as well. ** Affects: python-jenkins Importance: Undecided Status: New ** Patch added: "My suggested fix" https://bugs.launchpad.net/bugs/1794133/+attachment/5192480/+files/patch -- 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/1794133 Title: Escaping required in get_all_jobs() for Jenkins 2.138 Status in Python Jenkins: New Bug description: while using python-jenkins via jenkins-jobs builder against Jenkins 2.138.1 it fails with: jenkins.BadHTTPException: Error communicating with server[http ://jenkins-server/] further investigation reveals that when get_all_jobs() gets called following url is fetched from Jenkins: http://jenkins-server/api/json?tree=jobs[url,color,name,jobs] which fails with http 400. The request succeeds if the square brackets are correctly escaped e.g. like this: http://jenkins-server/api/json?tree=jobs%5Burl,color,name,jobs%5D this may apply to additional API calls as well. To manage notifications about this bug go to: https://bugs.launchpad.net/python-jenkins/+bug/1794133/+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