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

   ## Backport of #28154
   
   Port of #28154 (squash 3c848184a78d) onto `camel-4.22.x`.
   
   **Original PR:** #28154 - CAMEL-25459, CAMEL-25460, CAMEL-25461: 
camel-thrift - apply the SSL settings of the consumer and mute its exceptions
   **Original author:** @oscerd
   **Target branch:** `camel-4.22.x`
   
   Not a straight cherry-pick, so reviewers are requested. On this branch the 
synchronous `ThriftMethodHandler` does not
   send the exception of a failed exchange to the client (CAMEL-25247 is on 
`main` only), so:
   - `ThriftMethodHandler`: `muteException` applies to the asynchronous server 
only; the rest of the handler is the
     branch's own (CAMEL-25247 is not brought over).
   - `ThriftConsumerMuteExceptionTest` keeps the asynchronous cases (muted, not 
muted, declared exception) and drops the
     synchronous ones.
   - `thrift-component.adoc`: "Errors sent to the client" says that this 
applies to the asynchronous consumer.
   - Everything else (SSL with `synchronous=false` and SASL failing at startup, 
the SSL consumer built from
     `sslParameters.createSSLContext()`, the `muteException` option, the tests) 
is as in #28154. The upgrade-guide note for
     4.22.3 already lives on `main`.
   
   Build: full reactor `mvn clean install -DskipTests -DskipITs` on the branch: 
BUILD SUCCESS (684/684 modules); the catalog copy of `thrift-component.adoc` 
was regenerated from the adapted doc and committed; `camel-thrift` tests: 49/49 
(`ThriftConsumerMuteExceptionTest` 3/3, 
`ThriftConsumerClientAuthenticationTest` 2/2, 
`ThriftNegotiationTypeStartupTest` 3/3, `ThriftConsumerSecurityTest` 2/2). 
Without the `ThriftMethodHandler` change, `asyncServerMutesTheException` fails 
with `expected: <Internal error processing add> but was: <Detail of the 
failure>`.
   
   JIRA: https://issues.apache.org/jira/browse/CAMEL-25459, 
https://issues.apache.org/jira/browse/CAMEL-25460,
   https://issues.apache.org/jira/browse/CAMEL-25461
   
   _Claude Code on behalf of Andrea Cosentino (@oscerd)_
   
   🤖 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