瀏覽代碼

HPCC-16640 Remove trailing blanks from ECL Agent queue name

Remove any trailing blanks from wuQueueName attribute.
Blanks trimmed in WsDeploy service because complicated nature of how the
web page is built with Yahoo UI did not present a good place to trim
the field.

Signed-off-by: Ken Rowland <kenneth.rowland@lexisnexisrisk.com>
Ken Rowland 8 年之前
父節點
當前提交
e4397f94c4
共有 1 個文件被更改,包括 9 次插入1 次删除
  1. 9 1
      esp/services/WsDeploy/WsDeployService.cpp

+ 9 - 1
esp/services/WsDeploy/WsDeployService.cpp

@@ -970,7 +970,15 @@ bool CWsDeployFileInfo::saveSetting(IEspContext &context, IEspSaveSettingRequest
       const char* pszAttrName = pSetting->queryProp("@attrName");
       const char* rowIndex = pSetting->queryProp("@rowIndex");
       const char* pszOldValue = pSetting->queryProp("@oldValue");
-      const char* pszNewValue = pSetting->queryProp("@newValue");
+      
+      StringBuffer newValue(pSetting->queryProp("@newValue"));
+      if (streq(pszAttrName, "wuQueueName") && !newValue.isEmpty())
+      {
+        newValue.trimRight();
+        pSetting->setProp("@newValue", newValue.str());
+      }
+
+      const char* pszNewValue = newValue.str();
       const char* pszOnChange = pSetting->queryProp("@onChange");
       const char* pszViewType = pSetting->queryProp("@viewType");