Bug 155039 - GUI should do something graceful if config to open is invalid
GUI should do something graceful if config to open is invalid
Status: CLOSED NEXTRELEASE
Product: Red Hat Cluster Suite
Classification: Red Hat
Component: redhat-config-cluster (Show other bugs)
4
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jim Parsons
Cluster QE
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-15 16:00 EDT by Corey Marthaler
Modified: 2009-04-16 16:07 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-04-29 16:49:00 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Corey Marthaler 2005-04-15 16:00:09 EDT
Description of problem:
I added some garbage to my config and then tried to open it with the GUI and it
just backtraced and died.

[root@tank-03 ~]# system-config-cluster
Traceback (most recent call last):
  File "/usr/sbin/system-config-cluster", line 316, in on_no_conf_open
    self.open_limited(None)
  File "/usr/sbin/system-config-cluster", line 229, in open_limited
    self.model_builder = ModelBuilder(DLM_TYPE, filepath)
  File "/usr/share/system-config-cluster/ModelBuilder.py", line 114, in __init__
    self.parent = minidom.parse(self.filename)
  File "/usr/lib/python2.3/site-packages/_xmlplus/dom/minidom.py", line 1908, in
parse
    return expatbuilder.parse(file)
  File "/usr/lib/python2.3/site-packages/_xmlplus/dom/expatbuilder.py", line
924, in parse
    result = builder.parseFile(fp)
  File "/usr/lib/python2.3/site-packages/_xmlplus/dom/expatbuilder.py", line
207, in parseFile
    parser.Parse(buffer, 0)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 2, column 1
Traceback (most recent call last):
  File "/usr/sbin/system-config-cluster", line 428, in ?
    runFullGUI()
  File "/usr/sbin/system-config-cluster", line 411, in runFullGUI
    baseapp = basecluster(glade_xml, app)
  File "/usr/sbin/system-config-cluster", line 129, in __init__
    self.configtab = ConfigTab(glade_xml, self.model_builder)
  File "/usr/share/system-config-cluster/ConfigTab.py", line 78, in __init__
    self.reset_tree_model)
  File "/usr/share/system-config-cluster/ConfigTabController.py", line 132, in
__init__
    self.faildom_controller =
FaildomController(self.glade_xml,self.model_builder,reset_tree_model)
  File "/usr/share/system-config-cluster/FaildomController.py", line 27, in __init__
    self.faildoms = self.model_builder.getFailoverDomainPtr()
AttributeError: 'NoneType' object has no attribute 'getFailoverDomainPtr'


Version-Release number of selected component (if applicable):
system-config-cluster-0.9.33-1.0.noarch.rpm
Comment 1 Jim Parsons 2005-04-29 13:31:50 EDT
Addressed in 0.9.43
Comment 2 Corey Marthaler 2005-04-29 16:49:00 EDT
fix verified in -44.

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