Bug 74311 - improperly written host IPs cause cause application parse errors.
improperly written host IPs cause cause application parse errors.
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: redhat-config-nfs (Show other bugs)
8.0
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Brent Fox
:
: 74187 75739 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-09-20 02:03 EDT by bman
Modified: 2007-04-18 12:46 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-09-03 18:15:14 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)
patch to nfsBackend to properly parse exports file (4.65 KB, patch)
2003-06-04 20:21 EDT, Michael Kenney
no flags Details | Diff

  None (edit)
Description bman 2002-09-20 02:03:12 EDT
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 16:21:15 EDT
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 16:52:25 EDT
*** Bug 75739 has been marked as a duplicate of this bug. ***
Comment 3 Brent Fox 2002-10-14 16:52:56 EDT
*** Bug 74187 has been marked as a duplicate of this bug. ***
Comment 4 Michael Kenney 2003-06-04 20:21:14 EDT
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 18:15:14 EDT
Should be fixed with redhat-config-nfs-1.0.11 in Rawhide.

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