[PKG-Openstack-devel] Bug#834012: jenkins-job-builder: crashes when the job being replaced contains non-ASCII

Simon McVittie smcv at debian.org
Thu Aug 11 12:10:07 UTC 2016


Source: jenkins-job-builder
Version: 1.4.0-1
Severity: normal
Tags: fixed-upstream patch

I work with someone who cares about correct Unicode typography,
including in the output of the scripts we !include into Jenkins jobs.
Unfortunately, jenkins-job-builder 1.4 doesn't appear to be fully
Unicode-clean: if the (scripts !include'd into the) job I am replacing
contains non-ASCII, python2-jenkins-job-builder crashes with

  return hashlib.md5(xml).hexdigest()
UnicodeEncodeError: 'ascii' codec can't encode character u'\xb4' in position 2967: ordinal not in range (128)

while python3-jenkins-job-builder crashes with a different exception:

  return hashlib.md5(xml).hexdigest()
TypeError: Unicode-objects must be encoded before hashing

This upstream commit seems to be the right solution:
https://git.openstack.org/cgit/openstack-infra/jenkins-job-builder/commit/?id=aa3bf5cc195b1e36e5aa8eda2cd7bfc4f192a0d9

Please consider applying the patch, or updating to an upstream
release >= 1.5.0 to get it included.

Thanks,
    S
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jjb-utf8.patch
Type: text/x-diff
Size: 960 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/openstack-devel/attachments/20160811/f308789e/attachment.patch>


More information about the Openstack-devel mailing list