Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Bartel2014-04-28 06:16:45 -0400
committerJan Bartel2014-04-28 06:17:49 -0400
commitb186d3eb6e254171542052583a010f411519df85 (patch)
tree7c28abacd0ce35957e66ea99ddb7dd1062634914 /jetty-security/src/main/java/org/eclipse
parent703deea1dfcfd8586955328736b5d0b35a48709a (diff)
downloadorg.eclipse.jetty.project-b186d3eb6e254171542052583a010f411519df85.tar.gz
org.eclipse.jetty.project-b186d3eb6e254171542052583a010f411519df85.tar.xz
org.eclipse.jetty.project-b186d3eb6e254171542052583a010f411519df85.zip
428904 Add logging of which webapp has path with uncovered http methods
Diffstat (limited to 'jetty-security/src/main/java/org/eclipse')
-rw-r--r--jetty-security/src/main/java/org/eclipse/jetty/security/ConstraintSecurityHandler.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/jetty-security/src/main/java/org/eclipse/jetty/security/ConstraintSecurityHandler.java b/jetty-security/src/main/java/org/eclipse/jetty/security/ConstraintSecurityHandler.java
index d8ad639180..201618d89d 100644
--- a/jetty-security/src/main/java/org/eclipse/jetty/security/ConstraintSecurityHandler.java
+++ b/jetty-security/src/main/java/org/eclipse/jetty/security/ConstraintSecurityHandler.java
@@ -45,6 +45,7 @@ import org.eclipse.jetty.server.HttpConfiguration;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.Response;
import org.eclipse.jetty.server.UserIdentity;
+import org.eclipse.jetty.server.handler.ContextHandler;
import org.eclipse.jetty.util.log.Log;
import org.eclipse.jetty.util.log.Logger;
import org.eclipse.jetty.util.security.Constraint;
@@ -820,7 +821,9 @@ public class ConstraintSecurityHandler extends SecurityHandler implements Constr
if (paths != null && !paths.isEmpty())
{
for (String p:paths)
- LOG.warn("Path with uncovered http methods: {}",p);
+ LOG.warn("{} has uncovered http methods for path: {}",ContextHandler.getCurrentContext(), p);
+ if (LOG.isDebugEnabled())
+ LOG.debug(new Throwable());
return true;
}
return false;

Back to the top