Package: python-pysimplesoap
Version: 1.16-1
Severity: normal
Affects: 799528


Hi,

this bugreport is a follow-up to #799528 (affecting reportbug and
reportbug-ng).

>>> import debianbts
>>> [bug] = debianbts.get_status(711111)
>>> print bug.originator
Ik1pY2hhxYIgS3XFgmFjaCIgPG1pY2hhbGt1bGFjaEBnbWFpbC5jb20+

Compare with a non-unicode Name:
>>> [bug] = debianbts.get_status(111111)
>>> print bug.originator
>>> # some correct name <em...@address.bar>

If you look at the XML that is sent, you'll note that in the first case
the originator is of type xsd:base64Binary, while the second one is of
type xsd:string. I think it would be sensible if simplesoap would
automatically decode base64 encoded strings. If it doesn't it is
impossible for other libraries to guess if the string was base64 encoded
or not, because in both cases the returned python type is <str>.


Cheers,

Bastian



-- 
Dr. Bastian Venthur                                  http://venthur.de
Debian Developer                                 venthur at debian org

Reply via email to