Browse Source

HPCC-15589 ConfigMgr - Fix ambiguous xpath error in binding authentication

Signed-off-by: Gleb Aronsky <gleb.aronsky@lexisnexis.com>
Gleb Aronsky 9 years ago
parent
commit
3300be5c3f
2 changed files with 8 additions and 3 deletions
  1. 7 1
      esp/services/WsDeploy/WsDeployService.cpp
  2. 1 2
      esp/xslt/ui_configmgr.xslt

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

@@ -4665,7 +4665,13 @@ bool CWsDeployFileInfo::handleEspServiceBindings(IEspContext &context, IEspHandl
         if (resource)
           xpath.appendf("[@resource='%s']", resource);
 
-        IPropertyTree* pSubType = pEnvRoot->queryPropTree(xpath.str());
+        IPropertyTree* pSubType = nullptr;
+        Owned<IPropertyTreeIterator> iterSubType = pEnvRoot->getElements(xpath.str());
+        ForEach(*iterSubType)
+        {
+             pSubType = &(iterSubType->query());
+             break;
+        }
 
         String subType(xpath.str());
 

+ 1 - 2
esp/xslt/ui_configmgr.xslt

@@ -696,8 +696,7 @@
                                   subi.<xsl:value-of select="name()"/>_required = aS.required;
                                   subi.<xsl:value-of select="name()"/>_onChange = aS.onChange;
                                   subi.<xsl:value-of select="name()"/>_onChangeMsg = aS.onChangeMsg;
-                                  if ("<xsl:value-of select="."/>"!== "")
-                                    subsubTypeKey += "[@" + "<xsl:value-of select="name()"/>" + "='" + "<xsl:value-of select="."/>" + "']";
+                                  subsubTypeKey += "[@" + "<xsl:value-of select="name()"/>" + "='" + "<xsl:value-of select="."/>" + "']";
                                   if (aS.caption)
                                     subi.<xsl:value-of select="name()"/>_caption = aS.caption;
                                 }