freeipa/ipaclient/remote_plugins
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
..
2_49 fix minor spelling mistakes 2017-05-19 09:52:46 +02:00
2_114 fix minor spelling mistakes 2017-05-19 09:52:46 +02:00
2_156 fix minor spelling mistakes 2017-05-19 09:52:46 +02:00
2_164 fix minor spelling mistakes 2017-05-19 09:52:46 +02:00
__init__.py logging: do not use ipa_log_manager to create module-level loggers 2017-07-14 15:55:59 +02:00
compat.py Replace LooseVersion 2016-11-24 15:46:40 +01:00
schema.py py3: handle bytes in schema response 2017-08-29 13:05:20 +02:00