428904 Add logging of which webapp has path with uncovered http methods

This commit is contained in:
Jan Bartel 2014-04-28 12:16:45 +02:00
parent 703deea1df
commit b186d3eb6e
1 changed files with 4 additions and 1 deletions

View File

@ -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;