You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2022/11/26 18:30:00 UTC

[jira] [Resolved] (NET-707) FTPClient::listFiles() doesn't include files with spaces for AS400

     [ https://issues.apache.org/jira/browse/NET-707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary D. Gregory resolved NET-707.
---------------------------------
    Fix Version/s: 3.9.0
       Resolution: Fixed

> FTPClient::listFiles() doesn't include files with spaces for AS400
> ------------------------------------------------------------------
>
>                 Key: NET-707
>                 URL: https://issues.apache.org/jira/browse/NET-707
>             Project: Commons Net
>          Issue Type: Bug
>         Environment: AS400 ftp server
>            Reporter: Dmytro Sylaiev
>            Priority: Major
>             Fix For: 3.9.0
>
>
> For the FTP server on AS400 I got the different response size for FTPClient::listFiles() and FTPClient::listNames() (first one doesn't include file with spaces)
>  
> TheOS400FTPEntryParser pattern is 
> {noformat}
> private static final String REGEX =
>     "(\\S+)\\s+"                  // user
>     + "(?:(\\d+)\\s+)?"           // size, empty for members
>     + "(?:(\\S+)\\s+(\\S+)\\s+)?" // date stuff, empty for members
>     + "(\\*STMF|\\*DIR|\\*FILE|\\*MEM)\\s+"  // *STMF/*DIR/*FILE/*MEM
>     + "(?:(\\S+)\\s*)?";          // file name, missing, when CWD is a *FILE{noformat}
> and the server response for LIST command
> {noformat}
> MYUSER 3 06/12/21 18:31:29 *STMF file with space.txt {noformat}
> doesn't match that regex.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)