Skip to content

Commit

Permalink
Add generic Java-based check for invalid URLs in Location attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Mar 1, 2010
1 parent 3f8033c commit 8069ad9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build/check_misc.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
xmlns:set="http://exslt.org/sets"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:idpdisc="urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol"

xmlns:mdxURL="xalan://uk.ac.sdss.xalan.md.URLchecker"

xmlns="urn:oasis:names:tc:SAML:2.0:metadata">

<!--
Expand Down Expand Up @@ -153,6 +156,19 @@
</xsl:template>


<!--
Check for Locations that aren't valid URLs.
-->
<xsl:template match="*[@Location and mdxURL:invalidURL(@Location)]">
<xsl:call-template name="fatal">
<xsl:with-param name="m">
<xsl:value-of select='local-name()'/>
<xsl:text> Location is not a valid URL: </xsl:text>
<xsl:value-of select="mdxURL:whyInvalid(@Location)"/>
</xsl:with-param>
</xsl:call-template>
</xsl:template>

<!--
Check for empty xml:lang elements, automatically generated by OIOSAML.
Expand Down
Binary file removed tools/xalan/lib/sdss-xalan-md-1.0.jar
Binary file not shown.
Binary file added tools/xalan/lib/sdss-xalan-md-1.1.jar
Binary file not shown.

0 comments on commit 8069ad9

Please sign in to comment.