Bug 175420 - OSError from NamedConf.read mishandled in load method
Summary: OSError from NamedConf.read mishandled in load method
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-bind
Version: 3
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Martin Stransky
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2005-12-10 00:08 UTC by Lloyd Kvam
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Clone Of:
Last Closed: 2006-08-17 10:42:49 UTC

Attachments (Terms of Use)

Description Lloyd Kvam 2005-12-10 00:08:03 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc3 Firefox/1.0.7

Description of problem:
named.conf had an include statement include "internal.conf"; that was not found.

NamedConf.load mishandled the exception instance returned from the read method.
I've enclosed my method for fixing the problem.

NamedConf.load (near line 315)
                    e = self.read(self.files[i]['file'])
                    if e != 0:
                        self.errors.append(str(e))  # was self.errors = e
                        return e

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

How reproducible:

Steps to Reproduce:
1.Need an include statement in named.conf that read method won't find

Actual Results:  Taceback is shown below

Expected Results:  gui screen should have appeared.

Additional info:

Traceback (most recent call last):
  File "/usr/sbin/system-config-bind", line 191, in ?
  File "/usr/sbin/system-config-bind", line 91, in __init__
    self.bind=BIND(self, argv)
  File "/usr/share/system-config-bind/BIND.py", line 80, in __init__
    gui.error(_('DNS Configuration File %s Initialisation Error:') % self.nmdc.f iles[0]['file'] , string.join(self.nmdc.errors,"\n"),True)
  File "/usr/lib/python2.3/string.py", line 135, in join
    return sep.join(words)
TypeError: sequence item 0: expected string, int found

Comment 1 Jason Vas Dias 2005-12-20 01:52:39 UTC
This problem is now fixed with system-config-bind-4.0.0-33 (FC3) and 
system-config-bind-4.0.0-33_FC4  - thanks!

Comment 2 Fedora Update System 2005-12-20 03:02:09 UTC
From User-Agent: XML-RPC

system-config-bind-4.0.0-33 has been pushed for FC3, which should resolve this issue.  If these problems are still present in this version, then please make note of it in this bug report.

Comment 3 Fedora Update System 2005-12-20 03:02:33 UTC
From User-Agent: XML-RPC

system-config-bind-4.0.0-33_FC4 has been pushed for FC4, which should resolve this issue.  If these problems are still present in this version, then please make note of it in this bug report.

Comment 4 Matthew Miller 2006-07-10 21:11:20 UTC
Fedora Core 3 is now maintained by the Fedora Legacy project for security
updates only. If this problem is a security issue, please reopen and
reassign to the Fedora Legacy product. If it is not a security issue and
hasn't been resolved in the current FC5 updates or in the FC6 test
release, reopen and change the version to match.

Thank you!

Comment 5 Martin Stransky 2006-08-17 10:42:49 UTC
Please reopen if this problem still persist.

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