freeipa/ipaclient
Fraser Tweedale 947ac4bc1f py3: handle bytes in schema response
If a server is running under py2 it could return a bytes value for
the 'topic_topic' field in the schema response.  A py3 client fails
to handle this (in one place it applies 'str' to it, which raises
BytesWarning; in other places it tries to serialise the schema to
JSON which fails because of the bytes value).

Handle the case where 'topic_topic' is not unicode, and handle bytes
values when serialising the schema to JSON.

Fixes: https://pagure.io/freeipa/issue/6809
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
2017-08-29 13:05:20 +02:00
..
csrgen csrgen: Change to pure openssl config format (no script) 2017-04-03 07:46:30 +00:00
install Changing how commands handles error when it can't connect to IPA server 2017-08-11 13:55:39 +02:00
plugins py3: fix vault public key decoding 2017-08-29 13:03:25 +02:00
remote_plugins py3: handle bytes in schema response 2017-08-29 13:05:20 +02:00
__init__.py Split ipa-client/ into ipaclient/ (Python library) and client/ (C, scripts) 2016-01-27 12:09:02 +01:00
__main__.py Use entry_points for ipa CLI 2017-04-11 13:29:50 +02:00
csrgen_ffi.py csrgen: Modify cert_get_requestdata to return a CertificationRequestInfo 2017-04-03 07:46:30 +00:00
csrgen.py logging: do not use ipa_log_manager to create module-level loggers 2017-07-14 15:55:59 +02:00
frontend.py frontent: Add summary class property to CommandOverride 2016-08-17 14:16:04 +02:00
Makefile.am Build: Makefiles for Python packages 2016-11-09 13:08:32 +01:00
setup.cfg Port all setup.py to setuptools 2016-10-20 18:43:37 +02:00
setup.py Slim down dependencies 2017-05-09 17:17:29 +02:00