Bug 77725 - traceback when account name has spaces in
traceback when account name has spaces in
Product: Red Hat Linux
Classification: Retired
Component: redhat-config-network (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Harald Hoyer
: 76934 (view as bug list)
Depends On:
Blocks: 81720
  Show dependency treegraph
Reported: 2002-11-12 12:55 EST by Tim Waugh
Modified: 2007-04-18 12:48 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-06-04 05:48:47 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Tim Waugh 2002-11-12 12:55:15 EST
Description of Problem:
Apparently redhat-config-network doesn't handle accounts names with spaces.

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

How Reproducible:
Don't know; submitting this by proxy

Traceback (most recent call last):
  File "/usr/sbin/neat", line 496, in on_applyButton_clicked
  File "/usr/sbin/neat", line 319, in save
  File "/usr/sbin/neat", line 326, in saveDevices
  File "/usr/sbin/../share/redhat-config-network/netconfpkg/NCDeviceList.py",
line 103, in save
    papconf = getPAPConf()
  File "/usr/sbin/../share/redhat-config-network/netconfpkg/NC_functions.py",
line 101, in getPAPConf
    DVpapconf = ConfPAP.ConfPAP("/etc/ppp/pap-secrets")
  File "/usr/lib/python2.2/site-packages/rhpl/ConfPAP.py", line 30, in __init__
    Conf.Conf.__init__(self, filename, '#', ' \t', ' \t')
  File "/usr/lib/python2.2/site-packages/rhpl/Conf.py", line 178, in __init__
  File "/usr/lib/python2.2/site-packages/rhpl/ConfPAP.py", line 35, in read
  File "/usr/lib/python2.2/site-packages/rhpl/ConfPAP.py", line 72, in initvars
    var = self.getfields()
  File "/usr/lib/python2.2/site-packages/rhpl/ConfPAP.py", line 95, in getfields
   raise IndexError, 'end quote not found in '+self.filename+':'+var[0]
IndexError: end quote not found in /etc/ppp/pap-secrets:OPTIM

Local variables in innermost frame:
var: ['OPTIM', '05', 'TRANSLEIS"', '*', '"286642904"']
quote: "
self: <rhpl.ConfPAP.ConfPAP instance at 0x8564fc4>
p: -6
Comment 1 Harald Hoyer 2002-11-13 06:32:06 EST
Problem here is e.g. the " after TRANSLEIS
'TRANSLEIS"', '*', '"286642904"'
Comment 2 Tim Waugh 2002-11-13 07:47:46 EST
Well, the original would have been:


The errant code is here (ConfPAP.py):

        var = Conf.Conf.getfields(self)
        if len(var[0]) and var[0][0] in '\'"':
            # found quote; strip from beginning and end
            quote = var[0][0]
            var[0] = var[0][1:]

Obviously this assumes that there are no IFS chars in the quoted field.

Should have used wordexp.. :-P
Comment 3 Harald Hoyer 2002-11-13 07:59:49 EST
ah oh... code stolen from Conf.py :)
Comment 4 Harald Hoyer 2002-11-13 09:24:39 EST
*** Bug 76934 has been marked as a duplicate of this bug. ***
Comment 5 Harald Hoyer 2003-01-13 10:21:28 EST
new packages to test available at:
Comment 6 Harald Hoyer 2004-06-04 05:48:47 EDT
Closing due to inactivity. Reopen, if the problem is still existing.

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