#1082 Crash when apply settings

Created 6 years ago by jhrozek
Modified 9 months ago

https://bugzilla.redhat.com/show_bug.cgi?id=752495

Description of problem:

Whenever I click on the apply button, the dialog crashes, my settings are not
saved.


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

authconfig-gtk-6.1.16-1.fc16.x86_64

How reproducible:

100%

Steps to Reproduce:
1. system-config-gtk
2. set some parameters, such as an LDAP configuration
3. click apply

Actual results:

[root@briemersw sssd]# system-config-authentication
Traceback (most recent call last):
  File "/usr/sbin/system-config-authentication", line 701, in <module>
    module.apply()
  File "/usr/sbin/system-config-authentication", line 650, in apply
    self.info.writeChanged(self.pristineinfo)
  File "/usr/share/authconfig/authinfo.py", line 3632, in writeChanged
    ret = ret and group.saveFunction()
  File "/usr/share/authconfig/authinfo.py", line 2974, in writeSSSD
    self.sssdConfig.save_domain(domain)
  File "/usr/lib/python2.7/site-packages/SSSDConfig.py", line 1765, in
save_domain
    self.delete_option_subtree(section_subtree, 'option', option['name'], True)
  File "/usr/lib/python2.7/site-packages/ipachangeconf.py", line 559, in
delete_option_subtree
    index, item = self.findOpts(subtree, type, name, exclude_sections)
  File "/usr/lib/python2.7/site-packages/ipachangeconf.py", line 201, in
findOpts
    if o['type'] == type and o['name'] == name:
TypeError: 'int' object is not subscriptable


Expected results:

savings are applied

Additional info:

Fields changed

coverity: =>
description: https://bugzilla.redhat.com/show_bug.cgi?id=752495

{{{
Description of problem:

Whenever I click on the apply button, the dialog crashes, my settings are not
saved.

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

authconfig-gtk-6.1.16-1.fc16.x86_64

How reproducible:

100%

Steps to Reproduce:
1. system-config-gtk
2. set some parameters, such as an LDAP configuration
3. click apply

Actual results:

[root @briemersw sssd]# system-config-authentication
Traceback (most recent call last):
File "/usr/sbin/system-config-authentication", line 701, in <module>
module.apply()
File "/usr/sbin/system-config-authentication", line 650, in apply
self.info.writeChanged(self.pristineinfo)
File "/usr/share/authconfig/authinfo.py", line 3632, in writeChanged
ret = ret and group.saveFunction()
File "/usr/share/authconfig/authinfo.py", line 2974, in writeSSSD
self.sssdConfig.save_domain(domain)
File "/usr/lib/python2.7/site-packages/SSSDConfig.py", line 1765, in
save_domain
self.delete_option_subtree(section_subtree, 'option', option['name'], True)
File "/usr/lib/python2.7/site-packages/ipachangeconf.py", line 559, in
delete_option_subtree
index, item = self.findOpts(subtree, type, name, exclude_sections)
File "/usr/lib/python2.7/site-packages/ipachangeconf.py", line 201, in
findOpts
if o['type'] == type and o['name'] == name:
TypeError: 'int' object is not subscriptable

Expected results:

savings are applied

Additional info:
}}}
=> https://bugzilla.redhat.com/show_bug.cgi?id=752495

{{{
Description of problem:

Whenever I click on the apply button, the dialog crashes, my settings are not
saved.

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

authconfig-gtk-6.1.16-1.fc16.x86_64

How reproducible:

100%

Steps to Reproduce:
1. system-config-gtk
2. set some parameters, such as an LDAP configuration
3. click apply

Actual results:

[root @briemersw sssd]# system-config-authentication
Traceback (most recent call last):
File "/usr/sbin/system-config-authentication", line 701, in <module>
module.apply()
File "/usr/sbin/system-config-authentication", line 650, in apply
self.info.writeChanged(self.pristineinfo)
File "/usr/share/authconfig/authinfo.py", line 3632, in writeChanged
ret = ret and group.saveFunction()
File "/usr/share/authconfig/authinfo.py", line 2974, in writeSSSD
self.sssdConfig.save_domain(domain)
File "/usr/lib/python2.7/site-packages/SSSDConfig.py", line 1765, in
save_domain
self.delete_option_subtree(section_subtree, 'option', option['name'], True)
File "/usr/lib/python2.7/site-packages/ipachangeconf.py", line 559, in
delete_option_subtree
index, item = self.findOpts(subtree, type, name, exclude_sections)
File "/usr/lib/python2.7/site-packages/ipachangeconf.py", line 201, in
findOpts
if o['type'] == type and o['name'] == name:
TypeError: 'int' object is not subscriptable

Expected results:

savings are applied

Additional info:
}}}

milestone: NEEDS_TRIAGE => SSSD 1.7.0
patch: => 0
rhbz: =>
tests: => 0
testsupdated: => 0
upgrade: => 0

Fields changed

owner: somebody => jhrozek

Fixed in master: 535b4fc

resolution: => fixed
status: new => closed

9 months ago

Metadata Update from @jhrozek:
- Issue assigned to jhrozek
- Issue set to the milestone: SSSD 1.7.0

Login to comment on this ticket.

defect

SSSD

0

0

https://bugzilla.redhat.com/show_bug.cgi?id=752495

cancel