Skip to content

Commit

Permalink
21 - Hitting the JDK 11 XML processing limits
Browse files Browse the repository at this point in the history
 - Add XML processing limit attribute overides to non-xalan branches.
 - Remove bean override from xalan branches.

#21
  • Loading branch information
philsmart committed Feb 9, 2024
1 parent 990521d commit 3a8ecdc
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 20 deletions.
13 changes: 13 additions & 0 deletions validators/overlays/010/default-validator-beans-overrides.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">

<bean id="child.MigrationAssistanceBean" lazy-init="false" parent="mda.MigrationAssistanceBean"/>

<!--
check_reqattr - override to disable jdk.xml.xpathExprOpLimit attribute required for
the native JDK XSLT processor
-->
<bean id="check_reqattr" parent="mda.XSLValidationStage"
p:XSLResource="classpath:_rules/check_reqattr.xsl">
<property name="transformAttributes">
<map>
<entry key="jdk.xml.xpathExprOpLimit" value="0"/>
</map>
</property>
</bean>

<!-- Locations of these lists have changed in 0.10 -->
<bean id="compromised.2048" parent="X509RSAOpenSSLBlacklistValidator"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,5 @@
<bean id="debian.4096" parent="X509RSAOpenSSLBlacklistValidator"
p:keySize="4096"
p:blacklistResource="classpath:net/shibboleth/metadata/keylists/rsa/debian-4096.txt"/>

<!--
check_reqattr - override to disable jdk.xml.xpathExprOpLimit attribute required for
the native JDK XSLT processor
-->
<bean id="check_reqattr" parent="mda.XSLValidationStage"
p:XSLResource="classpath:_rules/check_reqattr.xsl"/>


</beans>
12 changes: 12 additions & 0 deletions validators/overlays/09/default-validator-beans-overrides.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">

<!--
check_reqattr - override to disable jdk.xml.xpathExprOpLimit attribute required for
the native JDK XSLT processor
-->
<bean id="check_reqattr" parent="mda.XSLValidationStage"
p:XSLResource="classpath:_rules/check_reqattr.xsl">
<property name="transformAttributes">
<map>
<entry key="jdk.xml.xpathExprOpLimit" value="0"/>
</map>
</property>
</bean>

<bean id="ukf.IPHintValidationStage" abstract="true" parent="ukf.stage_parent"
class="uk.org.ukfederation.mda.validate.mdui.IPHintValidationStage"/>
Expand Down
7 changes: 0 additions & 7 deletions validators/overlays/09x/default-validator-beans-overrides.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">

<!--
check_reqattr - override to disable jdk.xml.xpathExprOpLimit attribute required for
the native JDK XSLT processor
-->
<bean id="check_reqattr" parent="mda.XSLValidationStage"
p:XSLResource="classpath:_rules/check_reqattr.xsl"/>

<bean id="ukf.IPHintValidationStage" abstract="true" parent="ukf.stage_parent"
class="uk.org.ukfederation.mda.validate.mdui.IPHintValidationStage"/>

Expand Down
5 changes: 0 additions & 5 deletions validators/overlays/all/classes/default-validator-beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,6 @@
-->
<bean id="check_reqattr" parent="mda.XSLValidationStage"
p:XSLResource="classpath:_rules/check_reqattr.xsl">
<property name="transformAttributes">
<map>
<entry key="jdk.xml.xpathExprOpLimit" value="0"/>
</map>
</property>
</bean>

<!--
Expand Down

0 comments on commit 3a8ecdc

Please sign in to comment.