[
https://issues.apache.org/jira/browse/CAMEL-24216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aurélien Pupier updated CAMEL-24216:
------------------------------------
Description:
org.apache.camel.component.xslt.XsltComponent.setXpathTotalOpLimit(int) allows
to configure jdk.xml.xpathTotalOpLimit
this is setting through a ssytem property in doInit()
The value is cleared in doShutdown
The doShutdown is nto called during test execution of ZXsltTotalOpsTest causing
potentially other tests to fail. it is sometimes the case for
XsltFromFileExceptionTest when thsi one is falky and failed a first time,
because the retries occurs after all tests, and so after ZXsltTotalOpsTest
also we should:
* store previous value of jdk.xml.xpathTotalOpLimit to restore it instead of
clearing it
* provide some logging in case a value was already set?
was:
org.apache.camel.component.xslt.XsltComponent.setXpathTotalOpLimit(int) allows
to configure jdk.xml.xpathTotalOpLimit
this is setting through a ssytem property in doInit()
The value is cleared in doShutdown
The doShutdown is nto called during test execution of ZXsltTotalOpsTest causing
potentially other tests to fail. it is sometimes the case for
XsltFromFileExceptionTest when thsi one is falky and failed a first time,
because the retries occurs after all tests, and so after ZXsltTotalOpsTest
> jdk.xml.xpathTotalOpLimit can be overriden and is not set back correctly
> after execution
> ----------------------------------------------------------------------------------------
>
> Key: CAMEL-24216
> URL: https://issues.apache.org/jira/browse/CAMEL-24216
> Project: Camel
> Issue Type: Test
> Components: camel-xslt
> Affects Versions: 4.21.0
> Reporter: Aurélien Pupier
> Priority: Minor
>
> org.apache.camel.component.xslt.XsltComponent.setXpathTotalOpLimit(int)
> allows to configure jdk.xml.xpathTotalOpLimit
> this is setting through a ssytem property in doInit()
> The value is cleared in doShutdown
> The doShutdown is nto called during test execution of ZXsltTotalOpsTest
> causing potentially other tests to fail. it is sometimes the case for
> XsltFromFileExceptionTest when thsi one is falky and failed a first time,
> because the retries occurs after all tests, and so after ZXsltTotalOpsTest
> also we should:
> * store previous value of jdk.xml.xpathTotalOpLimit to restore it instead of
> clearing it
> * provide some logging in case a value was already set?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)