미사용 목록 주석 추가, 학습데이터 삭제 테스트

This commit is contained in:
2026-03-27 18:02:13 +09:00
parent a9b49faa6c
commit 960e4215e0
2 changed files with 6 additions and 7 deletions

View File

@@ -232,12 +232,7 @@ public class ModelTrainMngService {
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs)
throws IOException {
if (!Files.isSymbolicLink(file)) {
log.error("tmp 내부에 일반 파일 존재: {}", file);
throw new CustomApiException(
"BAD_REQUEST", HttpStatus.BAD_REQUEST, "tmp 내부는 symlink만 허용");
}
// 파일은 전부 허용 (일반 + symlink)
return FileVisitResult.CONTINUE;
}
@@ -245,10 +240,11 @@ public class ModelTrainMngService {
public FileVisitResult preVisitDirectory(Path directory, BasicFileAttributes attrs)
throws IOException {
// 루트 제외 + symlink 디렉토리 금지
if (!directory.equals(dir) && Files.isSymbolicLink(directory)) {
log.error("tmp 내부에 symlink 디렉토리 존재: {}", directory);
throw new CustomApiException(
"BAD_REQUEST", HttpStatus.BAD_REQUEST, "tmp 내부에 symlink 디렉토리 금지");
"BAD_REQUEST", HttpStatus.BAD_REQUEST, "tmp 내부에 symlink 디렉토리는 허용되지 않습니다.");
}
return FileVisitResult.CONTINUE;

View File

@@ -127,12 +127,15 @@ public class UploadDto {
@Schema(description = "상태", example = "UPLOADING")
private String status;
// TODO 미사용시작
@Schema(description = "총 청크 수", example = "100")
private Integer totalChunks;
@Schema(description = "업로드된 청크 수", example = "50")
private Integer uploadedChunks;
// TODO 미사용 끝
@Schema(description = "진행률 (%)", example = "50.0")
private Double progress;