Closed
Bug 94354
Opened 24 years ago
Closed 24 years ago
url with a login and '.' in path does not resolve properly
Categories
(Core Graveyard :: Networking: FTP, defect)
Core Graveyard
Networking: FTP
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.7
People
(Reporter: Brade, Assigned: bbaetz)
References
()
Details
(Keywords: testcase)
In 4.x, if I go to this url (and enter my password):
ftp://userA@ic.net/./public_html/
it resolves and loads: ftp://userA@ic.net/usr/guest/userA/public_html/
In 6.1, after I am prompted for a password, the url doesn't load.
Comment 2•24 years ago
|
||
What if you try to login with this url:
ftp://userA@ic.net/public_html/
Reporter | ||
Comment 3•24 years ago
|
||
that does not work; the dot is necessary
Comment 4•24 years ago
|
||
benc, can you help us get some kind of test case?
The logic of our ftp client is to:
login
cwd
cd 'url'
Whiteboard: need testcase
Updated•24 years ago
|
Target Milestone: --- → mozilla1.0
qawanted - need to analyze the FTP session we attempt w/ a "."
Keywords: qawanted
Assignee | ||
Comment 8•24 years ago
|
||
ftp://host should log into the users home directory, but it doesn't do so at
present.
The . probably tricked 4.x into going to the home directory, I guess. We're
probably doing CWD /./public_html/
I know this used to work, but neither dougt or I can find the code which did
so...
I'll look into this.
Status: NEW → ASSIGNED
Target Milestone: mozilla1.0 → mozilla0.9.7
RFC 1630 suggests that "/./" would never occur in a canonical URL b/c:
"
Within the result, all occurrences of "xxx/../" or "/." are
recursively removed, where xxx, ".." and "." are complete path
elements.
"
I haven't worked through the more recent RFC's, so I've cc:andreas for his
advice.
Comment 10•24 years ago
|
||
We currently normalize the url according to the rules in rfc 1630 and for
example 2396. However these rules apply to relative urls. On the other hand .
and .. are part of the syntax that describes the url hierarchy (as well as /)
and what we do is well within the rules.
urltest ftp://userA@ic.net/./public_html/
ftp://userA@ic.net/./public_html/
ftp,userA,,ic.net,-1,/public_html/,,,,,,ftp://userA@ic.net/public_html/
I think this also boils down to the way we are handling the first / in ftp urls.
Loging into the users home directory and ignoring the first / we would do the
right thing here. No need for a dot.
Assignee | ||
Comment 11•24 years ago
|
||
benc: This is a dupe of bug 95277, I think. IF we did cwd ./foo instead of cwd
/foo, then it would Just Work.
Comment 12•24 years ago
|
||
bug 84242 has a patch attached to it that should solve this.
Assignee | ||
Comment 13•24 years ago
|
||
mozclassic has code to look for /./ in the url, and then remove the leading / in
that case, after sending PWD to update the directory.
Comment 14•24 years ago
|
||
No need for that code with the latest patch from bug 84242. That trick was
necessary because 4.x was just doing the wrong thing with normal ftp urls.
Comment 15•24 years ago
|
||
This should be fixed on the trunk with the checkin for bug 84242, marking fixed.
Reporter: Could you verify this is working fine now?
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 16•24 years ago
|
||
Sorry I haven't had a chance to verify this until now; this is now working.
Thanks!
Status: RESOLVED → VERIFIED
Updated•1 year ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•