Bug 744205

Summary: [ipa webui] Config - User search fields - if blank, throws error - an internal error has occurred
Product: Red Hat Enterprise Linux 6 Reporter: Namita Soman <nsoman>
Component: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 6.1CC: dpal, jgalipea, mkosek
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:
: 745575 (view as bug list) Environment:
Last Closed: 2012-06-20 13:14:43 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: 745575, 756082    

Description Namita Soman 2011-10-07 13:29:16 UTC
Description of problem:
Config - User search fields - if blank, throws error - an internal error has occurred


Version-Release number of selected component (if applicable):
ipa-server-2.1.1-101.20111004T0103zgita013597.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. In Configuration page, set User search fields to blank
2. Click Update

  
Actual results:
throws error:
an internal error has occurred
with traceback in https error.log

Expected results:
a more user friendly error message

Additional info:

trace back in the /var/log/httpd/errors_log:

[Fri Oct 07 08:52:24 2011] [error] AttributeError: 'NoneType' object has no attribute 'split'
[Fri Oct 07 08:52:24 2011] [error] ipa: INFO: admin@TESTRELM: config_mod(ipausersearchfields=[], rights=True, all=True): AttributeError
[Fri Oct 07 08:53:43 2011] [error] ipa: ERROR: non-public: AttributeError: 'NoneType' object has no attribute 'split'
[Fri Oct 07 08:53:43 2011] [error] Traceback (most recent call last):
[Fri Oct 07 08:53:43 2011] [error]   File "/usr/lib/python2.6/site-packages/ipaserver/rpcserver.py", line 223, in wsgi_execute
[Fri Oct 07 08:53:43 2011] [error]     result = self.Command[name](*args, **options)
[Fri Oct 07 08:53:43 2011] [error]   File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 432, in __call__
[Fri Oct 07 08:53:43 2011] [error]     ret = self.run(*args, **options)
[Fri Oct 07 08:53:43 2011] [error]   File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 738, in run
[Fri Oct 07 08:53:43 2011] [error]     return self.execute(*args, **options)
[Fri Oct 07 08:53:43 2011] [error]   File "/usr/lib/python2.6/site-packages/ipalib/plugins/baseldap.py", line 991, in execute
[Fri Oct 07 08:53:43 2011] [error]     ldap, dn, entry_attrs, attrs_list, *keys, **options
[Fri Oct 07 08:53:43 2011] [error]   File "/usr/lib/python2.6/site-packages/ipalib/plugins/config.py", line 208, in pre_callback
[Fri Oct 07 08:53:43 2011] [error]     fields = entry_attrs[k].split(',')
[Fri Oct 07 08:53:43 2011] [error] AttributeError: 'NoneType' object has no attribute 'split'
[Fri Oct 07 08:53:43 2011] [error] ipa: INFO: admin@TESTRELM: config_mod(ipausersearchfields=[], rights=True, all=True): AttributeError

Comment 2 RHEL Program Management 2011-10-07 14:53:48 UTC
Since RHEL 6.2 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 3 Dmitri Pal 2011-10-07 18:58:06 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/1945

Comment 6 Jenny Severance 2012-04-02 14:10:55 UTC
verified ::

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: bz744205 ipa config-mod user search field blank - an internal error has occurred
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Internal Error and traceback bz744205 fixed.
:: [   LOG    ] :: Executing: ipa config-mod --usersearch=
:: [   LOG    ] :: "ipa config-mod --usersearch=" failed as expected.
:: [   PASS   ] :: Error message as expected: ipa: ERROR: 'usersearch' is required
:: [   PASS   ] :: Verify expected error message.
:: [   LOG    ] :: Duration: 4s
:: [   LOG    ] :: Assertions: 3 good, 0 bad
:: [   PASS   ] :: RESULT: bz744205 ipa config-mod user search field blank - an internal error has occurred

version ::
ipa-server-2.2.0-7.el6.x86_64

Comment 8 Martin Kosek 2012-04-26 15:07:55 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 10 errata-xmlrpc 2012-06-20 13:14:43 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