Bug 1027274

Summary: Enabling access log for virtual server does not require reload, but it is not active before server reload
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Jan Blizňák <jbliznak>
Component: WebAssignee: Rémy Maucherat <rmaucher>
Status: CLOSED CURRENTRELEASE QA Contact: Michael Cada <mcada>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0   
Target Milestone: DR4   
Target Release: EAP 6.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jan Blizňák 2013-11-06 13:07:17 UTC
Description of problem:
When enabling access log for virtual server through CLI no reload is required, but accesss logging is not active until server is reloaded.


Version-Release number of selected component (if applicable):
EAP 6.2.0.ER7

How reproducible:
always


Steps to Reproduce:
1. Get jboss-eap-6.2.zip and extract to get clean installation

2. Start server (standalone mode) and connect to CLI

3. Check log dir, <dist-dir>/standalone/log - no subdirectory exists

4. Enable access log in CLI:
/subsystem=web/virtual-server=default-host/access-log=configuration:add

5. Check log dir, <dist-dir>/standalone/log - no subdirectory exists

6. Perform web access several times by, ie. repeatedly go to http://localhost:8080

7. Wait few seconds (a minute to be more sure) for write buffer to be flushed

8. Check log dir again, still no subdir for virtual server there and no access log files there.



Actual results:
CLI prints {"outcome" => "success"} ie. no reload required 
and access logging is not active until server is reloaded, ie. no dir "default-host" in log directory and no files in there.

If reload is performed right after step 4), then in step 5) there exists subdirectory "default-host" with empty access log file and logging is active, ie. you can see modified file after web access.


Expected results:
Either reload-required flag is set after adding access log, or access logging is active immediately after activation.

Comment 1 Jan Blizňák 2013-11-12 15:38:23 UTC
This bug also include situation when attribute values are specified directly in :add(...) operation - reload not needed, but nothing is active until reload.

And to be complete, the same behaviour applies in case of removing access log through CLI (/subsystem=web/virtual-server=default-host/access-log=configuration:remove)- reload not needed, but access logging is active until reload.

Comment 2 Radim Hatlapatka 2014-08-04 14:29:50 UTC
Issue is still valid even with latest build EAP 6.3.0.ER10

Comment 3 Kabir Khan 2014-09-11 08:22:33 UTC
https://github.com/jbossas/jboss-eap/pull/1668

Comment 4 Radim Hatlapatka 2014-10-15 14:14:31 UTC
This is already merged and in the product.

Verified in EAP 6.4.0.DR4