summaryrefslogtreecommitdiffstats
path: root/ipaserver/rpcserver.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2016-09-01 09:59:37 +0200
committerDavid Kupka <dkupka@redhat.com>2016-09-01 13:20:14 +0200
commitafcb3bd3c32aa33dcd68cd0a2ca85bda677000a8 (patch)
treef60aa611cac6b8e4e7d691a8c39cdfa09df6990a /ipaserver/rpcserver.py
parent17ea4ae6b9007e121ae1ea7748643394fec84ad7 (diff)
downloadfreeipa-afcb3bd3c32aa33dcd68cd0a2ca85bda677000a8.tar.gz
freeipa-afcb3bd3c32aa33dcd68cd0a2ca85bda677000a8.tar.xz
freeipa-afcb3bd3c32aa33dcd68cd0a2ca85bda677000a8.zip
rpcserver: fix crash in XML-RPC system commands
Fix an AttributeError in XML-RPC methodSignature and methodHelp commands caused by incorrect mangled name usage. https://fedorahosted.org/freeipa/ticket/6217 Reviewed-By: Lenka Doudova <ldoudova@redhat.com> Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipaserver/rpcserver.py')
-rw-r--r--ipaserver/rpcserver.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipaserver/rpcserver.py b/ipaserver/rpcserver.py
index dd446ae84..f1d5a4069 100644
--- a/ipaserver/rpcserver.py
+++ b/ipaserver/rpcserver.py
@@ -311,7 +311,7 @@ class WSGIExecutioner(Executioner):
if 'wsgi_dispatch' in self.api.Backend:
self.api.Backend.wsgi_dispatch.mount(self, self.key)
- def __get_command(self, name):
+ def _get_command(self, name):
try:
# assume version 1 for unversioned command calls
command = self.api.Command[name, '1']
@@ -362,7 +362,7 @@ class WSGIExecutioner(Executioner):
if name in self._system_commands:
result = self._system_commands[name](self, *args, **options)
else:
- command = self.__get_command(name)
+ command = self._get_command(name)
result = command(*args, **options)
except PublicError as e:
if self.api.env.debug:
@@ -713,7 +713,7 @@ class xmlserver(KerberosWSGIExecutioner):
# for now let's not go out of our way to document standard XML-RPC
return u'undef'
else:
- self.__get_command(method_name)
+ self._get_command(method_name)
# All IPA commands return a dict (struct),
# and take a params, options - list and dict (array, struct)
@@ -725,7 +725,7 @@ class xmlserver(KerberosWSGIExecutioner):
if method_name in self._system_commands:
return u''
else:
- command = self.__get_command(method_name)
+ command = self._get_command(method_name)
return unicode(command.doc or '')
_system_commands = {