Bug 163304 - Save causes traceback
Save causes traceback
Product: Fedora
Classification: Fedora
Component: system-config-bind (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jason Vas Dias
: 163305 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2005-07-14 18:07 EDT by Gabriel Schulhof
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: 4.0.0-19
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-08-19 09:08:17 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Requested config tar (20.00 KB, application/x-tar)
2005-07-15 01:17 EDT, Gabriel Schulhof
no flags Details

  None (edit)
Description Gabriel Schulhof 2005-07-14 18:07:55 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.7.8-2

Description of problem:
system-config-bind is pretty much useless, since one cannot save all the neat things one does with it. Upon save, an "Are you sure" type message box pops up, where, when you answer "Yes", the program produces the following in the terminal:

Traceback (most recent call last):
  File "/usr/share/system-config-bind/ErrorDialog.py", line 95, in on_exit
  File "/usr/share/system-config-bind/ZoneTree.py", line 463, in answer
    if s.bind.save() and s.bind.named_is_running():
  File "/usr/share/system-config-bind/BIND.py", line 239, in save
  File "/usr/share/system-config-bind/Zone.py", line 296, in save
    os.write(fd, self.out())
  File "/usr/share/system-config-bind/Zone.py", line 271, in out
    while ( begin <= end ) and (self.contents[begin] != '\n'):
IndexError: string index out of range

The Yes/No dialog remains on the screen.

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

How reproducible:

Steps to Reproduce:
1. Install system-config-bind
2. Set up your domain
3. Attempt to save your changes.

Actual Results:  Python produced a trace in the terminal and did not save my changes.

Expected Results:  My changes should have been saved.

Additional info:
Comment 1 Gabriel Schulhof 2005-07-14 18:11:33 EDT
*** Bug 163305 has been marked as a duplicate of this bug. ***
Comment 2 Gabriel Schulhof 2005-07-14 18:12:35 EDT
Note to self: Never click "Refresh" on post_bug.cgi. Sorry !
Comment 3 Jason Vas Dias 2005-07-14 19:00:41 EDT
Please can you tell me what changes you made when this occurred ?
I've not been able to make s-c-b do this so far.
It would also be most helpful if you would send me your configuration files - do:
# . /etc/sysconfig/named; \
  tar -cpf /tmp/named.conf.tar ${ROOTDIR}/{etc/{named.conf,rndc*},var/named} 
and append /tmp/named.conf.tar to this bug or send it to jvdias@redhat.com .
Thank you!
Comment 4 Gabriel Schulhof 2005-07-15 01:16:27 EDT
The configuration is unchanged from a fresh rpm install, since I was unable to
commit any changes made in s-c-b. Here's what I tried:
Make a new master zone
- Add an MX
- Add a few A records
Comment 5 Gabriel Schulhof 2005-07-15 01:17:32 EDT
Created attachment 116791 [details]
Requested config tar
Comment 6 Gabriel Schulhof 2005-07-15 02:07:38 EDT
I was able to use the tool, but only in a really paranoid fashion. I basically
added one record (including the zone itself) and saved. I did not remove a
single time.
Comment 7 Jason Vas Dias 2005-07-15 20:48:52 EDT
This bug is now fixed with system-config-bind-4.0.0-18, soon to be in FC updates,
but which meanwhile can be downloaded from: 
Please try out this version and let me know of any issues - thanks.
Comment 8 Gabriel Schulhof 2005-07-17 00:02:51 EDT
Yes. Now, when I click "New" on the toolbar while my zone is hilighted, instead
of a popup with all the different kinds of records I can add, I get:

Traceback (most recent call last):
  File "/usr/share/system-config-bind/ZoneTree.py", line 695, in NewClicked
    s.addMenu = AddMenu(s, sel, s.tree)
  File "/usr/share/system-config-bind/ZoneTree.py", line 252, in __init__
    if not s.zone.type in rr.types:
AttributeError: class NULL has no attribute 'types'
Comment 9 Jason Vas Dias 2005-07-17 18:11:32 EDT
This bug is now fixed with system-config-bind-4.0.0-19, soon to be in FC updates,
but which meanwhile can be downloaded from: 
Please try out this version and let me know of any issues - thanks.
Comment 10 Walter Justen 2005-08-19 09:08:17 EDT
Thanks for the bug report. This particular bug was fixed and a update package
was published for download. Please feel free to report any further bugs you find.

Note You need to log in before you can comment on or make changes to this bug.