davsclaus opened a new pull request, #30425: URL: https://github.com/apache/camel/pull/30425
## Backport of #30211 Backport of #30211 (CAMEL-27054: camel-ftp - refuse a file or directory name with a carriage return or line feed) onto `camel-4.18.x`, for 4.18.6. JIRA: [CAMEL-27054](https://issues.apache.org/jira/browse/CAMEL-27054) **Original PR:** #30211 (squash commit 9d7c28bb4702) **Original author:** @davsclaus **Target branch:** `camel-4.18.x` ### Straight or adapted Adapted: a cherry-pick (`-x`) of 9d7c28bb4702, with these changes for `camel-4.18.x`: - **Clean merges:** `FtpOperations` and the new tests `FtpProducerFileNameLineBreakTest` and `FtpProducerFileNameLineBreakIT`. - **`FakeFtpServer`:** this test helper came with CAMEL-26999/CAMEL-27000 (#30087), which is not on this branch. It is added as the file from `main`, with the `commands()` list this PR uses. - **Test support:** the new tests and `FakeFtpServer` use `camel-test-junit5` on this branch, not `camel-test-junit6`. - **`ftp-component.adoc`:** only the new section "File and directory names with a line break". The section before it on `main` belongs to #30087. This branch has no catalog copy of the ftp doc. - **Upgrade guide:** left out. The 4.18.6 note is already in `camel-4x-upgrade-guide-4_18.adoc` on `main` (part of #30211). ### Tests - `FtpProducerFileNameLineBreakTest` (16) and `FtpProducerFileNameLineBreakIT` (3) pass on this branch (JDK 21). _Claude Code on behalf of Claus Ibsen_ 🤖 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]
