Merge pull request '260723_01_ENH: 업로드 파일 못찾는 경우 경고 메시지 수정' (#5) from develop into master
Reviewed-on: #5
This commit is contained in:
@@ -272,13 +272,13 @@ public class ListDownloadService {
|
|||||||
.findById(TListItemFileEntityId.create(prjctIdx, sid, listHderId))
|
.findById(TListItemFileEntityId.create(prjctIdx, sid, listHderId))
|
||||||
.orElseThrow(() -> BusinessException.notFound(
|
.orElseThrow(() -> BusinessException.notFound(
|
||||||
"LIST_ITEM_FILE_NOT_FOUND",
|
"LIST_ITEM_FILE_NOT_FOUND",
|
||||||
"리스트 파일을 찾을 수 없습니다."
|
"리스트에 업로드 된 파일이 없습니다."
|
||||||
).with("prjctIdx", prjctIdx).with("sid", sid).with("listHderId", listHderId));
|
).with("prjctIdx", prjctIdx).with("sid", sid).with("listHderId", listHderId));
|
||||||
|
|
||||||
if (fileEntity.getFileNm() == null || fileEntity.getFileNm().isBlank()) {
|
if (fileEntity.getFileNm() == null || fileEntity.getFileNm().isBlank()) {
|
||||||
throw BusinessException.notFound(
|
throw BusinessException.notFound(
|
||||||
"LIST_ITEM_FILE_NOT_FOUND",
|
"LIST_ITEM_FILE_NOT_FOUND",
|
||||||
"리스트 파일을 찾을 수 없습니다."
|
"리스트에 업로드 된 파일이 없습니다."
|
||||||
).with("prjctIdx", prjctIdx).with("sid", sid).with("listHderId", listHderId);
|
).with("prjctIdx", prjctIdx).with("sid", sid).with("listHderId", listHderId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ public class ListItemFileService extends AbstractFileService {
|
|||||||
throw BusinessException.badRequest("WRONG_FILE_PATH", "잘못된 파일 경로입니다.");
|
throw BusinessException.badRequest("WRONG_FILE_PATH", "잘못된 파일 경로입니다.");
|
||||||
}
|
}
|
||||||
if (!Files.exists(target) || !Files.isRegularFile(target)) {
|
if (!Files.exists(target) || !Files.isRegularFile(target)) {
|
||||||
throw BusinessException.notFound("LIST_ITEM_FILE_NOT_FOUND", "리스트 파일을 찾을 수 없습니다.");
|
throw BusinessException.notFound("LIST_ITEM_FILE_NOT_FOUND", "리스트에 업로드 된 파일이 없습니다.");
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user