Skip to content

Commit

Permalink
[WFLY-7039] Update tranformer definitions to reject the newly added s…
Browse files Browse the repository at this point in the history
…sl-context attributes if transforming to an older release.
  • Loading branch information
darranl committed Sep 6, 2016
1 parent 2691520 commit fe68c51
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,19 @@ private static void registerTransformers_EAP_7_0_0(SubsystemRegistration subsyst
.addRejectCheck(RejectAttributeChecker.UNDEFINED, Constants.SECURITY_REALM)
.end();

builder.addChildResource(UndertowExtension.PATH_FILTERS)
.addChildResource(PathElement.pathElement(Constants.MOD_CLUSTER))
.getAttributeBuilder()
.addRejectCheck(RejectAttributeChecker.DEFINED, Constants.SSL_CONTEXT)
.end();

builder.addChildResource(UndertowExtension.PATH_HANDLERS)
.addChildResource(PathElement.pathElement(Constants.REVERSE_PROXY))
.addChildResource(PathElement.pathElement(Constants.HOST))
.getAttributeBuilder()
.addRejectCheck(RejectAttributeChecker.DEFINED, Constants.SSL_CONTEXT)
.end();

builder.discardChildResource(PathElement.pathElement(Constants.APPLICATION_SECURITY_DOMAIN));

TransformationDescription.Tools.register(builder.build(), subsystemRegistration, UndertowExtension.MODEL_VERSION_EAP7_0_0);
Expand Down

0 comments on commit fe68c51

Please sign in to comment.