stoty commented on code in PR #6783:
URL: https://github.com/apache/hbase/pull/6783#discussion_r2019753368
##########
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:
Consider filing a Jetty bug if you can confirm it's a bug.
--
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]