HADOOP-7662. Fixed logs servlet to use the pathspec '/*' instead of '/' for correct filtering. Contributed by Thomas Graves.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1176849 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Vinod Kumar Vavilapalli 2011-09-28 12:36:30 +00:00
parent 312a7e7100
commit 59586d8015
2 changed files with 4 additions and 1 deletions

View File

@ -622,6 +622,9 @@ Release 0.23.0 - Unreleased
HADOOP-7631. Fixes a config problem to do with running streaming jobs HADOOP-7631. Fixes a config problem to do with running streaming jobs
(Eric Yang via ddas) (Eric Yang via ddas)
HADOOP-7662. Fixed logs servlet to use the pathspec '/*' instead of '/'
for correct filtering. (Thomas Graves via vinodkv)
Release 0.22.0 - Unreleased Release 0.22.0 - Unreleased
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -282,7 +282,7 @@ public class HttpServer implements FilterContainer {
if (logDir != null) { if (logDir != null) {
Context logContext = new Context(parent, "/logs"); Context logContext = new Context(parent, "/logs");
logContext.setResourceBase(logDir); logContext.setResourceBase(logDir);
logContext.addServlet(AdminAuthorizedServlet.class, "/"); logContext.addServlet(AdminAuthorizedServlet.class, "/*");
logContext.setDisplayName("logs"); logContext.setDisplayName("logs");
setContextAttributes(logContext, conf); setContextAttributes(logContext, conf);
defaultContexts.put(logContext, true); defaultContexts.put(logContext, true);