[Bug 1100758] Re: suds.sax.text.Text objects with unicode cannot be encoded when used in lists

Scott Talbert 1100758 at bugs.launchpad.net
Thu Aug 19 13:23:38 UTC 2021


I believe this is no longer an issue because it doesn't occur under
Python 3 and Python 2 is EOL.

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to suds in Ubuntu.
https://bugs.launchpad.net/bugs/1100758

Title:
  suds.sax.text.Text objects with unicode cannot be encoded when used in
  lists

Status in suds package in Ubuntu:
  Confirmed

Bug description:
  When a unicode string received from a python-suds call is saved in a django database an exception is generated in this line of /usr/lib/python2.7/dist-packages/django/db/backends/util.py:
              logger.debug('(%.3f) %s; args=%s' % (duration, sql, params),

  This appears to be a bug in the suds.sax.text.Text class used inside of params. I reproduced the problem in a few lines of code:
  #!/usr/bin/env python
  from suds.sax.text import Text
  v=Text(u'Bl\xe5')
  print v
  print [ v ]

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: python-suds 0.4.1-2ubuntu1
  ProcVersionSignature: Ubuntu 3.2.0-35.55-generic 3.2.34
  Uname: Linux 3.2.0-35-generic i686
  NonfreeKernelModules: nvidia
  ApportVersion: 2.0.1-0ubuntu17.1
  Architecture: i386
  Date: Thu Jan 17 13:09:54 2013
  EcryptfsInUse: Yes
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
  MarkForUpload: True
  PackageArchitecture: all
  ProcEnviron:
   LANGUAGE=en_US:en
   TERM=screen
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: suds
  UpgradeStatus: Upgraded to precise on 2012-05-08 (253 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/suds/+bug/1100758/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list