[Python-jenkins-developers] [Bug 1713481] Re: crashes when uploading job with non-ascii chars on python2.7

2018-06-17 Thread OpenStack Infra
** Changed in: python-jenkins
 Assignee: Jan Priessnitz (honya121) => Sorin Sbarnea (ssbarnea)

-- 
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/1713481

Title:
  crashes when uploading job with non-ascii chars on python2.7

Status in Python Jenkins:
  In Progress

Bug description:
  If run on python 2.7.13, jenkins-python crashes if job xml contains
  non-ascii characters.

  Traceback (most recent call last):
    File "", line 1, in 
    File "jenkins/__init__.py", line 992, in create_job
  config_xml.encode('utf-8'), DEFAULT_HEADERS))
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 0: 
ordinal not in range(128)

  Reproduction:
  import jenkins
  a = jenkins.Jenkins('http://google.com')
  a.create_job('Test_job', 'unicode: š')

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-jenkins/+bug/1713481/+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


[Python-jenkins-developers] [Bug 1713481] Re: crashes when uploading job with non-ascii chars on python2.7

2018-06-17 Thread OpenStack Infra
Reviewed:  https://review.openstack.org/498448
Committed: 
https://git.openstack.org/cgit/openstack/python-jenkins/commit/?id=44d211b90fa443267db68f687cbd4fbb2cb32ee0
Submitter: Zuul
Branch:master

commit 44d211b90fa443267db68f687cbd4fbb2cb32ee0
Author: Jan Priessnitz 
Date:   Mon Aug 28 13:55:28 2017 +0200

Allow use of unicode job names

Closes bug: #1713481
Signed-off-by: Jan Priessnitz 

Change-Id: I8a1ff4bf0f7711ab9c9b76f538411a854244283c


** Changed in: python-jenkins
   Status: In Progress => Fix Released

-- 
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/1713481

Title:
  crashes when uploading job with non-ascii chars on python2.7

Status in Python Jenkins:
  Fix Released

Bug description:
  If run on python 2.7.13, jenkins-python crashes if job xml contains
  non-ascii characters.

  Traceback (most recent call last):
    File "", line 1, in 
    File "jenkins/__init__.py", line 992, in create_job
  config_xml.encode('utf-8'), DEFAULT_HEADERS))
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 0: 
ordinal not in range(128)

  Reproduction:
  import jenkins
  a = jenkins.Jenkins('http://google.com')
  a.create_job('Test_job', 'unicode: š')

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-jenkins/+bug/1713481/+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