From ee410a379a43d33251be98f6f91c2d2b128486ef Mon Sep 17 00:00:00 2001 From: Ian Young Date: Thu, 4 Apr 2013 13:27:22 +0000 Subject: [PATCH] Major refactoring of the fixup system. Move everything related to fixups into the mdx/uk directory; move the major related beans definitions into the generate spring definition file, as they are not (and should not) be used elsewhere. Split the existing fixups definitions (applying and checking for fixups) into two: one set for the EncryptionMethod fixup and one set for the IdP KeyDescriptor/@use fixup. Move the application of fixups away from the input channels and into the output pipelines. Move the generation of the test aggregate into a pipeline (actually, a composite stage) of its own, so that it's more similar-looking to the other output pipelines. This is a pure refactoring, with no output changes as a result. However, we're now ready to start publishing EncryptionMethod elements in selected aggregates if and when desired. --- mdx/uk/beans.xml | 36 ---- mdx/uk/check_fixup_encmethod.xsl | 36 ++++ .../check_fixup_keyuse.xsl} | 37 +--- mdx/uk/{fixups.xsl => fixup_keyuse.xsl} | 19 +- mdx/uk/generate.xml | 170 +++++++++++++++--- mdx/validation-beans.xml | 12 -- 6 files changed, 195 insertions(+), 115 deletions(-) create mode 100644 mdx/uk/check_fixup_encmethod.xsl rename mdx/{_rules/check_fixups.xsl => uk/check_fixup_keyuse.xsl} (50%) rename mdx/uk/{fixups.xsl => fixup_keyuse.xsl} (68%) diff --git a/mdx/uk/beans.xml b/mdx/uk/beans.xml index 77a83069..0bfeb525 100644 --- a/mdx/uk/beans.xml +++ b/mdx/uk/beans.xml @@ -252,27 +252,6 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/mdx/uk/check_fixup_encmethod.xsl b/mdx/uk/check_fixup_encmethod.xsl new file mode 100644 index 00000000..0e5825cf --- /dev/null +++ b/mdx/uk/check_fixup_encmethod.xsl @@ -0,0 +1,36 @@ + + + + + + + + + + + + KeyDescriptor contains EncryptionMethod: OpenSAML-C 2.0 problem + + + + + diff --git a/mdx/_rules/check_fixups.xsl b/mdx/uk/check_fixup_keyuse.xsl similarity index 50% rename from mdx/_rules/check_fixups.xsl rename to mdx/uk/check_fixup_keyuse.xsl index 53f90ee6..cb91fe5d 100644 --- a/mdx/_rules/check_fixups.xsl +++ b/mdx/uk/check_fixup_keyuse.xsl @@ -1,12 +1,7 @@ - + + Checks for an IdP whose KeyDescriptor elements do not include a @use attribute. + This causes problems with the Shibboleth 1.3 SP prior to V1.3.1, which + interprets this as "no use permitted" rather than "either signing or encryption use + permitted". + + Two checks are required, one for each of the IdP role descriptors. + --> @@ -45,19 +40,5 @@ IdP AA KeyDescriptor lacking @use - - - - - - KeyDescriptor contains EncryptionMethod: OpenSAML-C 2.0 problem - - - - diff --git a/mdx/uk/fixups.xsl b/mdx/uk/fixup_keyuse.xsl similarity index 68% rename from mdx/uk/fixups.xsl rename to mdx/uk/fixup_keyuse.xsl index 403d9a3e..04afcc7c 100644 --- a/mdx/uk/fixups.xsl +++ b/mdx/uk/fixup_keyuse.xsl @@ -1,21 +1,15 @@ + exclude-result-prefixes="xsl"> @@ -34,15 +28,6 @@ - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + @@ -196,11 +311,14 @@ + + - + + @@ -253,13 +371,16 @@ + + - + + @@ -308,6 +429,27 @@ + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + diff --git a/mdx/validation-beans.xml b/mdx/validation-beans.xml index 5644fecd..7b56fa4b 100644 --- a/mdx/validation-beans.xml +++ b/mdx/validation-beans.xml @@ -254,18 +254,6 @@ - - - - - - - - -