Skip to content

Commit

Permalink
pref:研发商店敏感接口签名校验优化 TencentBlueKing#10759
Browse files Browse the repository at this point in the history
  • Loading branch information
carlyin0801 committed Sep 6, 2024
1 parent 8c1943f commit c233181
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ object StoreMessageCode {
const val USER_COMPONENT_ADMIN_COUNT_ERROR = "2120016" // 研发商店:管理员个数不能少于1个
const val ADD_ATOM_PLATFORM_INFO_FAILED = "2120017" // 添加插件对接平台信息失败
const val USER_ATOM_QUALITY_CONF_INVALID = "2120018" // 研发商店:插件配置文件[quality.json]{0}格式不正确,请检查
const val USER_REPOSITORY_PULL_QUALITY_JSON_FILE_FAIL = "2120019" // 研发商店:从[{0}]分支拉取插件配置文件[quality.json失败,请确认是否OAUTH授权、文件是否正确上传代码库等
const val USER_REPOSITORY_PULL_QUALITY_JSON_FILE_FAIL = "2120019" // 研发商店:从[{0}]分支拉取插件配置文件[quality.json]失败,请确认是否OAUTH授权、文件是否正确上传代码库等
const val USER_ATOM_USED = "2120020" // 研发商店:插件{0}已被项目{1}下的流水线使用,不可以卸载
const val USER_ATOM_UNINSTALL_REASON_USED = "2120021" // 研发商店:插件卸载原因{0}已被使用,不能删除。建议禁用
const val USER_COMPONENT_RELEASED_IS_NOT_ALLOW_DELETE = "2120022" // 研发商店:组件{0}已发布到商店,请先下架再删除
Expand All @@ -83,7 +83,7 @@ object StoreMessageCode {
const val USER_ATOM_COMPATIBLE_OUTPUT_FIELD_CONFIRM = "2120031" // 研发商店:插件当前版本减少了出参[{0}],请确认插件执行逻辑对这些参数不存在或值为空的情况做了兼容处理,否则有可能导致存量流水线执行异常
const val USER_ATOM_INPUT_NUM_IS_TOO_MANY = "2120032" // 研发商店:插件入参数量太多,系统规定的数量最大为:{0}
const val USER_ATOM_OUTPUT_NUM_IS_TOO_MANY = "2120033" // 研发商店:插件出参数量太多,系统规定的数量最大为:{0}
const val USER_REPOSITORY_TASK_JSON_OS_DEFAULT_ENV_IS_INVALID = "2120034" // 研发商店:插件配置文件[task.json]{0}操作系统默认环境配置数量为{1}个,默认环境配置数量有且只能为1个
const val USER_REPOSITORY_TASK_JSON_OS_DEFAULT_ENV_IS_INVALID = "2120034" // 研发商店:配置文件[{0}]{1}操作系统默认环境配置数量为{2}个,默认环境配置数量有且只能为1个
const val USER_REPOSITORY_PULL_ERROR_JSON_FILE_FAIL = "2120035" // 研发商店:从[{0}]分支拉取插件配置文件[error.json]失败,请确认是否OAUTH授权、文件是否正确上传代码库等
const val USER_REPOSITORY_ERROR_JSON_ERROR_CODE_EXIST_DUPLICATE = "2120036" // 研发商店:插件配置文件[error.json]errorCode字段数据重复,请检查{0}
const val USER_REPOSITORY_ERROR_JSON_FIELD_IS_INVALID = "2120037" // 研发商店:插件配置文件[error.json]errorCode格式不正确,请检查
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,6 @@ class MarketAtomCommonServiceImpl : MarketAtomCommonService {
} else {
runtimeVersion
}
val atomBusHandleService = AtomBusHandleFactory.createAtomBusHandleService(language)
if (null != osList) {
val osDefaultEnvNumMap = mutableMapOf<String, Int>()
osList.forEach { osExecutionInfoMap ->
Expand Down Expand Up @@ -487,7 +486,7 @@ class MarketAtomCommonServiceImpl : MarketAtomCommonService {
if (defaultEnvNum != 1) {
throw ErrorCodeException(
errorCode = StoreMessageCode.USER_REPOSITORY_TASK_JSON_OS_DEFAULT_ENV_IS_INVALID,
params = arrayOf(osName, defaultEnvNum.toString())
params = arrayOf(TASK_JSON_NAME, osName, defaultEnvNum.toString())
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion support-files/i18n/store/message_en_US.properties
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
2120031=store: the output parameter [{0}] has been reduced in the current version of the atom. Please make sure that the atom execution logic is compatible with the situation where these parameters do not exist or the value is empty, otherwise it may cause abnormal execution of the stock pipeline.
2120032=store: there are too many atom parameters, and the maximum number specified by the system is: {0}
2120033=store: there are too many atom parameters, and the maximum number specified by the system is: {0}
2120034=Store: atom configuration file [task.json] {0} the default number of operating system environment configurations is {1}, and the default number of environment configurations is only 1.
2120034=Store: configuration file [{0}]{1} the default number of environment configurations in the operating system is {2}, and the number of default environment configurations can only be 1.
2120035=store: failed to pull atom configuration file [error.json] from [{0}] branch. Please confirm whether the OAUTH is authorized and whether the file is uploaded correctly to the code base.
2120036=store: atom configuration file [error.json] errorCode field data duplicate, please check {0}
2120037=store: atom configuration file [error.json] errorCode format is incorrect, please check
Expand Down
4 changes: 2 additions & 2 deletions support-files/i18n/store/message_zh_CN.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
2120016=研发商店: 管理员个数不能少于1个
2120017=添加插件对接平台信息失败
2120018=研发商店: 插件配置文件[quality.json]{0}格式不正确,请检查
2120019=研发商店: 从[{0}]分支拉取插件配置文件[quality.json失败,请确认是否OAUTH授权、文件是否正确上传代码库等
2120019=研发商店: 从[{0}]分支拉取插件配置文件[quality.json]失败,请确认是否OAUTH授权、文件是否正确上传代码库等
2120020=研发商店: 插件{0}已被项目{1}下的流水线使用,不可以卸载
2120021=研发商店: 插件卸载原因{0}已被使用,不能删除。建议禁用
2120022=研发商店: 组件{0}已发布到商店,请先下架再删除
Expand All @@ -31,7 +31,7 @@
2120031=研发商店: 插件当前版本减少了出参[{0}],请确认插件执行逻辑对这些参数不存在或值为空的情况做了兼容处理,否则有可能导致存量流水线执行异常
2120032=研发商店: 插件入参数量太多,系统规定的数量最大为: {0}
2120033=研发商店: 插件出参数量太多,系统规定的数量最大为: {0}
2120034=研发商店: 插件配置文件[task.json]{0}操作系统默认环境配置数量为{1}个,默认环境配置数量有且只能为1个
2120034=研发商店:配置文件[{0}]{1}操作系统默认环境配置数量为{2}个,默认环境配置数量有且只能为1个
2120035=研发商店: 从[{0}]分支拉取插件配置文件[error.json]失败,请确认是否OAUTH授权、文件是否正确上传代码库等
2120036=研发商店: 插件配置文件[error.json]errorCode字段数据重复,请检查{0}
2120037=研发商店: 插件配置文件[error.json]errorCode格式不正确,请检查
Expand Down

0 comments on commit c233181

Please sign in to comment.