Change abandoned by Bulat Gaifullin ([email protected]) on branch: master Review: https://review.openstack.org/447318 Reason: the bug on jerkins-job-buiild. #463554
-- 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/1674162 Title: Updating job fails if job-body contains unicode text Status in Python Jenkins: Invalid Bug description: If job xml has unicode characters updating procedure fails with the following stack trace: File "/usr/lib/python2.7/site-packages/jenkins/__init__.py", line 1020, in reconfig_job DEFAULT_HEADERS)) File "/usr/lib/python2.7/site-packages/jenkins/__init__.py", line 431, in jenkins_open response = urlopen(req, timeout=self.timeout).read() File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen return opener.open(url, data, timeout) File "/usr/lib64/python2.7/urllib2.py", line 431, in open response = self._open(req, data) File "/usr/lib64/python2.7/urllib2.py", line 449, in _open '_open', req) File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain result = func(*args) File "/usr/lib64/python2.7/urllib2.py", line 1244, in http_open return self.do_open(httplib.HTTPConnection, req) File "/usr/lib64/python2.7/urllib2.py", line 1211, in do_open h.request(req.get_method(), req.get_selector(), req.data, headers) File "/usr/lib64/python2.7/httplib.py", line 1018, in request self._send_request(method, url, body, headers) File "/usr/lib64/python2.7/httplib.py", line 1052, in _send_request self.endheaders(body) File "/usr/lib64/python2.7/httplib.py", line 1014, in endheaders self._send_output(message_body) File "/usr/lib64/python2.7/httplib.py", line 863, in _send_output msg += message_body UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 9304: ordinal not in range(128) msg has type unicode, message_body has type str, so python tries to convert message_body to unicode by using ascii encoder. The msg is unicode, because url is unicode. url is unicode because Jenkins.server is unicode. To manage notifications about this bug go to: https://bugs.launchpad.net/python-jenkins/+bug/1674162/+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

