#2159 Exception while removing all values in config plugin
Closed: Fixed None Opened 12 years ago by rcritten.

Trying to erase the contents of a config option will return various kinds of errors.

These are not marked as Required so we don't have to pass each and every one on each mod but they cannot be empty.

$ ipa config-mod --groupsearch=

ipa: DEBUG: raw: config_mod(ipagroupsearchfields=None, rights=False, all=False, raw=False, version=u'2.17')
ipa: DEBUG: config_mod(ipagroupsearchfields=None, rights=False, all=False, raw=False, version=u'2.17')
ipa: ERROR: non-public: AttributeError: 'NoneType' object has no attribute 'split'
Traceback (most recent call last):
  File "/home/rcrit/redhat/freeipa-master/ipaserver/rpcserver.py", line 223, in wsgi_execute
    result = self.Command[name](*args, **options)
  File "/home/rcrit/redhat/freeipa-master/ipalib/frontend.py", line 438, in __call__
    ret = self.run(*args, **options)
  File "/home/rcrit/redhat/freeipa-master/ipalib/frontend.py", line 696, in run
    return self.execute(*args, **options)
  File "/home/rcrit/redhat/freeipa-master/ipalib/plugins/baseldap.py", line 1118, in execute
    ldap, dn, entry_attrs, attrs_list, *keys, **options
  File "/home/rcrit/redhat/freeipa-master/ipalib/plugins/config.py", line 221, in pre_callback
    fields = entry_attrs[k].split(',')
AttributeError: 'NoneType' object has no attribute 'split'
ipa: INFO: admin@GREYOAK.COM: config_mod(ipagroupsearchfields=None, rights=False, all=False, raw=False, version=u'2.17'): AttributeError
ipa: DEBUG: response: InternalError: an internal error has occurred
ipa: DEBUG: Destroyed connection context.ldap2

Petr, please check this ticket. We need to make config options that we depend on to be there required. This would affect most of the config attributes.

master:[[BR]]
7cfc16c[[BR]]
79d4a34[[BR]]

ipa-2-2:[[BR]]
c6e4372[[BR]]
a787c8d[[BR]]

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

7 years ago

Login to comment on this ticket.

Metadata