From 93eccc42a658fa62e3c362617b4ed606e9e7a49f Mon Sep 17 00:00:00 2001 From: CaptainB Date: Sat, 7 May 2022 17:28:17 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=88=90=E7=BB=9D=E5=AF=B9=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../performance/parse/xml/reader/JmeterDocumentParser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/performance/parse/xml/reader/JmeterDocumentParser.java b/backend/src/main/java/io/metersphere/performance/parse/xml/reader/JmeterDocumentParser.java index 7e216b4b90..4f74486a82 100644 --- a/backend/src/main/java/io/metersphere/performance/parse/xml/reader/JmeterDocumentParser.java +++ b/backend/src/main/java/io/metersphere/performance/parse/xml/reader/JmeterDocumentParser.java @@ -215,7 +215,8 @@ public class JmeterDocumentParser implements EngineSourceParser { if (!StringUtils.contains(filename, "/")) { separator = "\\"; } - filename = filename.substring(filename.lastIndexOf(separator) + 1); + // 改成绝对路径,keystore 不能使用相对路径 + filename = "/test/" + filename.substring(filename.lastIndexOf(separator) + 1); return filename; }