Bug 77725
| Summary: | traceback when account name has spaces in | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Tim Waugh <twaugh> |
| Component: | redhat-config-network | Assignee: | Harald Hoyer <harald> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.0 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2004-06-04 09:48:47 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 81720 | ||
Problem here is e.g. the " after TRANSLEIS 'TRANSLEIS"', '*', '"286642904"' Well, the original would have been:
"OPTIM 05 TRANSLEIS"
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
ah oh... code stolen from Conf.py :) *** Bug 76934 has been marked as a duplicate of this bug. *** new packages to test available at: ftp://people.redhat.com/harald/redhat-config-network/1.1.87-1/ ftp://people.redhat.com/harald/rhpl/0.74-2/ Closing due to inactivity. Reopen, if the problem is still existing. |
Description of Problem: Apparently redhat-config-network doesn't handle accounts names with spaces. Version-Release number of selected component (if applicable): redhat-config-network-1.1.20-1 How Reproducible: Don't know; submitting this by proxy Traceback (most recent call last): File "/usr/sbin/neat", line 496, in on_applyButton_clicked self.save() File "/usr/sbin/neat", line 319, in save self.saveDevices() File "/usr/sbin/neat", line 326, in saveDevices devicelist.save() 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__ self.read() File "/usr/lib/python2.2/site-packages/rhpl/ConfPAP.py", line 35, in read self.initvars() 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