Skip to content

Commit

Permalink
Tolerate EncryptionMethod in registered metadata by moving the check …
Browse files Browse the repository at this point in the history
…for it down the pipeline.

Filter EncryptionMethod out before publication on UK federation aggregates.
  • Loading branch information
iay committed May 11, 2011
1 parent 148f792 commit b1641fa
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 11 deletions.
14 changes: 14 additions & 0 deletions build/check_fixups.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,18 @@
</xsl:call-template>
</xsl:template>


<!--
Use of EncryptionMethod within KeyDescriptor causes metadata loading problems
for OpenSAML-C 2.0.
See https://wiki.shibboleth.net/confluence/display/SHIB2/MetadataCorrectness#MetadataCorrectness-Version2.0
-->
<xsl:template match="md:KeyDescriptor/md:EncryptionMethod">
<xsl:call-template name="fatal">
<xsl:with-param name="m">KeyDescriptor contains EncryptionMethod: OpenSAML-C 2.0 problem</xsl:with-param>
</xsl:call-template>
</xsl:template>


</xsl:stylesheet>
11 changes: 0 additions & 11 deletions build/check_shibboleth.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,4 @@
</xsl:template>


<!--
Use of EncryptionMethod within KeyDescriptor causes metadata loading problems
for OpenSAML-C 2.0.
-->
<xsl:template match="md:KeyDescriptor/md:EncryptionMethod">
<xsl:call-template name="fatal">
<xsl:with-param name="m">KeyDescriptor contains EncryptionMethod: OpenSAML-C 2.0 problem</xsl:with-param>
</xsl:call-template>
</xsl:template>


</xsl:stylesheet>
10 changes: 10 additions & 0 deletions build/uk_master_back.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,16 @@
</xsl:copy>
</xsl:template>


<!--
Remove any EncryptionMethod elements within KeyDescriptor elements
to avoid triggering a problem in OpenSAML-C 2.0.
See https://wiki.shibboleth.net/confluence/display/SHIB2/MetadataCorrectness#MetadataCorrectness-Version2.0
-->
<xsl:template match="md:KeyDescriptor/md:EncryptionMethod"/>


<!--
Pass through certain ukfedlabel namespace elements.
-->
Expand Down
10 changes: 10 additions & 0 deletions build/uk_master_test.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,16 @@
</xsl:copy>
</xsl:template>


<!--
Remove any EncryptionMethod elements within KeyDescriptor elements
to avoid triggering a problem in OpenSAML-C 2.0.
See https://wiki.shibboleth.net/confluence/display/SHIB2/MetadataCorrectness#MetadataCorrectness-Version2.0
-->
<xsl:template match="md:KeyDescriptor/md:EncryptionMethod"/>


<!--
Normalise and pass through certain ukfedlabel namespace elements.
-->
Expand Down
10 changes: 10 additions & 0 deletions build/uk_master_unsigned.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,16 @@
</xsl:copy>
</xsl:template>


<!--
Remove any EncryptionMethod elements within KeyDescriptor elements
to avoid triggering a problem in OpenSAML-C 2.0.
See https://wiki.shibboleth.net/confluence/display/SHIB2/MetadataCorrectness#MetadataCorrectness-Version2.0
-->
<xsl:template match="md:KeyDescriptor/md:EncryptionMethod"/>


<!--
Normalise and pass through certain ukfedlabel namespace elements.
-->
Expand Down

0 comments on commit b1641fa

Please sign in to comment.