From 4f7b9af2832fed0b5aca410d6dcbb530edf7edcc Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Thu, 10 Feb 2022 16:30:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8DK8s=E6=89=A7=E8=A1=8Ccsv=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=9C=AA=E5=90=8C=E6=AD=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1010156 --user=赵勇 【接口测试】批量执行场景- k8s资源池执行失败 https://www.tapd.cn/55049933/s/1102782 --- .../main/java/io/metersphere/commons/utils/FileUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/main/java/io/metersphere/commons/utils/FileUtils.java b/backend/src/main/java/io/metersphere/commons/utils/FileUtils.java index 6239ea07ae..2b648f2568 100644 --- a/backend/src/main/java/io/metersphere/commons/utils/FileUtils.java +++ b/backend/src/main/java/io/metersphere/commons/utils/FileUtils.java @@ -222,10 +222,10 @@ public class FileUtils { } } else if (key instanceof CSVDataSet) { CSVDataSet source = (CSVDataSet) key; - if (source != null && source.getFilename() != null) { + if (source != null && StringUtils.isNotEmpty(source.getPropertyAsString("filename"))) { BodyFile file = new BodyFile(); - file.setId(source.getFilename()); - file.setName(source.getFilename()); + file.setId(source.getPropertyAsString("filename")); + file.setName(source.getPropertyAsString("filename")); files.add(file); } }