Bug 1098952

Summary: Improve httpd version information in the output of apachectl -V command, error_log and CHANGES
Product: [JBoss] JBoss Enterprise Web Server 2 Reporter: Masafumi Miura <mmiura>
Component: httpdAssignee: Weinan Li <weli>
Status: CLOSED NEXTRELEASE QA Contact: Libor Fuka <lfuka>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0.1CC: hokuda, jdoyle, pslavice, rsvoboda
Target Milestone: ---   
Target Release: 2.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-18 12:33:01 UTC Type: Bug
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: 1182069    

Description Masafumi Miura 2014-05-19 08:32:34 UTC
## Description of problem:

 * The current apachectl and error_log output only the based version of Apache httpd. 
 * The "CHANGES" file contains exactly same one to the based version of Apache httpd. 
 * We can not identify if it is JBoss EWS or not.
 * We can not know what version of JBoss EWS.
 * We can not know which CVEs is specially/additionally fixed in this version.


### Steps to Reproduce:

 * Check the output of the command "apachectl -V" or "httpd -V" 
 * Check the version information of ${EWS_HOME}/logs/error_log
 * Check ${EWS_HOME}/httpd/CHANGES


### Actual results:

 * apachectl -V shows:

~~~
$ ./apachectl -V
Server version: Apache/2.2.22 (Unix)
Server built:   Jun 17 2013 11:02:18
Server's Module Magic Number: 20051115:30
Server loaded:  APR 1.3.9, APR-Util 1.3.9
Compiled using: APR 1.3.9, APR-Util 1.3.9
Architecture:   64-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/etc/httpd"
 -D SUEXEC_BIN="/usr/sbin/suexec"
 -D DEFAULT_PIDLOG="run/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
~~~

 * error_log shows:

~~~
[notice] Apache/2.2.22 (Unix) DAV/2 mod_jk/1.2.37 mod_ssl/2.2.22 OpenSSL/1.0.0-fips configured -- resuming normal operations
~~~

 * The "CHANGES" file exactly same to the community version of httpd. 


### Expected results:
 
 * apachectl -V should show:

~~~
Server version: JBoss_Enterprise_Web_Server/2.0.1 (Unix)
Apache version: 2.2.22 (with additional fixes)
...(snip)...
Apache vulnerability fixes included:
  CVE-2012-XXXX  CVE-2013-XXXX  CVE-2013-XXXX  CVE-2013-XXXX
  CVE-2013-XXXX  CVE-2014-XXXX  CVE-2014-XXXX  ...
~~~

 * error_log should show:

~~~
[notice] JBoss_Enterprise_Web_Server/2.0.1 DAV/2 mod_jk/1.2.37 mod_ssl/2.2.22 OpenSSL/1.0.0-fips configured -- resuming normal operations
~~~

 * The "CHANGES" file contains the version information of JBoss EWS and additional fixes information.

Comment 2 Weinan Li 2014-06-18 12:33:01 UTC
Please discuss in https://issues.jboss.org/browse/JWS3-12 for EWS3