Bug 747722

Summary: ipa selfservice-find --attrs="" returns internal error
Product: Red Hat Enterprise Linux 6 Reporter: Yi Zhang <yzhang>
Component: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2CC: dpal, jgalipea, mkosek, spoore
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-2.2.0-1.el6 Doc Type: Bug Fix
Doc Text:
No documentation needed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 13:15:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 756082    

Description Yi Zhang 2011-10-20 20:43:58 UTC
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.COM: selfservice_find(None, attrs=None, all=False, raw=False, version=u'2.13'): TypeError

Comment 1 Yi Zhang 2011-10-20 20:44:29 UTC
to verify: ipa selfservice-find --attrs=""


expect to pass

Comment 3 Dmitri Pal 2011-10-20 22:21:47 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/2012

Comment 5 Martin Kosek 2012-02-09 13:15:39 UTC
*** Bug 783501 has been marked as a duplicate of this bug. ***

Comment 7 Scott Poore 2012-03-16 20:48:38 UTC
Verified.

Version :: ipa-server-2.2.0-4.el6.x86_64

Automated Test Results ::

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: selfservice_bz_747722 ipa selfservice-find --attrs="" returns internal error
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   LOG    ] :: BZ Test Running: ipa selfservice-find --attrs="" > /tmp/tmp.V5BS5xp3mS/selfservice_bz_747722.10131.out 2>&1
:: [   PASS   ] :: BZ 747722 not found
:: [   LOG    ] :: Duration: 4s
:: [   LOG    ] :: Assertions: 1 good, 0 bad
:: [   PASS   ] :: RESULT: selfservice_bz_747722 ipa selfservice-find --attrs="" returns internal error

Manual Test Results ::

[root@hp-xw6600-01 ipa-selfservice]# ipa selfservice-find --attrs=""
----------------------
4 selfservices matched
----------------------
  Self-service name: Self can write own password
  Permissions: write
  Attributes: userpassword, krbprincipalkey, sambalmpassword,
              sambantpassword

  Self-service name: User Self service
  Permissions: write
  Attributes: givenname, sn, cn, displayname, title, initials, loginshell,
              gecos, homephone, mobile, pager, facsimiletelephonenumber,
              telephonenumber, street, roomnumber, l, st, postalcode,
              manager, secretary, description, carlicense, labeleduri,
              inetuserhttpurl, seealso, employeetype, businesscategory, ou

  Self-service name: Users can manage their own SSH public keys
  Permissions: write
  Attributes: ipasshpubkey

  Self-service name: bz747741
  Permissions: write
  Attributes: l
----------------------------
Number of entries returned 4
----------------------------

Comment 9 Martin Kosek 2012-04-18 20:50:37 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No documentation needed.

Comment 11 errata-xmlrpc 2012-06-20 13:15:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0819.html