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:
parent
312a7e7100
commit
59586d8015
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue