Closed Bug 323056 Opened 20 years ago Closed 10 years ago

Link to "parent directory" displayed for top-level FTP sites

Categories

(Core Graveyard :: Networking: FTP, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED WONTFIX
mozilla1.9alpha1

People

(Reporter: Waldo, Assigned: Waldo)

References

()

Details

Attachments

(1 file)

The directory listing code specifically tries to not show a link to a parent directory when none exists; this works for <file:///> but doesn't work for ftp links. Consequently, if I start at any valid directory listing within ftp.mozilla.org, I can click on links displayed on the page and eventually reach a page like <ftp://ftp.mozilla.org/../../../../../../>. This should not be possible.
Attached patch PatchSplinter Review
It's not clear to me why the path could be "//" or "/%2F" during normal FTP browsing, but I assume there's a valid reason for it, so I just added one more check to make sure the path isn't "/".
Attachment #208211 - Flags: review?
Attachment #208211 - Flags: review? → review?(dougt)
Attachment #208211 - Flags: review?(doug.turner) → review+
Comment on attachment 208211 [details] [diff] [review] Patch good find jeff. sorry for the delay.
We are in a period where ftp is clearly deprecated and in general, making changes to the code is riskier than letting it ride unless there is a patch and reviewer available to make a good judgment about it. So I'm going to wontfix ftp bugs related to enhancements, interop errors, etc.. We will be better off putting our energy into including a different js based ftp stack.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
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: