locked
FTP timestamp Bug in IIS RRS feed

  • Question

  • User225424589 posted

    There is a bug in the FTP server running under IIS 6.0

    The FTP server will not include the proper timestamp of a file if the file date year is not equal to the current year.  The server drops the time, and only delivers the date.  Most Unix servers do this only on a file older than 6 months.

     Cmd listing:

    C:\Inetpub\ftproot.internal>dir

     Directory of C:\Inetpub\ftproot

    01/02/2008  09:06 AM    <DIR>          .
    01/02/2008  09:06 AM    <DIR>          ..
    04/19/2006  07:33 PM                 22 TestFile.txt

    Ftp  listing:

    01/02/2008  09:06 AM    <DIR>          .
    01/02/2008  09:06 AM    <DIR>          ..
    04/19/2006  12:00 AM                 22 TestFile.txt

     

    Wednesday, January 2, 2008 2:57 PM

Answers

All replies

  • User1073881637 posted

    what mode is your FTP server configured as DOS mode or Unix mode?

    Wednesday, January 2, 2008 5:25 PM
  • User225424589 posted

     I have it configured as Unix, but the behavior is the same for DOS.

    I tested both, and the results are the same.

    I found this, see the last line. 

    http://forums.fedoraforum.org/showthread.php?t=78755

    File Times are Being Displayed as 00:00 or are Non-existent <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>Dates being displayed as 00:00 is a function of UNIX directory listings. <o:p></o:p>Serv-U (like most Windows FTP servers) list directories in the same way <o:p></o:p>as UNIX. A UNIX directory listing won't show the time stamp of the file if <o:p></o:p>the file is greater than 6 months old. Some Windows servers mistakenly <o:p></o:p>disregard the time stamp when the year changes.<o:p></o:p>
    <o:p>Daniel</o:p><o:p> </o:p>
    Wednesday, January 2, 2008 8:27 PM
  • User1073881637 posted

    I don't know.  If it impacts your systems, I would call Microsoft and report it.  Maybe there is a private hotfix.  I've never heard of this before.

    Friday, January 4, 2008 12:03 AM
  • User225424589 posted

    Thanks.  Where or who do I report the bug to ?

     

    Daniel

     

    Saturday, January 5, 2008 8:00 PM
  • User1073881637 posted

    http://support.microsoft.com is the main link.

    http://www.microsoft.com/services/microsoftservices/srv_essential.mspx (this might be what you need)

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Saturday, January 5, 2008 9:53 PM
  • User989702501 posted

    Interesting. in my W2k3 R2 - both dir listing - display the correct date for old files. I'm using ftp.exe client though.
    For IE, if unix style is selected then it show as 12:00:00am, for ms dos style, IE will display the date/time correctly.

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Sunday, January 6, 2008 9:57 PM
  • User690216013 posted

    Well, this is not a bug. Please check this KB article for details.

    http://support.microsoft.com/kb/256312/en-us

    Saturday, March 7, 2009 1:36 AM
  • User225424589 posted

    Well, the way IIS reports UNIX style timestamps is not consistent with most other Unix FTP servers.  IIS drops the date portion of the the timestamp if the year != current year.  Most others base the inclusion of the year on a specific time window (say after 6 months or a year).  So what you get is, for example, on January 1st all files move from timestamps to datestamps.

    Saturday, March 7, 2009 7:44 AM
  • User690216013 posted

    But is there a UNIX specification in this area? If not, every vendor can choose its own implementation to suit certain needs.

    Certainly, this may affect your application if it relies on certain implementation too closely. But before a specification is published, there is no way to guarantee your application works for every vendor's products.

    Saturday, March 7, 2009 8:02 AM