Bug 783473 - ipa delegation-find --membergroup= with no value returns internal error
Summary: ipa delegation-find --membergroup= with no value returns internal error
Keywords:
Status: CLOSED DUPLICATE of bug 747720
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: IDM QE LIST
URL:
Whiteboard:
: 783475 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-20 14:53 UTC by Scott Poore
Modified: 2013-05-22 20:25 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-09 13:25:59 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Scott Poore 2012-01-20 14:53:26 UTC
Description of problem:

Running ipa delegation-find using --membergroup= with no value returns an internal error:

# ipa delegation-find --membergroup=
ipa: ERROR: an internal error has occurred

Version-Release number of selected component (if applicable):

ipa-server-2.2.0-101.20120118T0229zgitbb854ce.el6.x86_64
ipa-admintools-2.2.0-101.20120118T0229zgitbb854ce.el6.x86_64
389-ds-base-libs-1.2.9.14-1.el6.x86_64
389-ds-base-1.2.9.14-1.el6.x86_64

How reproducible:

always

Steps to Reproduce:
1.  <setup ipa server>
2.  kinit admin
3.  ipa delegation-find --membergroup=
  
Actual results:

ipa: ERROR: an internal error has occurred

Expected results:

A more descriptive error should be returned.

Additional info:

Comment 2 Scott Poore 2012-01-20 15:28:22 UTC
messages from /var/log/httpd/error_log:

[Fri Jan 20 10:22:42 2012] [error] ipa: ERROR: non-public: AttributeError: 'NoneType' object has no attribute 'find'
[Fri Jan 20 10:22:42 2012] [error] Traceback (most recent call last):
[Fri Jan 20 10:22:42 2012] [error]   File "/usr/lib/python2.6/site-packages/ipaserver/rpcserver.py", line 229, in wsgi_execute
[Fri Jan 20 10:22:42 2012] [error]     result = self.Command[name](*args, **options)
[Fri Jan 20 10:22:42 2012] [error]   File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 438, in __call__
[Fri Jan 20 10:22:42 2012] [error]     ret = self.run(*args, **options)
[Fri Jan 20 10:22:42 2012] [error]   File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 696, in run
[Fri Jan 20 10:22:42 2012] [error]     return self.execute(*args, **options)
[Fri Jan 20 10:22:42 2012] [error]   File "/usr/lib/python2.6/site-packages/ipalib/plugins/delegation.py", line 196, in execute
[Fri Jan 20 10:22:42 2012] [error]     results = api.Command['aci_find'](term, **kw)['result']
[Fri Jan 20 10:22:42 2012] [error]   File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 438, in __call__
[Fri Jan 20 10:22:42 2012] [error]     ret = self.run(*args, **options)
[Fri Jan 20 10:22:42 2012] [error]   File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 696, in run
[Fri Jan 20 10:22:42 2012] [error]     return self.execute(*args, **options)
[Fri Jan 20 10:22:42 2012] [error]   File "/usr/lib/python2.6/site-packages/ipalib/plugins/aci.py", line 758, in execute
[Fri Jan 20 10:22:42 2012] [error]     dn = _group_from_memberof(kw['memberof'])
[Fri Jan 20 10:22:42 2012] [error]   File "/usr/lib/python2.6/site-packages/ipalib/plugins/aci.py", line 199, in _group_from_memberof
[Fri Jan 20 10:22:42 2012] [error]     st = memberof.find('memberOf=')
[Fri Jan 20 10:22:42 2012] [error] AttributeError: 'NoneType' object has no attribute 'find'
[Fri Jan 20 10:22:42 2012] [error] ipa: INFO: admin@TESTRELM: delegation_find(None, memberof=None, pkey_only=False, all=False, raw=False, version=u'2.21'): AttributeError

Comment 3 Dmitri Pal 2012-01-20 23:18:18 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/2288

Comment 4 Martin Kosek 2012-02-09 13:22:21 UTC
*** Bug 783475 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.