From 8dd0fe9e304663fe821a4b69292016459b4694fa Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Wed, 18 Sep 2024 15:51:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E7=BC=BA=E9=99=B7=E5=86=85=E5=AE=B9=E4=B8=AD=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E6=AD=A5=E9=AA=A4&&=E5=89=8D=E7=BD=AE&&=E6=8F=8F=E8=BF=B0?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=BF=9D=E5=AD=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1046616 --user=宋昌昌 【测试计划】项目未集成三方-功能用例-新建缺陷-自定义模版-创建报SQL异常 https://www.tapd.cn/55049933/s/1579766 --- .../src/main/java/io/metersphere/bug/service/BugService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugService.java b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugService.java index 69effc9d73..6fe33201e8 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugService.java +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugService.java @@ -1376,7 +1376,8 @@ public class BugService { private void filterRichTextTmpFile(BugEditRequest request) { // 项目模板带过来的图片文件不处理 if (CollectionUtils.isNotEmpty(request.getRichTextTmpFileIds())) { - request.getRichTextTmpFileIds().removeIf(tmpFileId -> request.getDescription().contains("/project/template/img/preview/" + request.getProjectId() + "/" + tmpFileId)); + request.getRichTextTmpFileIds().removeIf(tmpFileId -> request.getDescription().contains("/project/template/img/preview/" + request.getProjectId() + "/" + tmpFileId) || + request.getDescription().contains("/attachment/download/file/" + request.getProjectId() + "/" + tmpFileId)); } }