#3311 ipa delegation-find --group option returns internal error
Closed: Fixed None Opened 8 years ago by mkosek.

https://bugzilla.redhat.com/show_bug.cgi?id=888524 (Red Hat Enterprise Linux 6)

Description of problem:

In RHEL6.4 version of IPA, I'm seeing internal errors when searching for
delegations by group:

[root@rhel6-1 ipa-delegation-cli]# ipa delegation-find --group=gr1000
ipa: ERROR: an internal error has occurred

Version-Release number of selected component (if applicable):
ipa-server-3.0.0-15.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. Setup IPA server
2. kinit admin
3. ipa group-add mg1000 --desc=mg1000
4. ipa group-add gr1000 --desc=gr1000
5. ipa delegation-add delegation_find_positive_1000 --membergroup=mg1000
--group=gr1000 --attrs=mobile
6. ipa delegation-find --group=gr1000

Actual results:
ipa: ERROR: an internal error has occurred

Expected results:
returns delegation_find_positive_1000 listing

Additional info:

[root@rhel6-1 ipa-delegation-cli]# tail -19 /var/log/httpd/error_log
[Tue Dec 18 14:07:06 2012] [error] ipa: INFO: admin@TESTRELM.COM: ping():
SUCCESS
[Tue Dec 18 14:07:06 2012] [error] ipa: ERROR: non-public: AttributeError:
'unicode' object has no attribute 'value'
[Tue Dec 18 14:07:06 2012] [error] Traceback (most recent call last):
[Tue Dec 18 14:07:06 2012] [error]   File
"/usr/lib/python2.6/site-packages/ipaserver/rpcserver.py", line 334, in
wsgi_execute
[Tue Dec 18 14:07:06 2012] [error]     result = self.Command[name](*args,
**options)
[Tue Dec 18 14:07:06 2012] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 435, in __call__
[Tue Dec 18 14:07:06 2012] [error]     ret = self.run(*args, **options)
[Tue Dec 18 14:07:06 2012] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 747, in run
[Tue Dec 18 14:07:06 2012] [error]     return self.execute(*args, **options)
[Tue Dec 18 14:07:06 2012] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/plugins/delegation.py", line 200, in
execute
[Tue Dec 18 14:07:06 2012] [error]     results = api.Command['aci_find'](term,
**kw)['result']
[Tue Dec 18 14:07:06 2012] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 435, in __call__
[Tue Dec 18 14:07:06 2012] [error]     ret = self.run(*args, **options)
[Tue Dec 18 14:07:06 2012] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 747, in run
[Tue Dec 18 14:07:06 2012] [error]     return self.execute(*args, **options)
[Tue Dec 18 14:07:06 2012] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/plugins/aci.py", line 804, in execute
[Tue Dec 18 14:07:06 2012] [error]     cn = groupdn[0]['cn'].value
[Tue Dec 18 14:07:06 2012] [error] AttributeError: 'unicode' object has no
attribute 'value'
[Tue Dec 18 14:07:06 2012] [error] ipa: INFO: admin@TESTRELM.COM:
delegation_find(None, group=u'gr1000', pkey_only=False, all=False, raw=False,
version=u'2.46'): AttributeError

Patch freeipa-mkosek-344-fix-delegation-find-command-group-handling.patch sent for review

Will be fixed in 3.0.2.

master: 86e56b9[[BR]]
ipa-3-1: 8183e2c[[BR]]
ipa-3-0: 00e18a8

Metadata Update from @mkosek:
- Issue assigned to someone
- Issue set to the milestone: FreeIPA 3.0.2

4 years ago

Login to comment on this ticket.

Metadata