Closed
Bug 49958
Opened 24 years ago
Closed 23 years ago
EPLF not supported. (SERVERS NOT SUPPORTED)
Categories
(Core :: Networking: FTP, defect, P3)
Core
Networking: FTP
Tracking
()
VERIFIED
FIXED
Future
People
(Reporter: matthias.andree, Assigned: dougt)
References
()
Details
(Keywords: testcase)
Attachments
(2 files)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review |
Mozilla M17
BuildID: 2000080712
The output of that FTP server's LIST command is not shown correctly, Mozilla
fails to show file names. No download possible (with lftp, it is possible). Note
that the RFC 959 LIST output is not meant to be parseable :-/
Reproducible: Always
Steps to Reproduce:
Switch off Proxies for FTP, go that site.
Actual Results: Some information on the files has been shown, but not the
filenames themselves.
Expected Results: It should have properly listed the files.
The format that that server uses is shown at: http://cr.yp.to/ftp/list/eplf.html
Comment 2•24 years ago
|
||
confirming, linux CVS from this morning
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•24 years ago
|
||
Note: 4.x doesn't support this server's FTP output either.
Updated•24 years ago
|
Target Milestone: --- → Future
Comment 4•24 years ago
|
||
Actually, Frederick Roeber added EPLF support to Netscape in 1997. ``Any
future browser release from us should support it,'' he said.
Unfortunately, the EPLF support was lost when the old FTP-parsing code
was replaced with nsFTPDirListingConv. Fixing this should take about
five minutes; EPLF is, by design, extremely easy to parse.
The goal of EPLF is to clean up the FTP LIST-parsing mess. The idea is
for every FTP client to learn how to parse EPLF; then servers can switch
to EPLF; then clients won't have to bother parsing other formats. EPLF
support is already in Voyager 3, Lynx 2.6, Mirror 2.9, EMirror 2.1,
Fetch 3.5, gFTP 2.0.0, lftp 2.2.0, ftpcopy, and Squid 2.3.
Assignee | ||
Comment 6•24 years ago
|
||
Adjusting summary.
Assignee | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 7•24 years ago
|
||
Assignee | ||
Comment 8•24 years ago
|
||
Need to testing this on windows. Also need to especially test on the mac
because of the 64 bit math.
D. J. Bernstein, it didn't take 5 minutes as you asserted, but it didn't take 5
hours either. :-) One question for you, the way that I test for EPLF format is
that the LIST response's first char is a plus ('+'). Is this a correct premise
or is there a better way to detect EPLF?
Jud, could you code review the patch attached as it stands? If Dan agrees that
the way I am detecting EPLF is correct, I would like to see about checking this in.
Keywords: patch
Comment 9•24 years ago
|
||
Yes, simply test for +. The + was designed to distinguish EPLF from all
other existing formats.
By the way, you shouldn't use size unless flagsize is set.
Assignee | ||
Comment 10•24 years ago
|
||
Assignee | ||
Comment 11•24 years ago
|
||
gagan, jud, can I get a r= on this?
Comment 12•24 years ago
|
||
r=valeski
Assignee | ||
Comment 13•24 years ago
|
||
chris, can I get a sr=?
Comment 14•24 years ago
|
||
- Please outdent "case 's'" through "default" to line up with "cast '\t'".
- I'm worried about someone creating a buffer-overrun situation with your
unchecked ASCII-to-decimal conversion. This is a common way to exploit
a security hole, and although I can't prove you've created a hole here,
you might as well check `*line' to make sure it's between '0' and '9'.
Do those things, and sr=waterson.
Comment 15•24 years ago
|
||
Nit-picking to uphold Roman and Mozilla common law:
+ // Mutiply what the last modification date to get usecs.
Typo, also trailing whitespace on this line and others.
+ PR_ExplodeTime(usecs, PR_LocalTimeParameters,
&thisEntry->mMDTM);
+ } else {
+ thisEntry->mSupressSize = PR_TRUE;
What's the indentation unit, two spaces or four? The sacred Emacs modeline
comment says 4 (with a nonsensical tab-width of 2, but the indent-tabs-mode: nil
makes that moot). Please use four-space indentation.
All other switches in this file exdent their case and default labels to the same
column as the switch keyword. So should this one, and its case statements then
won't be in a half-world of two-vs-four-space indentation.
/be
Assignee | ||
Comment 17•23 years ago
|
||
This has been fixed for a while.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 19•23 years ago
|
||
VERIFIED: Mozilla 1.0 RC1, allplats. +testcase
This has been a testcase for a while...
You need to log in
before you can comment on or make changes to this bug.
Description
•