Browse Source

REPORT-55091 只有一个非超管用户的目录文件无法另存或新建

bugfix/10.0
hades 3 years ago
parent
commit
4595288070
  1. 11
      designer-base/src/main/java/com/fr/env/RemoteEnvPane.java

11
designer-base/src/main/java/com/fr/env/RemoteEnvPane.java vendored

@ -363,8 +363,8 @@ public class RemoteEnvPane extends BasicBeanPane<RemoteDesignerWorkspaceInfo> {
@Override @Override
public RemoteDesignerWorkspaceInfo updateBean() { public RemoteDesignerWorkspaceInfo updateBean() {
String url = this.remoteWorkspaceURL.getURL(); String url = removeSpaces(this.remoteWorkspaceURL.getURL());
String username = this.usernameInput.getText(); String username = removeSpaces(this.usernameInput.getText());
String password = new String(this.passwordInput.getPassword()); String password = new String(this.passwordInput.getPassword());
boolean rememberPwd = this.rememberPwdCheckbox.isSelected(); boolean rememberPwd = this.rememberPwdCheckbox.isSelected();
DesignerEnvProcessor envProcessor = ExtraDesignClassManager.getInstance().getSingle(DesignerEnvProcessor.XML_TAG); DesignerEnvProcessor envProcessor = ExtraDesignClassManager.getInstance().getSingle(DesignerEnvProcessor.XML_TAG);
@ -384,6 +384,13 @@ public class RemoteEnvPane extends BasicBeanPane<RemoteDesignerWorkspaceInfo> {
return info; return info;
} }
private String removeSpaces(String str) {
if (StringUtils.isNotEmpty(str)) {
return str.trim();
}
return str;
}
@Override @Override
protected String title4PopupWindow() { protected String title4PopupWindow() {
return "Remote"; return "Remote";

Loading…
Cancel
Save