You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Bertolotto (Jira)" <ji...@apache.org> on 2025/03/23 08:47:00 UTC
[jira] [Created] (CAMEL-21891) (S)ftpConsumer and antInclude regression
Andrea Bertolotto created CAMEL-21891:
-----------------------------------------
Summary: (S)ftpConsumer and antInclude regression
Key: CAMEL-21891
URL: https://issues.apache.org/jira/browse/CAMEL-21891
Project: Camel
Issue Type: Bug
Components: camel-ftp
Affects Versions: 4.10.2, 4.10.1, 4.10.0
Environment: Camel 4.10.x using SFTP route consumer with antInclude parameter
Reporter: Andrea Bertolotto
Based on modifications in SftpConsumer and FtpConsumer classes, with new getRelativeFilePath method, file names from root FTP folder are now returned as relative, so e.g. "/fileName.csv", instead of previous "fileName.csv". This change causes a regression in antInclude filters, not working anymore (maybe this is a desired breaking change, but undocumented).
Previous working antInclude parameter: "*" - get all files in root FTP directory
From 4.10 and on, same parameter values matches no files
AntInclude parameter now follows previous behavior using: "/*" - all file names become relatives
SftpConsumer#doPollDirectory -> GenericFileConsumer#isValidFile -> GenericFileConsumer#isMatched -> AntFilter#accept -> AntPathMatcherFileFilter#acceptPathName ->
matcher.match(include, path, caseSensitive) skips now all files, starting with relative path "/"
--
This message was sent by Atlassian Jira
(v8.20.10#820010)