NihalJain commented on code in PR #6783:
URL: https://github.com/apache/hbase/pull/6783#discussion_r1990095888
##########
hbase-http/src/main/java/org/apache/hadoop/hbase/http/HttpServer.java:
##########
@@ -796,7 +792,7 @@ private void configureAliasChecks(ServletContextHandler
context, boolean shouldS
if
(context.getAliasChecks().stream().anyMatch(aliasCheckerClass::isInstance)) {
LOG.debug("{} is already part of alias check list",
aliasCheckerClass.getName());
} else {
- context.addAliasCheck(new SymlinkAllowedResourceAliasChecker(context));
+ context.addAliasCheck(new
SymlinkAllowedResourceAliasChecker(context.getCoreContextHandler()));
Review Comment:
Log folder is broken if we have a relative path, I suspect it is a jetty
bug, may need to check more. Works fine for absolute path, otherwise fails
similar to https://www.eclipse.org/lists/jetty-users/msg10296.html
```
404
Not Found
org.apache.hadoop.hbase.http.AdminAuthorizedServlet-5aae8eb5
```
So basically it works fine if log directory is "/a/b/c/logs" but fails with
404 if it is "/a/b/c/d/../logs".
Need to figure this out!
--
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]