Merge pull request '미사용 목록 주석 추가, 학습데이터 삭제 테스트' (#178) from feat/training_260324 into develop
Reviewed-on: #178
This commit was merged in pull request #178.
This commit is contained in:
@@ -232,12 +232,7 @@ public class ModelTrainMngService {
|
|||||||
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs)
|
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
|
|
||||||
if (!Files.isSymbolicLink(file)) {
|
// 파일은 전부 허용 (일반 + symlink)
|
||||||
log.error("tmp 내부에 일반 파일 존재: {}", file);
|
|
||||||
throw new CustomApiException(
|
|
||||||
"BAD_REQUEST", HttpStatus.BAD_REQUEST, "tmp 내부는 symlink만 허용");
|
|
||||||
}
|
|
||||||
|
|
||||||
return FileVisitResult.CONTINUE;
|
return FileVisitResult.CONTINUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -245,10 +240,11 @@ public class ModelTrainMngService {
|
|||||||
public FileVisitResult preVisitDirectory(Path directory, BasicFileAttributes attrs)
|
public FileVisitResult preVisitDirectory(Path directory, BasicFileAttributes attrs)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
|
|
||||||
|
// 루트 제외 + symlink 디렉토리 금지
|
||||||
if (!directory.equals(dir) && Files.isSymbolicLink(directory)) {
|
if (!directory.equals(dir) && Files.isSymbolicLink(directory)) {
|
||||||
log.error("tmp 내부에 symlink 디렉토리 존재: {}", directory);
|
log.error("tmp 내부에 symlink 디렉토리 존재: {}", directory);
|
||||||
throw new CustomApiException(
|
throw new CustomApiException(
|
||||||
"BAD_REQUEST", HttpStatus.BAD_REQUEST, "tmp 내부에 symlink 디렉토리 금지");
|
"BAD_REQUEST", HttpStatus.BAD_REQUEST, "tmp 내부에 symlink 디렉토리는 허용되지 않습니다.");
|
||||||
}
|
}
|
||||||
|
|
||||||
return FileVisitResult.CONTINUE;
|
return FileVisitResult.CONTINUE;
|
||||||
|
|||||||
@@ -127,12 +127,15 @@ public class UploadDto {
|
|||||||
@Schema(description = "상태", example = "UPLOADING")
|
@Schema(description = "상태", example = "UPLOADING")
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
|
// TODO 미사용시작
|
||||||
@Schema(description = "총 청크 수", example = "100")
|
@Schema(description = "총 청크 수", example = "100")
|
||||||
private Integer totalChunks;
|
private Integer totalChunks;
|
||||||
|
|
||||||
@Schema(description = "업로드된 청크 수", example = "50")
|
@Schema(description = "업로드된 청크 수", example = "50")
|
||||||
private Integer uploadedChunks;
|
private Integer uploadedChunks;
|
||||||
|
|
||||||
|
// TODO 미사용 끝
|
||||||
|
|
||||||
@Schema(description = "진행률 (%)", example = "50.0")
|
@Schema(description = "진행률 (%)", example = "50.0")
|
||||||
private Double progress;
|
private Double progress;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user