deniskuzZ commented on code in PR #5652: URL: https://github.com/apache/hive/pull/5652#discussion_r2016140019
########## common/src/java/org/apache/hive/http/HttpServer.java: ########## @@ -802,8 +871,12 @@ String getWebAppsPath(String appName) throws FileNotFoundException { * @param pathSpec The path spec for the servlet * @param clazz The servlet class */ - public void addServlet(String name, String pathSpec, - Class<? extends HttpServlet> clazz) { + public void addServlet(String name, String pathSpec, Class<? extends HttpServlet> clazz) { + addServlet(name, pathSpec, clazz, webAppContexts.get(0)); Review Comment: If multiple contexts are expected, index 0 adds an uncertainty. Could we pass the target `webAppContext` as a param instead? -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org