Closed
Bug 211729
Opened 21 years ago
Closed 21 years ago
FTP listing in latest builds is broken.
Categories
(Core Graveyard :: Networking: FTP, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: jasonb, Assigned: dougt)
References
()
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
11.73 KB,
patch
|
darin.moz
:
review+
dbaron
:
approval1.5a+
|
Details | Diff | Splinter Review |
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.
Comment 1•21 years ago
|
||
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
Reporter | ||
Comment 2•21 years ago
|
||
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>)
Reporter | ||
Comment 4•21 years ago
|
||
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.
Assignee | ||
Comment 5•21 years ago
|
||
I think this is basically what is needed. testers welcome.
Assignee | ||
Updated•21 years ago
|
Attachment #127277 -
Attachment is obsolete: true
Flags: blocking1.5a? → blocking1.5a+
Comment 6•21 years ago
|
||
resgressed between linux trunk 2003070205 and 2003070310, confirming bug 209972 as the culprit
OS: Windows XP → All
Assignee | ||
Comment 7•21 years ago
|
||
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.
Assignee | ||
Updated•21 years ago
|
Attachment #127333 -
Flags: review?(darin)
Comment 8•21 years ago
|
||
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+
Assignee | ||
Comment 9•21 years ago
|
||
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
Attachment #127333 -
Flags: approval1.5a+
Comment 11•21 years ago
|
||
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??
Reporter | ||
Comment 12•21 years ago
|
||
> 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.
Comment 13•21 years ago
|
||
I use win2k SP3
Reporter | ||
Comment 14•21 years ago
|
||
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.
Comment 15•21 years ago
|
||
WFM with mozilla trunk 2003072404 on win2k.
Comment 16•21 years ago
|
||
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.
Updated•3 months ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•