From 66ea9164e172266a9bbf3cfae3a53e86b69d95da Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Wed, 14 Jul 2021 15:07:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E9=9B=86=E5=90=88=E6=8A=A5=E5=91=8A=E5=9C=BA?= =?UTF-8?q?=E6=99=AFID=E8=BF=87=E9=95=BF=E5=A4=84=E7=90=86=20#1005119=20--?= =?UTF-8?q?bug=3D1005119=20--user=3D=E8=B5=B5=E5=8B=87=20=E3=80=90github#4?= =?UTF-8?q?596=E3=80=91=E6=89=B9=E9=87=8F=E8=BF=90...=20https://www.tapd.c?= =?UTF-8?q?n/55049933/s/1025349?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/api/service/ApiAutomationService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java index 43fca3b973..138f014187 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java @@ -1004,6 +1004,9 @@ public class ApiAutomationService { if (request.getConfig() != null && StringUtils.equals(request.getConfig().getReportType(), RunModeConstants.SET_REPORT.toString()) && StringUtils.isNotEmpty(request.getConfig().getReportName())) { request.getConfig().setReportId(UUID.randomUUID().toString()); + if (CollectionUtils.isNotEmpty(scenarioIds) && scenarioIds.size() > 100) { + scenarioIds = scenarioIds.subList(0, 100); + } APIScenarioReportResult report = createScenarioReport(request.getConfig().getReportId(), JSON.toJSONString(scenarioIds), scenarioNames.deleteCharAt(scenarioNames.toString().length() - 1).toString(), ReportTriggerMode.MANUAL.name(), ExecuteType.Saved.name(), request.getProjectId(), request.getReportUserID(), request.getConfig()); report.setName(request.getConfig().getReportName());