Skip to content

Commit

Permalink
Issue #6026 - Cleaning up uncovered HTTP methods warning
Browse files Browse the repository at this point in the history
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
  • Loading branch information
joakime committed Mar 3, 2021
1 parent 1cb0a49 commit 82a5072
Showing 1 changed file with 5 additions and 10 deletions.
Expand Up @@ -716,8 +716,8 @@ protected boolean checkWebResourcePermissions(String pathInContext, Request requ
public void dump(Appendable out, String indent) throws IOException
{
dumpObjects(out, indent,
DumpableCollection.from("roles", _roles),
DumpableCollection.from("constraints", _constraintMappings));
DumpableCollection.from("roles", _roles),
DumpableCollection.from("constraints", _constraintMappings));
}

@Override
Expand All @@ -741,14 +741,9 @@ public boolean checkPathsWithUncoveredHttpMethods()
Set<String> paths = getPathsWithUncoveredHttpMethods();
if (paths != null && !paths.isEmpty())
{
ContextHandler.Context currentContext = ContextHandler.getCurrentContext();

for (String p : paths)
{
LOG.warn("{} has uncovered http methods for path: {}", currentContext, p);
}
if (LOG.isDebugEnabled())
LOG.debug("{} has uncovered http methods", currentContext, new Throwable());
LOG.warn("{} has paths with uncovered http methods: [{}]",
ContextHandler.getCurrentContext(),
String.join(", ", paths));
return true;
}
return false;
Expand Down

0 comments on commit 82a5072

Please sign in to comment.