← Back to team overview

python-jenkins-developers team mailing list archive

[Bug 1713481] [NEW] crashes when uploading job with non-ascii chars on python2.7

 

Public bug reported:

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

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  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)

** Affects: python-jenkins
     Importance: Undecided
     Assignee: Jan Priessnitz (honya121)
         Status: New


** Tags: python2.7 utf

** Changed in: python-jenkins
     Assignee: (unassigned) => Jan Priessnitz (honya121)

** Tags added: python2.7

** Tags added: utf

-- 
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:
  New

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 "<stdin>", line 1, in <module>
    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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-jenkins/+bug/1713481/+subscriptions


Follow ups