Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
e4397f94c4
1 değiştirilmiş dosya ile 9 ekleme ve 1 silme
  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");