diff --git a/src/backend/commons/common-i18n/src/main/resources/i18n/exception/message_en.properties b/src/backend/commons/common-i18n/src/main/resources/i18n/exception/message_en.properties index d302198edf..3fc88ef5df 100644 --- a/src/backend/commons/common-i18n/src/main/resources/i18n/exception/message_en.properties +++ b/src/backend/commons/common-i18n/src/main/resources/i18n/exception/message_en.properties @@ -202,7 +202,7 @@ 1260016=At least one of id/code required 1260017=FileSource[id={0}] does not belong to specified business 1260018=FileWorker response error, Detail:{0} -1260019=File source code can not empty +1260019=File source code can not be empty ## Business error (job-file-worker) 1262001=Third file source response error:ListBucket, Detail:{0} diff --git a/src/backend/commons/common-i18n/src/main/resources/i18n/exception/message_en_US.properties b/src/backend/commons/common-i18n/src/main/resources/i18n/exception/message_en_US.properties index d302198edf..3fc88ef5df 100644 --- a/src/backend/commons/common-i18n/src/main/resources/i18n/exception/message_en_US.properties +++ b/src/backend/commons/common-i18n/src/main/resources/i18n/exception/message_en_US.properties @@ -202,7 +202,7 @@ 1260016=At least one of id/code required 1260017=FileSource[id={0}] does not belong to specified business 1260018=FileWorker response error, Detail:{0} -1260019=File source code can not empty +1260019=File source code can not be empty ## Business error (job-file-worker) 1262001=Third file source response error:ListBucket, Detail:{0} diff --git a/src/backend/commons/common/src/main/java/com/tencent/bk/job/common/constant/ErrorCode.java b/src/backend/commons/common/src/main/java/com/tencent/bk/job/common/constant/ErrorCode.java index 529f0c478c..a41e8cb1a4 100644 --- a/src/backend/commons/common/src/main/java/com/tencent/bk/job/common/constant/ErrorCode.java +++ b/src/backend/commons/common/src/main/java/com/tencent/bk/job/common/constant/ErrorCode.java @@ -326,7 +326,7 @@ public class ErrorCode { // 接入点响应异常,详情:{0} public static final int FAIL_TO_REQUEST_FILE_WORKER_WITH_REASON = 1260018; // 文件源code不可为空 - public static final int FILE_SOURCE_CODE_NOT_EMPTY = 1260019; + public static final int FILE_SOURCE_CODE_CAN_NOT_BE_EMPTY = 1260019; // 文件网关 end // 文件代理 start diff --git a/src/backend/job-file-gateway/service-job-file-gateway/src/main/java/com/tencent/bk/job/file_gateway/api/esb/EsbFileSourceV3ResourceImpl.java b/src/backend/job-file-gateway/service-job-file-gateway/src/main/java/com/tencent/bk/job/file_gateway/api/esb/EsbFileSourceV3ResourceImpl.java index 3d8ea27ac4..79cf30d212 100644 --- a/src/backend/job-file-gateway/service-job-file-gateway/src/main/java/com/tencent/bk/job/file_gateway/api/esb/EsbFileSourceV3ResourceImpl.java +++ b/src/backend/job-file-gateway/service-job-file-gateway/src/main/java/com/tencent/bk/job/file_gateway/api/esb/EsbFileSourceV3ResourceImpl.java @@ -106,7 +106,7 @@ private Integer checkUpdateParamAndGetId(EsbCreateOrUpdateFileSourceV3Req req) { Long appId = req.getAppId(); String code = req.getCode(); if (StringUtils.isBlank(code)) { - throw new MissingParameterException(ErrorCode.FILE_SOURCE_CODE_NOT_EMPTY); + throw new MissingParameterException(ErrorCode.FILE_SOURCE_CODE_CAN_NOT_BE_EMPTY); } Integer id = fileSourceService.getFileSourceIdByCode(appId, code); if (id == null) {