Closed Bug 211729 Opened 21 years ago Closed 21 years ago

FTP listing in latest builds is broken.

Categories

(Core Graveyard :: Networking: FTP, defect)

x86
All
defect
Not set
blocker

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: jasonb, Assigned: dougt)

References

()

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030703
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030703

I noticed this a couple of days ago, but didn't get around to checking up on it.

Reproducible: Always

Steps to Reproduce:
1. Go to QA -> Latest Builds.  (Or the FTP site directly.)

Actual Results:  
A "directory" listing with a directory entry named
"pub/mozilla/nightly/latest/".  Clicking on it results in now being in the empty
directory
"ftp://ftp.mozilla.org/pub/mozilla/nightly/latest/pub/mozilla/nightly/latest/".

Expected Results:  
Showed the FTP equivalent of "http://ftp.mozilla.org/pub/mozilla/nightly/latest/".

I can't replicate this problem with other FTP listings, so I think it's specific
to the latest builds directory on Mozilla's FTP server only.
I see this with 2003070408 (on win2k), but not with 1.4 final, or with IE or
WS_FTP. Therefore I don't believe it's a server problem - feels more like a
change in Mozilla that's done this.

Checking back, bug 209972 seems like a probable candidate. AIUI, Mozilla is now
just retrieving directory listings rather than changing to them and then listing
them. That \latest isn't a real directory, it's a symlink, so I guess what we're
seeing is a "listing" of the symlink rather than the directory that is linked to.

Reassigning according to my guess as to where/who this bug should be...
Assignee: endico → dougt
Component: Server Operations → Networking: FTP
Product: mozilla.org → Browser
QA Contact: myk → benc
Version: other → Trunk
At the time I filed it, Mozilla.org's FTP site was the only site where I saw
this problem (it's my fault for not checking with IE).  Since then, however,
I've also noticed something similar happening with rpmfind.net's RPM links. 
Rather than get a download, I get a directory listing with one entry that has
the name of the file in it.  (No matter what, if I have the choice of 2
components, it always ends up being the one I don't choose that's correct. <grin>)
this is a blocker.
Severity: major → blocker
Flags: blocking1.5a?
Tweaking summary to reflect actual problem (not mozilla.org server after all)
and adding regression keyword.
Keywords: regression
Summary: FTP listing for latest builds is messed up on mozilla.org's server. → FTP listing in latest builds is broken.
Attached patch untested patch (obsolete) — Splinter Review
I think this is basically what is needed.  testers welcome.
Attachment #127277 - Attachment is obsolete: true
Flags: blocking1.5a? → blocking1.5a+
resgressed between linux trunk 2003070205 and 2003070310, confirming bug 209972
as the culprit
OS: Windows XP → All
Attached patch patch v.2Splinter Review
This patch brings back the CWD and PWD states.	It basically basically backs
out the FTP state reduction yet keeps the some the code clean up and relative
path changes in.

This does fix the regression.
Attachment #127333 - Flags: review?(darin)
Comment on attachment 127333 [details] [diff] [review]
patch v.2

>Index: nsFtpConnectionThread.cpp

>+// CWD            
...
>+            break;
>+            
>+           case FTP_R_CWD:
>+              mState = R_cwd();

nit: indentation


>+    nsCAutoString listString("LIST" CRLF);
> 
>     return SendFTPCommand(listString);

nit: can you use NS_LITERAL_CSTRING here?


r=darin
Attachment #127333 - Flags: review?(darin) → review+
Checking in nsFtpConnectionThread.cpp;
/cvsroot/mozilla/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp,v  <-- 
nsFtpConnectionThread.cpp
new revision: 1.261; previous revision: 1.260
done
Checking in nsFtpConnectionThread.h;
/cvsroot/mozilla/netwerk/protocol/ftp/src/nsFtpConnectionThread.h,v  <-- 
nsFtpConnectionThread.h
new revision: 1.105; previous revision: 1.104
done


Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
.
Status: RESOLVED → VERIFIED
the problem is still here with win32 2003072404, i.e. today's build.

perhaps a quick fix would be to have a correct symbolic link in that ftp directory??
> the problem is still here with win32 2003072404

I'm not seeing it.  Same build (7/24-04) and everything is still working fine
since the fix.  I'm using XP.
I use win2k SP3 
If somebody else using W2K can confirm this (or even if you can go to a
different W2K computer and reproduce it there), feel free to reopen the bug and
change the OS to that specific platform.
WFM with mozilla trunk 2003072404 on win2k.
now it works for me too. But still on
ftp://ftp.mozilla.org/pub/mozilla/nightly/latest/
I guess I wasn't aware that links hard-coded into menus might be retrieved from
the cache too.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: