#1082 Crash when apply settings
Closed: Fixed None Opened 12 years ago by jhrozek.

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

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

7 years ago

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/2124

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Login to comment on this ticket.

Metadata