Issue with org.apache.commons.net.ftp.parser.OS400FTPEntryParser
Matt Pryor <[email protected]> Tue, 21 Jul 2026 13:37:53 +0100
| Newsgroups | gmane.comp.jakarta.commons.devel |
|---|---|
| Message-ID | <CABpRBaYtZspVm9DUk0zHwLBtE5EOwBRn2rOC8P1kDrcnYLWiTw@mail.gmail.com> |
--00000000000052d0f206571e4bd4 Content-Type: text/plain; charset="UTF-8" Hi there, There seems to be an issue with the regexp in this class. As can be seen below when the modified date is from a previous year, the listing contains two spaces before the filename instead of 1. This results in OS400FTPEntryParser setting the name with a leading space. Raw listing: "-rwxrwxrwx 1 TLXDRIVER 0 1592686 Jul 14 15:46 cloudfax.jar" FTPFile.getName() = "cloudfax.jar" Raw listing: "-rwxrwxrwx 1 TLXDRIVER 0 27432520 Apr 24 2025 itextpdf-5.2.1.jar" FTPFile.getName() = " itextpdf-5.2.1.jar" Raw listing: "-rwxrwxrwx 1 TLXDRIVER 0 5634374 Apr 24 2025 jt400.jar" FTPFile.getName() = " jt400.jar" Raw listing: "-rwxrwxrwx 1 TLXDRIVER 0 660167 Apr 24 2025 mail.jar" FTPFile.getName() = " mail.jar" Raw listing: "-rwxrwxrwx 1 TLXDRIVER 0 210027 Sep 08 2023 zip4j-2.11.5.jar" FTPFile.getName() = " zip4j-2.11.5.jar" Kind regards Matt Pryor Research and Development Manager The International Presence Group of Companies EMAIL: [email protected] URL: www.International-presence.com --00000000000052d0f206571e4bd4--