Bug 74311

Summary: improperly written host IPs cause cause application parse errors.
Product: [Retired] Red Hat Linux Reporter: bman <bman_08>
Component: redhat-config-nfsAssignee: Brent Fox <bfox>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-09-03 22:15:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch to nfsBackend to properly parse exports file none

Description bman 2002-09-20 06:03:12 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020809

Description of problem:
If a person misenters the data in the hosts box for a share, subsequent attempts
to start redhat-config-nfs will fail.  Once /etc/exports has has been corrected
the problem goes away.  

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


How reproducible:
Always

Steps to Reproduce:
1.Create a share
2.under hosts list something inapropriate like several IP addresses separated by
semicolons (don't ask)  The error can also be recreated with an extra newline at
the end of the /etc/exports file.
3.save and quit
	

Actual Results:  # redhat-config-nfs
Traceback (most recent call last):
  File "/usr/share/redhat-config-nfs/redhat-config-nfs.py", line 29, in ?
    mainWindow.mainWindow()
  File "/usr/share/redhat-config-nfs/mainWindow.py", line 141, in __init__
    self.exports = nfsBackend.NfsBackend()
  File "/usr/share/redhat-config-nfs/nfsBackend.py", line 30, in __init__
    self.parseFile()
  File "/usr/share/redhat-config-nfs/nfsBackend.py", line 88, in parseFile
    hostname, options = string.split(tokens[1], "(")
ValueError: unpack list of wrong size


Expected Results:  the application should have started and let me correct the
host list.

Additional info:

Comment 1 Brent Fox 2002-09-30 20:21:15 UTC
Ok, I'll take a look at this.  My parser for /etc/exports could be much better
overall, so there's some work to be done here.

Comment 2 Brent Fox 2002-10-14 20:52:25 UTC
*** Bug 75739 has been marked as a duplicate of this bug. ***

Comment 3 Brent Fox 2002-10-14 20:52:56 UTC
*** Bug 74187 has been marked as a duplicate of this bug. ***

Comment 4 Michael Kenney 2003-06-05 00:21:14 UTC
Created attachment 92150 [details]
patch to nfsBackend to properly parse exports file

This bug is still present in RH9.  This patch seems to fix the problem.

Comment 5 Brent Fox 2003-09-03 22:15:14 UTC
Should be fixed with redhat-config-nfs-1.0.11 in Rawhide.