From 37e78b1c41a995e75eb95fd98db19d8ef4b0ba56 Mon Sep 17 00:00:00 2001 From: Nilesh Ghodekar Date: Thu, 17 Sep 2020 20:54:27 +0100 Subject: [PATCH] BugFix: Selected Attributes section does not correctly document if the flows are configured or not due to changes in the syncrule xml config structure in the recent AADC versions. --- src/AzureADConnectSyncDocumenter/ConnectorDocumenter.cs | 2 +- src/VersionInfo.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AzureADConnectSyncDocumenter/ConnectorDocumenter.cs b/src/AzureADConnectSyncDocumenter/ConnectorDocumenter.cs index 9b1fc00..17d2017 100644 --- a/src/AzureADConnectSyncDocumenter/ConnectorDocumenter.cs +++ b/src/AzureADConnectSyncDocumenter/ConnectorDocumenter.cs @@ -1054,7 +1054,7 @@ namespace AzureADConnectConfigDocumenter var attributeInfo = connector.XPathSelectElement(".//dsml:attribute-type[dsml:name = '" + attributeName + "']", Documenter.NamespaceManager); if (attributeInfo != null) { - var hasInboundFlows = config.XPathSelectElements(Documenter.GetSynchronizationRuleXmlRootXPath(pilotConfig) + "/synchronizationRule[translate(connector, '" + Documenter.LowercaseLetters + "', '" + Documenter.UppercaseLetters + "') = '" + currentConnectorGuid + "' and direction = 'Inbound' " + Documenter.SyncRuleDisabledCondition + "]/attribute-mappings/mapping/src[attr = '" + attributeName + "']").Count() != 0; + var hasInboundFlows = config.XPathSelectElements(Documenter.GetSynchronizationRuleXmlRootXPath(pilotConfig) + "/synchronizationRule[translate(connector, '" + Documenter.LowercaseLetters + "', '" + Documenter.UppercaseLetters + "') = '" + currentConnectorGuid + "' and direction = 'Inbound' " + Documenter.SyncRuleDisabledCondition + "]/attribute-mappings/mapping[./src/attr/text()='" + attributeName + "' or contains(./expression/text(), '[" + attributeName + "]')]").Count() != 0; var hasOutboundFlows = config.XPathSelectElements(Documenter.GetSynchronizationRuleXmlRootXPath(pilotConfig) + "/synchronizationRule[translate(connector, '" + Documenter.LowercaseLetters + "', '" + Documenter.UppercaseLetters + "') = '" + currentConnectorGuid + "' and direction = 'Outbound' " + Documenter.SyncRuleDisabledCondition + "]/attribute-mappings/mapping[dest = '" + attributeName + "']").Count() != 0; var row = table.NewRow(); diff --git a/src/VersionInfo.cs b/src/VersionInfo.cs index 004caae..4534437 100644 --- a/src/VersionInfo.cs +++ b/src/VersionInfo.cs @@ -22,7 +22,7 @@ namespace AzureADConnectConfigDocumenter /// Build Number (MMDD) /// Revision (if any on the same day) /// - internal const string Version = "1.20.0511.0"; + internal const string Version = "1.20.0917.0"; /// /// File Version information for the assembly consists of the following four values: @@ -31,6 +31,6 @@ namespace AzureADConnectConfigDocumenter /// Build Number (MMDD) /// Revision (if any on the same day) /// - internal const string FileVersion = "1.20.0511.0"; + internal const string FileVersion = "1.20.0917.0"; } } \ No newline at end of file