Bug 516496 - system-config-network lets you save data that crash it while parsing
Summary: system-config-network lets you save data that crash it while parsing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: system-config-network
Version: 5.3
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: Harald Hoyer
QA Contact: Branislav Blaškovič
URL:
Whiteboard:
Depends On:
Blocks: 1049888
TreeView+ depends on / blocked
 
Reported: 2009-08-10 08:55 UTC by Tilman Baumann
Modified: 2014-09-16 00:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, the system-config-network service did not handle correctly those entries in the /etc/hosts/ directory that were specified only with an IP address and with no host name, which caused system-config-network to fail. This bug has been fixed and system-config-network now works properly in the described scenario.
Clone Of:
Environment:
Last Closed: 2014-09-16 00:17:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1195 0 normal SHIPPED_LIVE system-config-network bug fix update 2014-09-16 04:14:20 UTC

Description Tilman Baumann 2009-08-10 08:55:51 UTC
Description of problem:
system-config-network-gui allows you to save host entries with no ip, hostname or alias.
A entry with for example only a ip will cause system-config-network-gui to fail at next startup.

This entry will for crash system-config-network-gui
cat /etc/sysconfig/networking/profiles/default/hosts
10.33.1.83              # Crashme
10.33.1.84      foo     bar


This problem is fixed in Fedora 11 (and maybe earlier).
It not only does not allow you to save broken entries. It can parse them again and tell you that there is a error without crashing.


Can you please make sure this fix goes into RHEL6 and possibly RHEL5.4.



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

system-config-network-1.3.99.12-1.el5
RHEL5.3

How reproducible:

create the following file with these 
/etc/sysconfig/networking/profiles/default/hosts
10.33.1.83
10.33.1.84      foo     bar

Or save a entry with only a IP no hostname and alias.

Comment 2 RHEL Program Management 2009-11-06 19:06:31 UTC
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".

Comment 5 Branislav Blaškovič 2014-05-15 12:51:49 UTC
I can reproduce it with system-config-network-1.3.99.12-1.el5.

Fixed in system-config-network-1.3.99.22-1.el5.
Popup showup:

  Error while parsing /etc/hosts:
  Wrong Hostname on line 3

Comment 7 errata-xmlrpc 2014-09-16 00:17:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1195.html


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