#2012 ipa selfservice-find --attrs="" returns internal error
Closed: Fixed None Opened 12 years ago by dpal.

https://bugzilla.redhat.com/show_bug.cgi?id=747722

Description of problem:
[yi@i386a(101) ~] ipa selfservice-find --attrs=""
ipa: ERROR: an internal error has occurred


Version-Release number of selected component (if applicable):
[yi@i386a(101) ~] rpm -qa | grep ipa-server
ipa-server-selinux-2.1.3-2.el6.i686
ipa-server-2.1.3-2.el6.i686
[yi@i386a(101) ~] rpm -qi ipa-server
Name        : ipa-server                   Relocations: (not relocatable)
Version     : 2.1.3                             Vendor: Red Hat, Inc.
Release     : 2.el6                         Build Date: Tue 18 Oct 2011
11:12:34 AM PDT
Install Date: Thu 20 Oct 2011 10:39:05 AM PDT      Build Host:
x86-002.build.bos.redhat.com
Group       : System Environment/Base       Source RPM: ipa-2.1.3-2.el6.src.rpm
Size        : 3355311                          License: GPLv3+
Signature   : (none)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://www.freeipa.org/
Summary     : The IPA authentication server


How reproducible: always


Steps to Reproduce:
1. install ipa-server
2. kinit as admin
3. run command: ipa selfservice-find --attrs=""

Actual results:


Expected results:


Additional info: /var/log/httpd/error_log

[Thu Oct 20 13:43:35 2011] [error] ipa: ERROR: non-public: TypeError:
'NoneType' object is not iterable
[Thu Oct 20 13:43:35 2011] [error] Traceback (most recent call last):
[Thu Oct 20 13:43:35 2011] [error]   File
"/usr/lib/python2.6/site-packages/ipaserver/rpcserver.py", line 223, in
wsgi_execute
[Thu Oct 20 13:43:35 2011] [error]     result = self.Command[name](*args,
**options)
[Thu Oct 20 13:43:35 2011] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 432, in __call__
[Thu Oct 20 13:43:35 2011] [error]     ret = self.run(*args, **options)
[Thu Oct 20 13:43:35 2011] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 738, in run
[Thu Oct 20 13:43:35 2011] [error]     return self.execute(*args, **options)
[Thu Oct 20 13:43:35 2011] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/plugins/selfservice.py", line 186, in
execute
[Thu Oct 20 13:43:35 2011] [error]     result = api.Command['aci_find'](term,
**kw)['result']
[Thu Oct 20 13:43:35 2011] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 432, in __call__
[Thu Oct 20 13:43:35 2011] [error]     ret = self.run(*args, **options)
[Thu Oct 20 13:43:35 2011] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 738, in run
[Thu Oct 20 13:43:35 2011] [error]     return self.execute(*args, **options)
[Thu Oct 20 13:43:35 2011] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/plugins/aci.py", line 696, in execute
[Thu Oct 20 13:43:35 2011] [error]     alist2 = sorted([t.lower() for t in
kw['attrs']])
[Thu Oct 20 13:43:35 2011] [error] TypeError: 'NoneType' object is not iterable
[Thu Oct 20 13:43:35 2011] [error] ipa: INFO: admin@YZHANG.REDHAT.COM:
selfservice_find(None, attrs=None, all=False, raw=False, version=u'2.13'):
TypeError

May be connected to #2010, I can do this ticket too while hacking selfservice plugin.

Metadata Update from @dpal:
- Issue assigned to mkosek
- Issue set to the milestone: FreeIPA 2.2 Core Effort - 2012/01

7 years ago

Login to comment on this ticket.

Metadata