From 21342e539d044a7fcbd0583ab7604635867c982f Mon Sep 17 00:00:00 2001 From: Ian Young Date: Mon, 2 May 2011 18:27:22 +0000 Subject: [PATCH] Remove the fixup code for @use-less KeyDescriptor elements out of the (registrar) import transform and add it instead to each of the four publication flow transforms. Similarly, remove the check for this case out of the check_shibboleth ruleset into its own check_fixups ruleset, and impose that on all of the publication flows through a new CHECK.publishable macro. There is no net effect of this for currently registered metadata. New registration may have @use-less KeyDescriptors, however, which will now be retainin their entity fragment files but still fixed up in the publication flows. Metadata imported from other sources may also now have @use-less KeyDescriptor elements without that being flagged as an issue as long as the fixup is applied at some time before publication. --- build.xml | 30 ++++++++++++++++++++-- build/check_fixups.xsl | 49 ++++++++++++++++++++++++++++++++++++ build/check_shibboleth.xsl | 22 ---------------- build/import.xsl | 13 ---------- build/uk_master_back.xsl | 12 +++++++++ build/uk_master_export.xsl | 12 +++++++++ build/uk_master_test.xsl | 12 +++++++++ build/uk_master_unsigned.xsl | 12 +++++++++ 8 files changed, 125 insertions(+), 37 deletions(-) create mode 100644 build/check_fixups.xsl diff --git a/build.xml b/build.xml index db39db1b..7235eee4 100644 --- a/build.xml +++ b/build.xml @@ -415,26 +415,51 @@ + + + + + + + + + + Generating unsigned UK metadata files. + o="${md.prod.unsigned}" /> + + + + @@ -442,6 +467,7 @@ + diff --git a/build/check_fixups.xsl b/build/check_fixups.xsl new file mode 100644 index 00000000..bdd1395c --- /dev/null +++ b/build/check_fixups.xsl @@ -0,0 +1,49 @@ + + + + + + + + + + + + + IdP SSO KeyDescriptor lacking @use + + + + + + IdP AA KeyDescriptor lacking @use + + + + diff --git a/build/check_shibboleth.xsl b/build/check_shibboleth.xsl index 8b563f3c..4430eb0a 100644 --- a/build/check_shibboleth.xsl +++ b/build/check_shibboleth.xsl @@ -87,28 +87,6 @@ - - - - - IdP SSO KeyDescriptor lacking @use - - - - - - IdP AA KeyDescriptor lacking @use - - - - - - - signing - - - - - + + + signing + + + + diff --git a/build/uk_master_export.xsl b/build/uk_master_export.xsl index 689f01a9..4a893f96 100644 --- a/build/uk_master_export.xsl +++ b/build/uk_master_export.xsl @@ -129,6 +129,18 @@ + + + + signing + + + + + + + signing + + + + diff --git a/build/uk_master_unsigned.xsl b/build/uk_master_unsigned.xsl index 33e27838..032ab432 100644 --- a/build/uk_master_unsigned.xsl +++ b/build/uk_master_unsigned.xsl @@ -126,6 +126,18 @@ + + + + signing + + + +