提交 be035982 编写于 作者: R Robert Metzger 提交者: Robert Metzger

[FLINK-1397] Fix logfile access from JobManager web interface

上级 cfa04aa5
......@@ -58,11 +58,11 @@ public class LogfileInfoServlet extends HttpServlet {
try {
if("stdout".equals(req.getParameter("get"))) {
// Find current stdout file
sendFile(".*-jobmanager-[^\\.]*\\.out", resp);
sendFile(".*jobmanager-[^\\.]*\\.out", resp);
}
else {
// Find current logfile
sendFile(".*-jobmanager-[^\\.]*\\.log", resp);
sendFile(".*jobmanager-[^\\.]*\\.log", resp);
}
} catch (Throwable t) {
resp.setStatus(HttpServletResponse.SC_BAD_REQUEST);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册