#2407 Internal error : ipa config-mod addattr on user and group search fields
Closed: Fixed None Opened 12 years ago by rcritten.

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

Description of problem:

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:
:: [   LOG    ] :: ipaconfig_addaddtr negative test - ipagroupsearchfields -
only one cn allowed -
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:

:: [   LOG    ] :: Executing: ipa config-mod
--addattr=ipagroupsearchfields=newattr
:: [   LOG    ] :: "ipa config-mod --addattr=ipagroupsearchfields=newattr"
failed as expected.
:: [   LOG    ] :: ERROR: Message not as expected. GOT: ipa: ERROR: an internal
error has occurred  EXP: ipa: ERROR: ipagroupsearchfields: Only one value
allowed.
:: [   FAIL   ] :: Verify expected error message. (Expected 0, got 1)
:: [   LOG    ] :: Duration: 4s
:: [   LOG    ] :: Assertions: 0 good, 1 bad
:: [   FAIL   ] :: RESULT: ipaconfig_addaddtr negative test -
ipagroupsearchfields - only one cn allowed -

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:
:: [   LOG    ] :: ipaconfig_addaddtr negative test - ipausersearchfields only
one cn allowed -
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:

:: [   LOG    ] :: Executing: ipa config-mod
--addattr=ipausersearchfields=newattr
:: [   LOG    ] :: "ipa config-mod --addattr=ipausersearchfields=newattr"
failed as expected.
:: [   LOG    ] :: ERROR: Message not as expected. GOT: ipa: ERROR: an internal
error has occurred  EXP: ipa: ERROR: ipausersearchfields: Only one value
allowed.
:: [   FAIL   ] :: Verify expected error message. (Expected 0, got 1)
:: [   LOG    ] :: Duration: 3s
:: [   LOG    ] :: Assertions: 0 good, 1 bad
:: [   FAIL   ] :: RESULT: ipaconfig_addaddtr negative test -
ipausersearchfields only one cn allowed -



Version-Release number of selected component (if applicable):
ipa-server-2.2.0-101.20120215T0856zgit578669d.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. tests already automated
2.
3.

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

Expected results:
ipa: ERROR: ipagroupsearchfields: Only one value allowed.

Additional info:

httpd error log trace ::

[Fri Feb 17 09:10:27 2012] [error] ipa: INFO: admin@TESTRELM.COM:
config_mod(addattr=(u'ipagroupsearchfields=newattr',), rights=False, all=False,
raw=False, version=u'2.26'): AttributeError
[Fri Feb 17 09:10:29 2012] [error] ipa: ERROR: non-public: AttributeError:
'list' object has no attribute 'split'
[Fri Feb 17 09:10:29 2012] [error] Traceback (most recent call last):
[Fri Feb 17 09:10:29 2012] [error]   File
"/usr/lib/python2.6/site-packages/ipaserver/rpcserver.py", line 232, in
wsgi_execute
[Fri Feb 17 09:10:29 2012] [error]     result = self.Command[name](*args,
**options)
[Fri Feb 17 09:10:29 2012] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 438, in __call__
[Fri Feb 17 09:10:29 2012] [error]     ret = self.run(*args, **options)
[Fri Feb 17 09:10:29 2012] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 696, in run
[Fri Feb 17 09:10:29 2012] [error]     return self.execute(*args, **options)
[Fri Feb 17 09:10:29 2012] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/plugins/baseldap.py", line 1203, in
execute
[Fri Feb 17 09:10:29 2012] [error]     ldap, dn, entry_attrs, attrs_list,
*keys, **options
[Fri Feb 17 09:10:29 2012] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/plugins/config.py", line 218, in
pre_callback
[Fri Feb 17 09:10:29 2012] [error]     fields = entry_attrs[k].split(',')
[Fri Feb 17 09:10:29 2012] [error] AttributeError: 'list' object has no
attribute 'split'
[Fri Feb 17 09:10:29 2012] [error] ipa: INFO: admin@TESTRELM.COM:
config_mod(addattr=(u'ipausersearchfields=newattr',), rights=False, all=False,
raw=False, version=u'2.26'): AttributeError
[Fri Feb 17 09:10:31 2012] [error] ipa: ERROR: non-public: AttributeError:
'list' object has no attribute 'split'
[Fri Feb 17 09:10:31 2012] [error] Traceback (most recent call last):
[Fri Feb 17 09:10:31 2012] [error]   File
"/usr/lib/python2.6/site-packages/ipaserver/rpcserver.py", line 232, in
wsgi_execute
[Fri Feb 17 09:10:31 2012] [error]     result = self.Command[name](*args,
**options)
[Fri Feb 17 09:10:31 2012] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 438, in __call__
[Fri Feb 17 09:10:31 2012] [error]     ret = self.run(*args, **options)
[Fri Feb 17 09:10:31 2012] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 696, in run
[Fri Feb 17 09:10:31 2012] [error]     return self.execute(*args, **options)
[Fri Feb 17 09:10:31 2012] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/plugins/baseldap.py", line 1203, in
execute
[Fri Feb 17 09:10:31 2012] [error]     ldap, dn, entry_attrs, attrs_list,
*keys, **options
[Fri Feb 17 09:10:31 2012] [error]   File
"/usr/lib/python2.6/site-packages/ipalib/plugins/config.py", line 218, in
pre_callback
[Fri Feb 17 09:10:31 2012] [error]     fields = entry_attrs[k].split(',')
[Fri Feb 17 09:10:31 2012] [error] AttributeError: 'list' object has no
attribute 'split'

Moving to next month iteration.

We decided to close this one and open another ticket.

Metadata Update from @rcritten:
- Issue assigned to pviktori
- Issue set to the milestone: FreeIPA 2.2 Core Effort - 2012/04

7 years ago

Login to comment on this ticket.

Metadata