lyn916 commented on issue #11218:
URL:
https://github.com/apache/dolphinscheduler/issues/11218#issuecomment-1271111008
org.apache.dolphinscheduler.server.log.LoggerRequestProcessor#checkPathSecurity
` private boolean checkPathSecurity(String path) {
String dsHome = System.getProperty("DOLPHINSCHEDULER_WORKER_HOME");
if (StringUtils.isBlank(dsHome)) {
dsHome = System.getProperty("user.dir");
}
if (StringUtils.isBlank(path)) {
logger.warn("path is null");
return false;
} else {
return path.startsWith(dsHome) && !path.contains("../") &&
path.endsWith(".log");
}
}
`
不知道谁代码写死,path.startsWith(dsHome)
所以你 logback-spring.xml 配置文件里 log.base
value写成绝对路径,还不是home目录下,就会报java.lang.IllegalArgumentException: Illegal path
反手就删掉这个 path.startsWith(dsHome) ,不知道有没有后果
,部署目录固态盘空间不够,每天spark那么多日志,还不让我改数据盘,必须把dolphins部署在数据盘?
--
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]