You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Bill Giel (JIRA)" <ji...@apache.org> on 2006/09/02 22:55:22 UTC
[jira] Created: (NET-140) FTPClient listFiles returns incorrect
timestamp on freshly uploaded file but corrects itself after about 15
minutes
FTPClient listFiles returns incorrect timestamp on freshly uploaded file but corrects itself after about 15 minutes
-------------------------------------------------------------------------------------------------------------------
Key: NET-140
URL: http://issues.apache.org/jira/browse/NET-140
Project: Commons Net
Issue Type: Bug
Affects Versions: 1.4 Final
Environment: Windows local client site, Linux remote server site
Reporter: Bill Giel
This is an odd one:
We upload GPS data each hour to a public site using FTPClient. Every 24 hours we check for files older than 60 days using listFiles and getting the timestamps do decide if we want to delete older files.
When we list the files, the most recently uploaded files have a time stamp exactly one year too old. After about 15 minutes, it seems to correct itself and eventually displays the correct timestamp.
During this time while FTPFile.getTimestamp is giving the incorrect timestamp, browsing the folder with a web browser, a commercial FTP client, or actually checking the file info in a shell shows the correct timestamp (i.e. does not seem to be a problem on the remote site)
commons-net-1.4.1 (as well as commons-net-20060901) exhibits this behavior.
commons-net-1.3.0 works properly
I did a little investigating, and it seems to happen with every file written to the remote directory each hour, and the incorrect timestamp will be returned using listFiles for about 15 minutes... and then it corrects itself.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Closed: (NET-140) FTPClient listFiles returns incorrect
timestamp on freshly uploaded file but corrects itself after about 15
minutes
Posted by "Rory Winston (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NET-140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rory Winston closed NET-140.
----------------------------
Resolution: Fixed
Fix Version/s: 2.0
The only reason I can see that the timestamp will be out of sync for 15 minutes and then ok is if the FTP server sends a different timestamp for files that are older than 15 minutes. This will result in the above behaviour.
I have implemented a workaround for this problem - by calling FTPClient::setDateRollbackPermitted(false), the rollback by 1year should not occur for these situations.
Any issues, feel free to reopen.
> FTPClient listFiles returns incorrect timestamp on freshly uploaded file but corrects itself after about 15 minutes
> -------------------------------------------------------------------------------------------------------------------
>
> Key: NET-140
> URL: https://issues.apache.org/jira/browse/NET-140
> Project: Commons Net
> Issue Type: Bug
> Affects Versions: 1.4
> Environment: Windows local client site, Linux remote server site
> Reporter: Bill Giel
> Fix For: 2.0
>
>
> This is an odd one:
> We upload GPS data each hour to a public site using FTPClient. Every 24 hours we check for files older than 60 days using listFiles and getting the timestamps do decide if we want to delete older files.
> When we list the files, the most recently uploaded files have a time stamp exactly one year too old. After about 15 minutes, it seems to correct itself and eventually displays the correct timestamp.
> During this time while FTPFile.getTimestamp is giving the incorrect timestamp, browsing the folder with a web browser, a commercial FTP client, or actually checking the file info in a shell shows the correct timestamp (i.e. does not seem to be a problem on the remote site)
> commons-net-1.4.1 (as well as commons-net-20060901) exhibits this behavior.
> commons-net-1.3.0 works properly
> I did a little investigating, and it seems to happen with every file written to the remote directory each hour, and the incorrect timestamp will be returned using listFiles for about 15 minutes... and then it corrects itself.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Commented: (NET-140) FTPClient listFiles returns incorrect
timestamp on freshly uploaded file but corrects itself after about 15
minutes
Posted by "Bill Giel (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/NET-140?page=comments#action_12442215 ]
Bill Giel commented on NET-140:
-------------------------------
[[ Old comment, sent by email on Sun, 03 Sep 2006 01:29:31 -0400 ]]
I may not have made it clear, the only machine that corrects itself is
the Sphera Linux machine. I have a feeling that there is a process
running there that causes this behavior. The timestamps do not correct
themselves on the RedHat9 machine.
Bill
--
William Giel, LS
======================
Rocco V. D'Andrea, Inc.
PO Box 549 / Six Neil Lane
Riverside, CT 06460
203-637-1779 (Voice)
203-637-1770 (Fax)
bgiel@rvdi.com
www.rvdi.com
> FTPClient listFiles returns incorrect timestamp on freshly uploaded file but corrects itself after about 15 minutes
> -------------------------------------------------------------------------------------------------------------------
>
> Key: NET-140
> URL: http://issues.apache.org/jira/browse/NET-140
> Project: Commons Net
> Issue Type: Bug
> Affects Versions: 1.4 Final
> Environment: Windows local client site, Linux remote server site
> Reporter: Bill Giel
>
> This is an odd one:
> We upload GPS data each hour to a public site using FTPClient. Every 24 hours we check for files older than 60 days using listFiles and getting the timestamps do decide if we want to delete older files.
> When we list the files, the most recently uploaded files have a time stamp exactly one year too old. After about 15 minutes, it seems to correct itself and eventually displays the correct timestamp.
> During this time while FTPFile.getTimestamp is giving the incorrect timestamp, browsing the folder with a web browser, a commercial FTP client, or actually checking the file info in a shell shows the correct timestamp (i.e. does not seem to be a problem on the remote site)
> commons-net-1.4.1 (as well as commons-net-20060901) exhibits this behavior.
> commons-net-1.3.0 works properly
> I did a little investigating, and it seems to happen with every file written to the remote directory each hour, and the incorrect timestamp will be returned using listFiles for about 15 minutes... and then it corrects itself.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Commented: (NET-140) FTPClient listFiles returns incorrect
timestamp on freshly uploaded file but corrects itself after about 15
minutes
Posted by "Rory Winston (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/NET-140?page=comments#action_12432307 ]
Rory Winston commented on NET-140:
----------------------------------
Bill
Would you be able to provide some raw listings of files that exhibit this behaviour? I think this is related to a previous issue regarding date handling and old/new date formats.
> FTPClient listFiles returns incorrect timestamp on freshly uploaded file but corrects itself after about 15 minutes
> -------------------------------------------------------------------------------------------------------------------
>
> Key: NET-140
> URL: http://issues.apache.org/jira/browse/NET-140
> Project: Commons Net
> Issue Type: Bug
> Affects Versions: 1.4 Final
> Environment: Windows local client site, Linux remote server site
> Reporter: Bill Giel
>
> This is an odd one:
> We upload GPS data each hour to a public site using FTPClient. Every 24 hours we check for files older than 60 days using listFiles and getting the timestamps do decide if we want to delete older files.
> When we list the files, the most recently uploaded files have a time stamp exactly one year too old. After about 15 minutes, it seems to correct itself and eventually displays the correct timestamp.
> During this time while FTPFile.getTimestamp is giving the incorrect timestamp, browsing the folder with a web browser, a commercial FTP client, or actually checking the file info in a shell shows the correct timestamp (i.e. does not seem to be a problem on the remote site)
> commons-net-1.4.1 (as well as commons-net-20060901) exhibits this behavior.
> commons-net-1.3.0 works properly
> I did a little investigating, and it seems to happen with every file written to the remote directory each hour, and the incorrect timestamp will be returned using listFiles for about 15 minutes... and then it corrects itself.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Commented: (NET-140) FTPClient listFiles returns incorrect
timestamp on freshly uploaded file but corrects itself after about 15
minutes
Posted by "Bill Giel (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/NET-140?page=comments#action_12442216 ]
Bill Giel commented on NET-140:
-------------------------------
[[ Old comment, sent by email on Sun, 03 Sep 2006 16:11:57 -0400 ]]
Some more info... Sphera VDS Linux mentioned previously, ftpd is version
wu-2.6.2(1).
That did not have a problem on the Sun machine, but it does have a
problem on the Sphera Linux machine.
--
William Giel, LS
======================
Rocco V. D'Andrea, Inc.
PO Box 549 / Six Neil Lane
Riverside, CT 06460
203-637-1779 (Voice)
203-637-1770 (Fax)
bgiel@rvdi.com
www.rvdi.com
> FTPClient listFiles returns incorrect timestamp on freshly uploaded file but corrects itself after about 15 minutes
> -------------------------------------------------------------------------------------------------------------------
>
> Key: NET-140
> URL: http://issues.apache.org/jira/browse/NET-140
> Project: Commons Net
> Issue Type: Bug
> Affects Versions: 1.4 Final
> Environment: Windows local client site, Linux remote server site
> Reporter: Bill Giel
>
> This is an odd one:
> We upload GPS data each hour to a public site using FTPClient. Every 24 hours we check for files older than 60 days using listFiles and getting the timestamps do decide if we want to delete older files.
> When we list the files, the most recently uploaded files have a time stamp exactly one year too old. After about 15 minutes, it seems to correct itself and eventually displays the correct timestamp.
> During this time while FTPFile.getTimestamp is giving the incorrect timestamp, browsing the folder with a web browser, a commercial FTP client, or actually checking the file info in a shell shows the correct timestamp (i.e. does not seem to be a problem on the remote site)
> commons-net-1.4.1 (as well as commons-net-20060901) exhibits this behavior.
> commons-net-1.3.0 works properly
> I did a little investigating, and it seems to happen with every file written to the remote directory each hour, and the incorrect timestamp will be returned using listFiles for about 15 minutes... and then it corrects itself.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Commented: (NET-140) FTPClient listFiles returns incorrect
timestamp on freshly uploaded file but corrects itself after about 15
minutes
Posted by "Julien Aymé (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NET-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500684 ]
Julien Aymé commented on NET-140:
---------------------------------
Isn't this issue related to the issue <a href="https://issues.apache.org/jira/browse/NET-159">NET-159 </a> ?
> FTPClient listFiles returns incorrect timestamp on freshly uploaded file but corrects itself after about 15 minutes
> -------------------------------------------------------------------------------------------------------------------
>
> Key: NET-140
> URL: https://issues.apache.org/jira/browse/NET-140
> Project: Commons Net
> Issue Type: Bug
> Affects Versions: 1.4
> Environment: Windows local client site, Linux remote server site
> Reporter: Bill Giel
>
> This is an odd one:
> We upload GPS data each hour to a public site using FTPClient. Every 24 hours we check for files older than 60 days using listFiles and getting the timestamps do decide if we want to delete older files.
> When we list the files, the most recently uploaded files have a time stamp exactly one year too old. After about 15 minutes, it seems to correct itself and eventually displays the correct timestamp.
> During this time while FTPFile.getTimestamp is giving the incorrect timestamp, browsing the folder with a web browser, a commercial FTP client, or actually checking the file info in a shell shows the correct timestamp (i.e. does not seem to be a problem on the remote site)
> commons-net-1.4.1 (as well as commons-net-20060901) exhibits this behavior.
> commons-net-1.3.0 works properly
> I did a little investigating, and it seems to happen with every file written to the remote directory each hour, and the incorrect timestamp will be returned using listFiles for about 15 minutes... and then it corrects itself.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Commented: (NET-140) FTPClient listFiles returns incorrect
timestamp on freshly uploaded file but corrects itself after about 15
minutes
Posted by "Bill Giel (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/NET-140?page=comments#action_12442214 ]
Bill Giel commented on NET-140:
-------------------------------
[[ Old comment, sent by email on Sun, 03 Sep 2006 01:22:07 -0400 ]]
Thanks for the quick reply, Rory.
See the attached, which contains a small test source and some results
for a few different sites. A couple of sites worked well, but a couple
do not. Unfortunately for me, my public site is one that does not work.
(But commons-net-1.3.0 works for all, so I'll be using that for now.)
Let me know if you need more info, I'll try my best to get what you need.
Regards,
Bill
--
William Giel, LS
======================
Rocco V. D'Andrea, Inc.
PO Box 549 / Six Neil Lane
Riverside, CT 06460
203-637-1779 (Voice)
203-637-1770 (Fax)
bgiel@rvdi.com
www.rvdi.com
[demime 1.01d removed an attachment of type application/x-zip-compressed which had a name of timestamp-issue.zip]
> FTPClient listFiles returns incorrect timestamp on freshly uploaded file but corrects itself after about 15 minutes
> -------------------------------------------------------------------------------------------------------------------
>
> Key: NET-140
> URL: http://issues.apache.org/jira/browse/NET-140
> Project: Commons Net
> Issue Type: Bug
> Affects Versions: 1.4 Final
> Environment: Windows local client site, Linux remote server site
> Reporter: Bill Giel
>
> This is an odd one:
> We upload GPS data each hour to a public site using FTPClient. Every 24 hours we check for files older than 60 days using listFiles and getting the timestamps do decide if we want to delete older files.
> When we list the files, the most recently uploaded files have a time stamp exactly one year too old. After about 15 minutes, it seems to correct itself and eventually displays the correct timestamp.
> During this time while FTPFile.getTimestamp is giving the incorrect timestamp, browsing the folder with a web browser, a commercial FTP client, or actually checking the file info in a shell shows the correct timestamp (i.e. does not seem to be a problem on the remote site)
> commons-net-1.4.1 (as well as commons-net-20060901) exhibits this behavior.
> commons-net-1.3.0 works properly
> I did a little investigating, and it seems to happen with every file written to the remote directory each hour, and the incorrect timestamp will be returned using listFiles for about 15 minutes... and then it corrects itself.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org