Bug 1166584

Summary: [GSS] (6.4.x) Add a feature to override the default error report valve
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Masafumi Miura <mmiura>
Component: WebAssignee: Carlo de Wolf <cdewolf>
Status: CLOSED UPSTREAM QA Contact: Radim Hatlapatka <rhatlapa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbaranow, cdewolf, dereed
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-22 08:31:27 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Masafumi Miura 2014-11-21 09:57:27 UTC
The default error report valve "org.apache.catalina.valves.ErrorReportValve" shows stack trace and version information which is not suitable for production use. However, it's unable to be overridable in EAP 6. 

We can configure a valve setting in jboss-web.xml inside each web application but the problem here is that setting the valve in the jboss-web.xml is not actually replacing the default ErrorReportValve. Instead, it is leaving the default ErrorReportValve first in the valve pipeline and then placing the custom error valve later in the valve pipeline.

Also, though global valve was introduced since EAP 6.1, it's also does not work in order to override the default error report valve. 

Please provide a feature to override the default error report valve like "errorReportValveClass" setting in the previous EAP 4.x/5.x.

Comment 3 Rostislav Svoboda 2015-06-22 14:16:45 UTC
This looks like a RFE. qa_nacking for CP stream.