From 8ca3b2e57c92edf9bb5d1ade001a0225ac798fa8 Mon Sep 17 00:00:00 2001 From: MeterSphere Bot <78466014+metersphere-bot@users.noreply.github.com> Date: Mon, 22 Aug 2022 16:59:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=AE=9A=E4=B9=89=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E4=B8=8D=E8=BE=93=E5=85=A5=E5=8D=8F=E8=AE=AE=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=AE=BF=E9=97=AE=E7=9A=84=E7=BC=BA=E9=99=B7=20(#17214)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: wxg0103 <727495428@qq.com> --- .../api/dto/definition/request/sampler/MsHTTPSamplerProxy.java | 3 +++ .../src/business/components/track/module/TestCaseNodeTree.vue | 1 + 2 files changed, 4 insertions(+) diff --git a/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java b/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java index 9a439d9003..59d3770e67 100644 --- a/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java +++ b/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java @@ -397,6 +397,9 @@ public class MsHTTPSamplerProxy extends MsTestElement { url = url.replace(this.getPort(), "10990"); } try { + if (StringUtils.startsWithAny(url, "http://", "https://")) { + url = "http://" + url; + } URL urlObject = new URL(url); sampler.setDomain(URLDecoder.decode(urlObject.getHost(), "UTF-8")); diff --git a/frontend/src/business/components/track/module/TestCaseNodeTree.vue b/frontend/src/business/components/track/module/TestCaseNodeTree.vue index 445e93ec22..94ce4d07d8 100644 --- a/frontend/src/business/components/track/module/TestCaseNodeTree.vue +++ b/frontend/src/business/components/track/module/TestCaseNodeTree.vue @@ -184,6 +184,7 @@ export default { }, list() { if (this.projectId) { + this.caseCondition.casePublic = false; this.result = getTestCaseNodesByCaseFilter(this.projectId, this.caseCondition, data => { this.treeNodes = data; this.treeNodes.forEach(node => {