-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-28514: HBase web console automatically listing directories in static/css #5830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
Mind explaining a bit? Thanks. |
|
The changes look OK. My concern is whether this breaks existing functionality. |
@Apache9 Thanks for the review! |
@stoty Thanks for the review. |
| <init-param> | ||
| <param-name>dirAllowed</param-name> | ||
| <param-value>true</param-value> | ||
| <param-value>false</param-value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a general default setting to me, @Kota-SH .
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
| ServletContextHandler staticContext = new ServletContextHandler(parent, "/static"); | ||
| staticContext.setResourceBase(appDir + "/static"); | ||
| staticContext.addServlet(DefaultServlet.class, "/*"); | ||
| staticContext.addServlet(AdminAuthorizedServlet.class, "/*"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does AdminAuthorizedServlet do ?
We don't want to limit the static folder to admin users.
Jira: https://issues.apache.org/jira/browse/HBASE-28514