[
https://issues.apache.org/jira/browse/HBASE-21500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17797447#comment-17797447
]
Nihal Jain commented on HBASE-21500:
------------------------------------
Sure [~zhangduo] let me do it. AFAIR, we were using this property in one of my
previous orgs to allow creating symlinks for resources on hbase ui, for
examples logs can point to a different folder via symlink only if this property
is enabled.
Also this is what chatgpt says about the property:
{quote}The {{org.eclipse.jetty.servlet.Default.aliases}} is a configuration
setting in Jetty, a Java HTTP (Web) server and Java Servlet container. This
setting controls whether Jetty allows the use of aliases in its handling of
static content.
If you set {{org.eclipse.jetty.servlet.Default.aliases}} to {{{}true{}}}, Jetty
will allow the use of symbolic links and aliases when serving static content.
This can be useful if your static content is spread across different
directories or even different systems, and you want to use symbolic links to
make it appear as if all the content is in one place.
If you set {{org.eclipse.jetty.servlet.Default.aliases}} to {{{}false{}}},
Jetty will not allow the use of symbolic links and aliases. This can be more
secure, as it ensures that Jetty can only serve content from the directories
you have explicitly specified.
By default, this setting is {{{}false{}}}.
{quote}
Let me put up a patch and also test out if this is how the property works.
> Jetty aliases parameter need to change as per jetty 9.x version
> ---------------------------------------------------------------
>
> Key: HBASE-21500
> URL: https://issues.apache.org/jira/browse/HBASE-21500
> Project: HBase
> Issue Type: Bug
> Affects Versions: 3.0.0-alpha-1, 2.1.0, 2.0.0, 2.0.1, 2.1.1
> Reporter: Bhupendra Kumar Jain
> Assignee: Nihal Jain
> Priority: Minor
> Fix For: 3.0.0-beta-2
>
> Attachments: HBASE-21500.master.001.patch
>
>
> Noticed that Jetty aliases parameter in HttpServer.java
> "*org.mortbay.jetty.servlet.Default.aliases*" is as per old jetty version and
> need to change as per jetty 9.x new version after the HBASE-12894
> Refer
> https://github.com/apache/hbase/blob/405bf5e6383a09f435baadbac6c389e9f6c43ac6/hbase-http/src/main/java/org/apache/hadoop/hbase/http/HttpServer.java#L647
> It should be *"org.eclipse.jetty.servlet.Default.aliases"*
--
This message was sent by Atlassian Jira
(v8.20.10#820010)