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

   ## Backport of #29843
   
   Backport of #29843 (CAMEL-26921: camel-oaipmh - remove the 
CamelOaimphIgnoreSSLWarnings producer header) to `camel-4.18.x`.
   
   **Adapted, not a straight cherry-pick.** On `main`, #29843 builds on #28690 
(CAMEL-26130), which made the `CamelOaimphOnlyFirst` and 
`CamelOaimphIgnoreSSLWarnings` headers apply to their exchange only, and then 
removes the `CamelOaimphIgnoreSSLWarnings` header. `camel-4.18.x` has neither 
change: its producer still writes both headers onto the shared endpoint.
   
   A patch release should not remove a header, so this backport brings only the 
per-exchange behaviour to `camel-4.18.x`:
   
   - Cherry-picked `00f66540c4ce` (#28690, CAMEL-26130) with `-x`: 
`OAIPMHProducer` reads `CamelOaimphOnlyFirst` and 
`CamelOaimphIgnoreSSLWarnings` for the current exchange and no longer writes 
them onto the endpoint. A message without the header uses the `onlyFirst` and 
`ignoreSSLWarnings` options of the endpoint.
   - Conflict resolved by hand in `OAIPMHProducer`: `camel-4.18.x` has no 
`httpHeaders` option (endpoint HTTP headers and the `CamelOaimphHttpHeaders` 
header), so that code from `main` is not brought in; only the per-exchange 
change is applied.
   - `OAIPMHProducerHeadersPerExchangeTest` from #28690 (four tests, against 
`MockOaipmhServer` over HTTP and HTTPS) uses `camel-test-junit5` on this branch 
instead of `camel-test-junit6`, like the other tests of the module.
   - The removal of the `CamelOaimphIgnoreSSLWarnings` header and the 
`OAIPMHConstants.IGNORE_SSL_WARNINGS` constant (#29843) is not backported; the 
header keeps working on `camel-4.18.x`, for its own exchange only.
   - The upgrade-guide change is left out of this branch: the upgrade guides 
live on `main`, and the 4.18.6 note goes there in a separate doc-sync PR.
   
   JIRA: https://issues.apache.org/jira/browse/CAMEL-26921 (fix version 4.18.6)
   
   _Claude Code on behalf of Claus Ibsen (davsclaus)_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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