NihalJain commented on code in PR #6783:
URL: https://github.com/apache/hbase/pull/6783#discussion_r2019165302
##########
hbase-http/src/main/java/org/apache/hadoop/hbase/http/HttpServer.java:
##########
@@ -758,7 +755,9 @@ protected void addDefaultApps(ContextHandlerCollection
parent, final String appD
if (logDir != null) {
ServletContextHandler logContext = new ServletContextHandler(parent,
"/logs");
logContext.addServlet(AdminAuthorizedServlet.class, "/*");
- logContext.setResourceBase(logDir);
+ // We are doing this as otherwise jetty 12 is not handling
/dir0/dir1/../dir2
+ String logDirCanonical = Paths.get(logDir).toFile().getCanonicalPath();
+ logContext.setResourceBase(logDirCanonical);
Review Comment:
for context of reviewers: i think its a bug in jetty, similar to
jetty/jetty.project#12833
Also refer https://www.eclipse.org/lists/jetty-users/msg10296.html
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]