Croway opened a new pull request, #29334: URL: https://github.com/apache/camel/pull/29334
JIRA: [CAMEL-26066](https://issues.apache.org/jira/browse/CAMEL-26066) Backport of #29333 to `camel-4.22.x` (cherry-pick of e8c03104f24c). It is meant to be merged after #29333 is merged on `main`; if #29333 changes during review, this PR is updated the same way. The scp producer now takes the channel streams before it connects, and reads the first acknowledgement that the remote scp sends when it starts. Before, depending on timing, every later acknowledgement was read one step late: the exchange could complete before the server had written the file, and an error the server reported for the file was missed. This also makes `ScpFileNameControlCharTest` stable: it came to this branch with the #29285 backport, and it fails on the Jenkins builds when the reads are one step late. No conflicts: this is a straight cherry-pick, and the patch is the same as on `main` (same `git patch-id`). Tests: `components/camel-jsch` `mvn test` on this branch: BUILD SUCCESS, 38 tests, 0 failures (3 skipped, `@Disabled` as before), with the 8 of the new `ScpProduceAcknowledgementTest` and the 16 of `ScpFileNameControlCharTest`. _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]
