Bug 172877

Summary: Allows entry of empty environment variables
Product: Red Hat Enterprise Linux 4 Reporter: Ian Chapman <i.p.chapman>
Component: system-config-httpdAssignee: Phil Knirsch <pknirsch>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-10-25 15:27:11 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:

Description Ian Chapman 2005-11-10 19:37:14 UTC
From Bugzilla Helper:
User-Agent: Opera/8.5 (X11; Linux x86_64; U; en)

Description of problem:
The tool allows you to enter empty environment variables for CGI scripts, this 
breaks apache's syntax, it fails to restart and an error is produced, for 
example:

SetEnv takes 1-2 arguments, an environment variable name and optional value to 
pass to CGI.


Version-Release number of selected component (if applicable):
 system-config-httpd-1.3.1-1

How reproducible:
Always

Steps to Reproduce:
1. Edit or add a virtual host.
2. Click environment tab
3. Click add, but press OK without entering anything
4. Apply the changes
5. Restart apache
  

Actual Results:  Apache fails to restart and an error is produced.

Expected Results:  The tool should not produce invalid syntax in the apache configuration file. A 
warning should be given to the user.

Additional info:

Comment 1 Phil Knirsch 2006-10-25 15:27:11 UTC

*** This bug has been marked as a duplicate of 172866 ***