[
https://issues.apache.org/jira/browse/NET-566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sebb resolved NET-566.
----------------------
Resolution: Fixed
Fix Version/s: 3.4
RL: http://svn.apache.org/r1652696
Log:
NET-566 UnixFTPEntryParser Drops Leading Spaces from File Names
Modified:
commons/proper/net/trunk/src/changes/changes.xml
commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClientConfig.java
commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactory.java
commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParser.java
commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParserTest.java
> UnixFTPEntryParser Drops Leading Spaces from File Names
> -------------------------------------------------------
>
> Key: NET-566
> URL: https://issues.apache.org/jira/browse/NET-566
> Project: Commons Net
> Issue Type: Bug
> Components: FTP
> Affects Versions: 3.3
> Environment: OSX client, Linux ftpd
> Reporter: Gary Russell
> Fix For: 3.4
>
> Attachments: unixParser.patch
>
>
> The {{UnixFTPEntryParser}} [regular expression |
> http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParser.java?view=markup]
> (line 106) consumes all spaces between the timestamp and the file name.
> The {{FTPFile.name}} property ends up getting a value with stripped leading
> spaces.
> Reported by Spring Integration user at https://jira.spring.io/browse/INT-3591
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)