fix(项目设置): 集成tapd输入无效的id , 点击创建缺陷报错
--bug=1011485 --user=李玉号 【项目设置】-集成第三方tapd 输入无效的id , 点击创建缺陷 会报错 https://www.tapd.cn/55049933/s/1122492
This commit is contained in:
parent
10a194a63a
commit
17b8fbdea1
|
@ -12,6 +12,7 @@ import io.metersphere.commons.utils.BeanUtils;
|
|||
import io.metersphere.commons.utils.CommonBeanFactory;
|
||||
import io.metersphere.commons.utils.SessionUtils;
|
||||
import io.metersphere.dto.UserDTO;
|
||||
import io.metersphere.i18n.Translator;
|
||||
import io.metersphere.service.SystemParameterService;
|
||||
import io.metersphere.track.dto.DemandDTO;
|
||||
import io.metersphere.track.issue.client.TapdClient;
|
||||
|
@ -171,6 +172,10 @@ public class TapdPlatform extends AbstractIssuePlatform {
|
|||
|
||||
@Override
|
||||
public List<PlatformUser> getPlatformUser() {
|
||||
Boolean exist = checkProjectExist(getProjectId(projectId));
|
||||
if (!exist) {
|
||||
MSException.throwException(Translator.get("tapd_project_not_exist"));
|
||||
}
|
||||
List<PlatformUser> users = new ArrayList<>();
|
||||
JSONArray res = tapdClient.getPlatformUser(getProjectId(projectId));
|
||||
for (int i = 0; i < res.size(); i++) {
|
||||
|
|
|
@ -164,6 +164,7 @@ id_repeat_in_table=ID is repeat in table
|
|||
step_model_tip=Step description fill in STEP, text description please fill in TEXT (not required)
|
||||
case_status_not_exist=The use case status must be Prepare, Underway way and Completed
|
||||
issue_project_not_exist=ID does not exist or other errors
|
||||
tapd_project_not_exist=The associated TAPD item ID does not exist
|
||||
#ldap
|
||||
ldap_url_is_null=LDAP address is empty
|
||||
ldap_dn_is_null=LDAP binding DN is empty
|
||||
|
|
|
@ -164,6 +164,7 @@ id_repeat_in_table=表格内ID重复
|
|||
step_model_tip=步骤描述填写 STEP,文本描述请填写 TEXT (非必填)
|
||||
case_status_not_exist=用例状态必须为未开始(Prepare)、进行中(Underway)、已完成(Completed)
|
||||
issue_project_not_exist=ID不存在或其它错误
|
||||
tapd_project_not_exist=关联的TAPD项目ID不存在
|
||||
#ldap
|
||||
ldap_url_is_null=LDAP地址为空
|
||||
ldap_dn_is_null=LDAP绑定DN为空
|
||||
|
|
|
@ -164,6 +164,7 @@ id_repeat_in_table=表格內ID重復
|
|||
step_model_tip=步驟描述填寫 STEP,文本描述請填寫 TEXT (非必填)
|
||||
case_status_not_exist=用例狀態必須為未開始(Prepare)、進行中(Underway)、已完成(Completed)
|
||||
issue_project_not_exist=ID不存在或其它錯誤
|
||||
tapd_project_not_exist=關聯的TAPD項目ID不存在
|
||||
#ldap
|
||||
ldap_url_is_null=LDAP地址為空
|
||||
ldap_dn_is_null=LDAP綁定DN為空
|
||||
|
|
Loading…
Reference in New Issue