Croway opened a new pull request, #30150:
URL: https://github.com/apache/camel/pull/30150

   Backport of #30007 to camel-4.22.x.
   
   Cherry-pick (`git cherry-pick -x`) of ebaf2a079b3e (CAMEL-26976: camel-xslt 
- apply transformerFactoryConfigurationStrategy and secureProcessing in all 
configurations). The `xslt` endpoint calls the 
`transformerFactoryConfigurationStrategy` also on the default 
`TransformerFactory`. The `xslt-saxon` endpoint falls back to the 
`transformerFactoryConfigurationStrategy` and `transformerFactoryClass` of the 
component, and applies `secureProcessing` after a `saxonConfiguration` bean (it 
builds on CAMEL-24108, which is on this branch), so the bean no longer discards 
it. The `saxonConfiguration` and `secureProcessing` descriptions say that 
endpoints sharing a configuration must use the same `secureProcessing` value, 
in the component JSON, catalog, component DSL and endpoint DSL of xslt-saxon 
and xj.
   
   Adjustments:
   - The hunks of `camel-4x-upgrade-guide-4_22.adoc` and 
`camel-4x-upgrade-guide-4_24.adoc` are left out: the upgrade guides are 
published from main, where #30007 added the 4.24 note and the 4.22.3 note.
   - The 4 generated JSON files (`xslt-saxon.json`, `xj.json` and their catalog 
copies) apply without a conflict, but their neighbouring header lines differ on 
this branch (`"deprecationNote": ""`). In each file only the 
`saxonConfiguration` and `secureProcessing` lines are changed, from the same 
old text as on main to the same new text.
   - The `Co-authored-by` trailer of the main commit is not carried over. 
`XsltEndpoint`, `XsltSaxonComponent`, `XsltSaxonEndpoint`, the 3 tests, 
`result-document.xsl` and the 4 DSL files apply unchanged.
   
   Tests, on camel-4.22.x with JDK 25 (`mvnd test -pl 
core/camel-core,components/camel-xslt,components/camel-xslt-saxon,components/camel-xj
 -am 
-Dtest='org/apache/camel/component/xslt/**/*Test,org/apache/camel/component/xj/**/*Test'`):
 camel-core xslt 43 tests in 30 classes, camel-xslt-saxon 77 tests in 29 
classes, camel-xj 74 tests in 12 classes, 0 failures, 0 skipped (plus the 
matching xslt tests of camel-management and camel-spring-xml, 11, all pass). 
The new tests pass: `XsltTransformerFactoryConfigurationStrategyTest` (2), 
`XsltSaxonComponentFactoryOptionsTest` (2), 
`XsltSaxonConfigurationSecureProcessingTest` (3). The build leaves no 
uncommitted change (formatter, impsort, regenerated `xslt-saxon.json` and 
`xj.json`).
   
   _Claude Code on behalf of Federico Mariani_
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to