From 9f1110537251f2156628ec9e950fe6d6f763a78d Mon Sep 17 00:00:00 2001 From: Ian Young Date: Thu, 23 Jun 2011 14:27:09 +0000 Subject: [PATCH] Guarantee that ds:X509SerialNumber will not appear in published metadata: * strip it from fragment files when building the master file (old and new style) * strip it from import channels * verify this explicitly before publication This is slightly too severe, as it would be best to strip it only from the publication channels, but this is easier to do for now until we retire the old production system. --- build.xml | 3 ++- build/check_filtered.xsl | 35 +++++++++++++++++++++++++++++++++++ build/master_ukfederation.xsl | 20 +++++++++++++++++++- mdx/clean-import.xsl | 8 ++++++++ mdx/uk/fragment.xsl | 14 ++++++++++++-- mdx/validation-beans.xml | 27 +++++++++++++++++++++++++++ 6 files changed, 103 insertions(+), 4 deletions(-) create mode 100644 build/check_filtered.xsl diff --git a/build.xml b/build.xml index 084bea5b..ed2f6bf1 100644 --- a/build.xml +++ b/build.xml @@ -424,7 +424,7 @@ export flows, for which we desire the closest possible correspondence to the registered metadata. - At the moment, this is a single test which is no longer being performed elsewhere + At the moment, this consists of a few tests which are no longer being performed elsewhere but should pass by construction. In the longer term it may make sense to expand this to the fullest battery possible, with the exception of those tests which are registrar-specific. @@ -436,6 +436,7 @@ + diff --git a/build/check_filtered.xsl b/build/check_filtered.xsl new file mode 100644 index 00000000..fdb40a1f --- /dev/null +++ b/build/check_filtered.xsl @@ -0,0 +1,35 @@ + + + + + + + + + + + ds:X509SerialNumber should have been filtered out + + + + + diff --git a/build/master_ukfederation.xsl b/build/master_ukfederation.xsl index 65b65b87..d827698c 100644 --- a/build/master_ukfederation.xsl +++ b/build/master_ukfederation.xsl @@ -201,7 +201,25 @@ - + + + + + + + + + + + diff --git a/mdx/uk/fragment.xsl b/mdx/uk/fragment.xsl index 43dbca43..b0c281f1 100644 --- a/mdx/uk/fragment.xsl +++ b/mdx/uk/fragment.xsl @@ -8,7 +8,8 @@ --> - + + + + + + + + + + + + + + @@ -240,4 +253,18 @@ + + + + + + + + + + +