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

   Backport of #30232 to camel-4.18.x.
   
   Cherry-pick (`git cherry-pick -x`) of 6cb84a4de0ed (CAMEL-27062: camel-cxf, 
camel-cxf-rest - the producers say the former operationName header is not read, 
and do not send it). A route that still sets `operationName` or 
`operationNamespace`, the names the `CamelCxfOperationName` and 
`CamelCxfOperationNamespace` headers replaced, now gets a hint: the cxf 
producer logs a WARN once when a former header is set without its replacement, 
and once when it invokes the first operation that CXF returns for a service 
with more than one operation; the cxfrs proxy producer fails with a 
`NoSuchMethodException` that names `CamelCxfOperationName` instead of "Cannot 
find method with name: null"; and the default header filter strategies of cxf 
and cxfrs no longer send the former header names to the service as HTTP headers.
   
   Adjustments:
   - `CxfProducerOperationHeaderTest` and `CxfRsProducerOperationHeaderTest` 
import `org.apache.camel.test.junit5.CamelTestSupport` instead of 
`org.apache.camel.test.junit6.CamelTestSupport`: on this branch the 
camel-cxf-soap and camel-cxf-rest tests use camel-test-junit5 (in the module 
poms, and the other tests of these modules import the junit5 class). These two 
lines are the only change to the code of the main commit.
   - `cxfrs-component.adoc` conflicted: on this branch the page has no 
"Proxy-based client API" section (main restructured the page after 4.22). The 
two new paragraphs are added after the proxy-API paragraph of "How to invoke 
the REST service through camel-cxfrs producer", and the first sentence names 
the header, "Without the `CamelCxfOperationName` header, ...", instead of 
"Without this header, ...", because that paragraph does not name it.
   - The catalog copies of the component docs 
(`catalog/.../catalog/docs/cxf-component.adoc` and `cxfrs-component.adoc`) are 
left out: camel-4.18.x does not keep that mirror for these components, and its 
build does not generate it.
   - The hunk of `camel-4x-upgrade-guide-4_24.adoc` is left out: the file does 
not exist on this branch, and the upgrade guides are published from main, where 
the 4.18.6 note is added separately.
   - The commit message is the one of the main commit plus the cherry-pick 
line: the main commit has no `Co-authored-by` trailer to drop.
   - `CxfProducer`, `CxfRsProducer`, `CxfRsHeaderFilterStrategy`, 
`CxfHeaderFilterStrategy`, `CxfRsHeaderFilterStrategyTest` and 
`cxf-component.adoc` apply unchanged.
   
   Tests, on camel-4.18.x with JDK 25 (`mvnd test -pl 
components/camel-cxf/camel-cxf-common,components/camel-cxf/camel-cxf-transport,components/camel-cxf/camel-cxf-soap,components/camel-cxf/camel-cxf-rest
 -am -Dtest='org/apache/camel/component/cxf/**/*Test'`): all 93 test classes of 
camel-cxf-transport, camel-cxf-soap and camel-cxf-rest (camel-cxf-common has 
none), 238 tests, 0 failures, 1 skipped. `CxfProducerOperationHeaderTest` (7), 
`CxfRsProducerOperationHeaderTest` (9), `CxfRsHeaderFilterStrategyTest` (3), 
`CxfProducerTest` (3) and `CxfHeaderHelperTest` (3) pass. The build leaves no 
uncommitted change (formatter, impsort).
   
   _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