提交 fb239fee 编写于 作者: O o2null

Merge branch 'feature/denialOfService' into 'release'

附件不存在warn,不再Exception

See merge request o2oa/o2oa!1671
package com.x.server.console.action;
import java.nio.file.Path;
import com.x.base.core.project.exception.PromptException;
class ExceptionFileNotExist extends PromptException {
private static final long serialVersionUID = -5515077418025884395L;
ExceptionFileNotExist(Path path) {
super("file not exist: {}.", path.toString());
}
}
......@@ -226,7 +226,7 @@ public class RestoreData {
}
Path path = sub.resolve(Paths.get(so.path()).getFileName());
if (!Files.exists(path)) {
throw new ExceptionFileNotExist(path);
logger.warn("file not exist: {}.", path.toString());
}
try (InputStream input = Files.newInputStream(path)) {
so.saveContent(mapping, input, so.getName());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册