Closed Bug 170070 Opened 22 years ago Closed 22 years ago

wrong parsing of dates in ftp-listings in mozilla 1.2alpha

Categories

(Core Graveyard :: Networking: FTP, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rmo, Assigned: dougt)

References

()

Details

(Keywords: regression, Whiteboard: verify by 1.2b)

Attachments

(3 files)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2a) Gecko/20020913
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2a) Gecko/20020913

Seems like the parsing of dates in ftp-listing has a flawed algoritm. 

Reproducible: Always

Steps to Reproduce:
1. enter ftp://ftp.mozilla.org/
2.
3.

Actual Results:  
I'm attaching a screenshot to document the issue

Expected Results:  
correctly parsed the date
Does not seem to be a locale dependant issue. 

System is Redhat 7.3 with gnome2
Summary: wrong parsing of dates in ftp-listings in mozilla 1.2alpha → wrong parsing of dates in ftp-listings in mozilla 1.2alpha
Confirming with Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:1.2a) Gecko/20020910
build 2002091014. Just looks slightly different, see attached screenshot.
*** Bug 170076 has been marked as a duplicate of this bug. ***
confirming with linux trunk build 20020919
this look like a regression from bug 95590 (regression between builds 2002082722
and 2002082904)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
CONFIRMED, win98, mozilla 1.2a
The dates simply don't show up for the bad entries.
+nsbeta1, allplats
Keywords: nsbeta1
OS: Linux → All
Hardware: PC → All
Attached patch patch v.1Splinter Review
ParseFTPList doesn't need to worry about y2k roll over because NSPR does this
for us.  ParseFTPList use to use libc time.
Comment on attachment 100231 [details] [diff] [review]
patch v.1

r=neeti
Attachment #100231 - Flags: review+
Comment on attachment 100231 [details] [diff] [review]
patch v.1

sr=darin
Attachment #100231 - Flags: superreview+
thanks.  Fixed checked into trunk.

Checking in ParseFTPList.cpp;
/cvsroot/mozilla/netwerk/streamconv/converters/ParseFTPList.cpp,v  <-- 
ParseFTPList.cpp
new revision: 1.2; previous revision: 1.1
done
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20020925

works for me now with today's linux and osx builds.
Whiteboard: verify by 1.2b
*** Bug 172043 has been marked as a duplicate of this bug. ***
*** Bug 172137 has been marked as a duplicate of this bug. ***
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: