From 4595288070a376dd5e86c4fa3b70e4316ca6d55d Mon Sep 17 00:00:00 2001 From: hades Date: Mon, 26 Jul 2021 14:21:00 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-55091=20=E5=8F=AA=E6=9C=89=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E9=9D=9E=E8=B6=85=E7=AE=A1=E7=94=A8=E6=88=B7=E7=9A=84?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E6=96=87=E4=BB=B6=E6=97=A0=E6=B3=95=E5=8F=A6?= =?UTF-8?q?=E5=AD=98=E6=88=96=E6=96=B0=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/fr/env/RemoteEnvPane.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/designer-base/src/main/java/com/fr/env/RemoteEnvPane.java b/designer-base/src/main/java/com/fr/env/RemoteEnvPane.java index ab7f27df0..363593778 100644 --- a/designer-base/src/main/java/com/fr/env/RemoteEnvPane.java +++ b/designer-base/src/main/java/com/fr/env/RemoteEnvPane.java @@ -363,8 +363,8 @@ public class RemoteEnvPane extends BasicBeanPane { @Override public RemoteDesignerWorkspaceInfo updateBean() { - String url = this.remoteWorkspaceURL.getURL(); - String username = this.usernameInput.getText(); + String url = removeSpaces(this.remoteWorkspaceURL.getURL()); + String username = removeSpaces(this.usernameInput.getText()); String password = new String(this.passwordInput.getPassword()); boolean rememberPwd = this.rememberPwdCheckbox.isSelected(); DesignerEnvProcessor envProcessor = ExtraDesignClassManager.getInstance().getSingle(DesignerEnvProcessor.XML_TAG); @@ -384,6 +384,13 @@ public class RemoteEnvPane extends BasicBeanPane { return info; } + private String removeSpaces(String str) { + if (StringUtils.isNotEmpty(str)) { + return str.trim(); + } + return str; + } + @Override protected String title4PopupWindow() { return "Remote";