When our Python client is used in combination with XML-RPC, it fails with:
$ ipa -e rpc_protocol=xmlrpc -e force_schema_check=1 user-find ipa: ERROR: AttributeError: 'SchemaUpToDate' object has no attribute 'fingerprint' Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1348, in run api.finalize() File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 707, in finalize self.__do_if_not_done('load_plugins') File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 422, in __do_if_not_done getattr(self, name)() File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 585, in load_plugins for package in self.packages: File "/usr/lib/python2.7/site-packages/ipalib/__init__.py", line 919, in packages ipaclient.remote_plugins.get_package(self), File "/usr/lib/python2.7/site-packages/ipaclient/remote_plugins/__init__.py", line 93, in get_package plugins = schema.get_package(api, server_info, client) File "/usr/lib/python2.7/site-packages/ipaclient/remote_plugins/schema.py", line 557, in get_package schema = Schema(api, server_info, client) File "/usr/lib/python2.7/site-packages/ipaclient/remote_plugins/schema.py", line 407, in __init__ self._fingerprint = e.fingerprint AttributeError: 'SchemaUpToDate' object has no attribute 'fingerprint' ipa: ERROR: an internal error has occurred
This is because thin client depends on features offered only by JSON-RPC.
It should not produce this ugly traceback. But otherwise it is OK that it doesn't work.
Metadata Update from @jcholast: - Issue assigned to someone - Issue set to the milestone: FreeIPA 4.5 backlog
On the server-side, FreeIPA uses an exception to signal that the schema is up to date. Python's xmlrpc.Fault object has no means to transport additional data. Therefore the fingerprint is not available on the client side. We either need a different approach or just consider XML-RPC as unsupported.
Metadata Update from @cheimes: - Issue close_status updated to: None - Issue set to the milestone: FreeIPA 4.6 (was: FreeIPA 4.5 backlog)
Login to comment on this ticket.