Skip to content

Commit

Permalink
Bugzilla 1009: mdui:DisplayName and OrganizationDisplayName should be…
Browse files Browse the repository at this point in the history
… the same for IdPs

First step: add a "future" test for this.  Stop applying "future" tests to interfederation imports.
  • Loading branch information
iay committed Jun 13, 2013
1 parent 3fa8b21 commit d74902b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
22 changes: 22 additions & 0 deletions mdx/_rules/check_future_0.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,26 @@
-->
<xsl:import href="check_framework.xsl"/>

<!--
If an IdP has both an OrganizationDisplayName in English, and an
mdui:DisplayName in English, they must be identical.
UKFTS 1.4 section 3.3
-->
<xsl:template match="md:EntityDescriptor[md:IDPSSODescriptor]">
<xsl:variable name="mdui" select="md:IDPSSODescriptor/md:Extensions/mdui:UIInfo/mdui:DisplayName[@xml:lang='en']"/>
<xsl:variable name="odn" select="md:Organization/md:OrganizationDisplayName[@xml:lang='en']"/>
<xsl:if test="$mdui and $odn and $mdui != $odn">
<xsl:call-template name="error">
<xsl:with-param name="m">
<xsl:text>mismatched xml:lang='en' DisplayNames: '</xsl:text>
<xsl:value-of select="$mdui"/>
<xsl:text>' in mdui vs. '</xsl:text>
<xsl:value-of select="$odn"/>
<xsl:text>' in ODN</xsl:text>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:template>

</xsl:stylesheet>
1 change: 0 additions & 1 deletion mdx/validation-beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,6 @@
<property name="composedStages">
<list>
<ref bean="CHECK_std"/>
<ref bean="check_future"/>
<ref bean="check_regscope"/>
</list>
</property>
Expand Down

0 comments on commit d74902b

Please sign in to comment.