https://issues.apache.org/bugzilla/show_bug.cgi?id=52799
Bug #: 52799
Summary: FTP action get fails on Feb 29th
Product: Ant
Version: 1.8.2
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Optional Tasks
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Ant is referencing the jarkata version, which is 1.4.1, and has apparently
been retired. So this isn't specifically an ant problem, but a problem with
the commons-net library installed on the host.
An FTP get task in our ant build fails for for fetching files created on Feb
29.
The failure is caused by
org.apache.commons.net.ftp.parser.UnixFTPEntryParser.parseFTPEntry
in apache-commons-net 1.4.1 and is fixed by apache-commons-net 3.1.
print entry
entry = "drwxr-xr-x 7 tm_build staff 1024 Feb 29 14:28 config"
print datestr
datestr = "Feb 29 14:28"
Version 1.4.1:
168 try
169 {
170 file.setTimestamp(super.parseTimestamp(datestr));
171 }
172 catch (ParseException e)
173 {
174 return null; // this is a parsing failure too.
175 }
is fixed by
184 try
185 {
186 file.setTimestamp(super.parseTimestamp(datestr));
187 }
188 catch (ParseException e)
189 {
190 // intentionally do nothing
191 }
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.