Ver código fonte

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 anos atrás
pai
commit
e4397f94c4
1 arquivos alterados com 9 adições e 1 exclusões
  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");