ASF Bugzilla – Attachment 32570 Details for
Bug 57705
RemoteAddrValve: no log message no explanation when valve rejects request
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add debug log when request is denied
tomcat-requestfiltervalve-debug.patch (text/plain), 1.17 KB, created by
Graham Leggett
on 2015-03-15 12:16:58 UTC
(
hide
)
Description:
Add debug log when request is denied
Filename:
MIME Type:
Creator:
Graham Leggett
Created:
2015-03-15 12:16:58 UTC
Size:
1.17 KB
patch
obsolete
>Index: java/org/apache/catalina/valves/RequestFilterValve.java >=================================================================== >--- java/org/apache/catalina/valves/RequestFilterValve.java (revision 1666658) >+++ java/org/apache/catalina/valves/RequestFilterValve.java (working copy) >@@ -27,6 +27,8 @@ > import org.apache.catalina.LifecycleException; > import org.apache.catalina.connector.Request; > import org.apache.catalina.connector.Response; >+import org.apache.juli.logging.Log; >+import org.apache.juli.logging.LogFactory; > > /** > * Implementation of a Valve that performs filtering based on comparing the >@@ -80,6 +82,12 @@ > "org.apache.catalina.valves.RequestFilterValve/1.0"; > > >+ /** >+ * Logger >+ */ >+ private static final Log log = LogFactory.getLog(RequestFilterValve.class); >+ >+ > // ----------------------------------------------------- Instance Variables > > >@@ -336,6 +344,10 @@ > } > > // Deny this request >+ if (log.isDebugEnabled()) { >+ log.debug("Denied: Request " + request.getRequestURI() >+ + " based on property '" + property + "'"); >+ } > denyRequest(request, response); > > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 57705
: 32570