Leap Year Bug in Ant 1.7.0 FTP task?

View: New views
7 Messages — Rating Filter:   Alert me  

Leap Year Bug in Ant 1.7.0 FTP task?

by Francis Brennan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Has anyone else run across a bug in the FTP task in Ant 1.7.0 related to
Feb 29th timestamps?.
 
I've used the FTP task as part of an automated system to retrieve builds
from a server and has been functioning reliably for many months without
change.  Beginning on Feb 29th at 12:00 AM, all FTP "recv" operations on
multiple machines (windows and unix) began failing with
nullPointerException originating from the FTPDirectoryScanner subclass.
 
The problem reproduces if I attempt to retrieve a file with a Feb 29th
date or if the file I am trying to retrieve is in a directory with other
files or directories, any of which have a Feb 29th date.  This issue
does not appear to affect "put" operations.
 
Anyone else run across this problem or know of a patch for it?  If not,
I'll report it as a new bug.
 
Francis

Re: Leap Year Bug in Ant 1.7.0 FTP task?

by Steve Loughran :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Francis Brennan wrote:

> Has anyone else run across a bug in the FTP task in Ant 1.7.0 related to
> Feb 29th timestamps?.
>  
> I've used the FTP task as part of an automated system to retrieve builds
> from a server and has been functioning reliably for many months without
> change.  Beginning on Feb 29th at 12:00 AM, all FTP "recv" operations on
> multiple machines (windows and unix) began failing with
> nullPointerException originating from the FTPDirectoryScanner subclass.
>  
> The problem reproduces if I attempt to retrieve a file with a Feb 29th
> date or if the file I am trying to retrieve is in a directory with other
> files or directories, any of which have a Feb 29th date.  This issue
> does not appear to affect "put" operations.
>  
> Anyone else run across this problem or know of a patch for it?  If not,
> I'll report it as a new bug.
>  
> Francis
>

Report it as a bug, with a stack trace, and we'll take a look.

-is it the remote files that have feb 29 dates?
-the locale is english, yes?

-include an FTP listing of the remote directory for us to look at

-steve

--
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


RE: Leap Year Bug in Ant 1.7.0 FTP task?

by Jukka Uusisalo-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> -----Original Message-----

> From: Francis Brennan [mailto:fbrennan@...]
> Sent: 5. maaliskuuta 2008 23:48
> To: user@...
> Subject: Leap Year Bug in Ant 1.7.0 FTP task?
>
>
> Has anyone else run across a bug in the FTP task in Ant 1.7.0
> related to
> Feb 29th timestamps?.
>  
I also run across this one  and my workaround was just change file/directory
date something
else than Feb 29.

- Jukka -





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...

RE: Leap Year Bug in Ant 1.7.0 FTP task?

by Gilles Scokart :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


We came at work with a 29 February bug also.  The bug was actually that we were parsing a date without specifying the
year : "02/29".  At some step of the parsing the jdk consider the date is be in the year 1970 (which is not a leap
year), which crashed our application.

Regards,

Gilles


> -----Original Message-----
> From: Jukka Uusisalo [mailto:jukka.uusisalo@...]
> Sent: jeudi 6 mars 2008 14:16
> To: 'Ant Users List'
> Subject: RE: Leap Year Bug in Ant 1.7.0 FTP task?
>
> > -----Original Message-----
> > From: Francis Brennan [mailto:fbrennan@...]
> > Sent: 5. maaliskuuta 2008 23:48
> > To: user@...
> > Subject: Leap Year Bug in Ant 1.7.0 FTP task?
> >
> >
> > Has anyone else run across a bug in the FTP task in Ant 1.7.0
> > related to
> > Feb 29th timestamps?.
> >
>
> I also run across this one  and my workaround was just change file/directory
> date something
> else than Feb 29.
>
> - Jukka -
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


RE: Leap Year Bug in Ant 1.7.0 FTP task?

by Matt Benson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ALL:  Note that Ant's FTP task uses commons-net, which
received a flurry of bug reports relating to the leap
day issue on Feb 29.  This says to me that there is
around a 99% chance that the bug lies in commons-net,
and that Ant is for the most part powerless.

-Matt

--- Jukka Uusisalo <jukka.uusisalo@...>
wrote:

> > -----Original Message-----
> > From: Francis Brennan [mailto:fbrennan@...]
> > Sent: 5. maaliskuuta 2008 23:48
> > To: user@...
> > Subject: Leap Year Bug in Ant 1.7.0 FTP task?
> >
> >
> > Has anyone else run across a bug in the FTP task
> in Ant 1.7.0
> > related to
> > Feb 29th timestamps?.
> >  
>
> I also run across this one  and my workaround was
> just change file/directory
> date something
> else than Feb 29.
>
> - Jukka -
>
>
>
>
> >
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@...
> For additional commands, e-mail:
user-help@...



      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


RE: Leap Year Bug in Ant 1.7.0 FTP task?

by Francis Brennan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You're correct, here is a bug filed against commons-net library that
described the exact behaviour I observed:

http://issues.apache.org/jira/browse/NET-193

Francis

-----Original Message-----
From: Matt Benson [mailto:gudnabrsam@...]
Sent: Thursday, March 06, 2008 8:08 AM
To: Ant Users List; jukka.uusisalo@...
Subject: RE: Leap Year Bug in Ant 1.7.0 FTP task?

ALL:  Note that Ant's FTP task uses commons-net, which received a flurry
of bug reports relating to the leap day issue on Feb 29.  This says to
me that there is around a 99% chance that the bug lies in commons-net,
and that Ant is for the most part powerless.

-Matt

--- Jukka Uusisalo <jukka.uusisalo@...>
wrote:

> > -----Original Message-----
> > From: Francis Brennan [mailto:fbrennan@...]
> > Sent: 5. maaliskuuta 2008 23:48
> > To: user@...
> > Subject: Leap Year Bug in Ant 1.7.0 FTP task?
> >
> >
> > Has anyone else run across a bug in the FTP task
> in Ant 1.7.0
> > related to
> > Feb 29th timestamps?.
> >  
>
> I also run across this one  and my workaround was just change
> file/directory date something else than Feb 29.
>
> - Jukka -
>
>
>
>
> >
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@...
> For additional commands, e-mail:
user-help@...



 
________________________________________________________________________
____________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: Leap Year Bug in Ant 1.7.0 FTP task - Daylight Savings?

by Shay Thompson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I noticed today that a few of my servers which run the Ant FTP task
failed on Sunday when they were working on Saturday, almost as if
they're now having a problem with daylight savings.  I also noticed that
only the machines running Java 1.5.0_11 are failing while those with
1.5.0_04 are working, which is even more odd.  All of these are throwing
NullPointerException's.  I also tried touching the folder contents and
the parent folders so nothing had a date of 2/29 and still I see problems.



Francis Brennan wrote:

> You're correct, here is a bug filed against commons-net library that
> described the exact behaviour I observed:
>
> http://issues.apache.org/jira/browse/NET-193
>
> Francis
>
> -----Original Message-----
> From: Matt Benson [mailto:gudnabrsam@...]
> Sent: Thursday, March 06, 2008 8:08 AM
> To: Ant Users List; jukka.uusisalo@...
> Subject: RE: Leap Year Bug in Ant 1.7.0 FTP task?
>
> ALL:  Note that Ant's FTP task uses commons-net, which received a flurry
> of bug reports relating to the leap day issue on Feb 29.  This says to
> me that there is around a 99% chance that the bug lies in commons-net,
> and that Ant is for the most part powerless.
>
> -Matt
>
> --- Jukka Uusisalo <jukka.uusisalo@...>
> wrote:
>
>  
>>> -----Original Message-----
>>> From: Francis Brennan [mailto:fbrennan@...]
>>> Sent: 5. maaliskuuta 2008 23:48
>>> To: user@...
>>> Subject: Leap Year Bug in Ant 1.7.0 FTP task?
>>>
>>>
>>> Has anyone else run across a bug in the FTP task
>>>      
>> in Ant 1.7.0
>>    
>>> related to
>>> Feb 29th timestamps?.
>>>  
>>>      
>> I also run across this one  and my workaround was just change
>> file/directory date something else than Feb 29.
>>
>> - Jukka -
>>
>>
>>
>>
>>    
> ---------------------------------------------------------------------
>  
>> To unsubscribe, e-mail:
>> user-unsubscribe@...
>> For additional commands, e-mail:
>>    
> user-help@...
>
>
>
>  
> ________________________________________________________________________
> ____________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>
>
>