Closed
Bug 43889
Opened 24 years ago
Closed 24 years ago
Problem with ":" in username or password in username:password@site URLs
Categories
(Core :: Networking, defect, P3)
Tracking
()
VERIFIED
INVALID
People
(Reporter: bugzilla, Assigned: andreas.otte)
References
()
Details
I have a direct link to a software update site that requires username and
password. I store the username and password in the URL for the site, like this:
http://gemal:gemal@www.gemal.dk/
But now the company changed the password so that it contains a ":"
http://gemal:gemal:123@www.gemal.dk/
This URL mozilla totally refuses to load. Not an error or anything. It works
fine in Netscape 4.73.
If you remove the ":" from the URL it loads fine.
Build 2000062608 on Win98
Comment 1•24 years ago
|
||
This seems like it might be some kind of protocol problem...maybe it's reading
the wrong protocol because of the added ":" 's? I'm just guessing here, but
I'll dig deeper. Gagan?
Severity: major → normal
I thought the reason people started having a mandatory : was to prevent people
from using a link based authentication (so that you could not construct a link
as in the sample) But either way, this should have worked. to andreas, our
parsing king.
Assignee: gagan → andreas.otte
Assignee | ||
Comment 3•24 years ago
|
||
In the prehost part of an url the : is a reserved char, it separates the
username from the password. Currently we take the first : in the prehost as the
separator. A username containig an unescaped : seems wrong, escaping it should
work. I don't know how NS 4.73 does it, maybe they use the last : as separator.
But then you could easily create a similar problem with gemal being the username
and gemal:123 as the password, where 4.73 would fail. As I see it this is a no
win scenario without escaping the right :. Try it with escaping.
Assignee | ||
Comment 4•24 years ago
|
||
Henrik: Have you tried it with %3A instead of : in your username? This should
successfully mask it for the urlparser.
Assignee | ||
Comment 5•24 years ago
|
||
Unless I hear something soon from the reporter of this bug I'm going to mark it
invalid, : is reserved within the prehost and has to be properly escaped when
not being used to separate the user from the password.
Assignee | ||
Comment 6•24 years ago
|
||
--> invalid
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 7•24 years ago
|
||
It was just that:
http://gemal:gemal:123@www.gemal.dk/
loaded fine on Netscape 4.73
and in Mozilla nuthing happens when entering:
http://gemal:gemal:123@www.gemal.dk/
in the Location and pressing enter.
Comment 8•24 years ago
|
||
vrfy invalid, and escaping it with %3A as Andreas suggested works fine for me
in a new win98 build (incidentally, IE5.5 chokes on the original URL also,
throwing an `Invalid syntax error')
Status: RESOLVED → VERIFIED
Comment 9•22 years ago
|
||
*** Bug 190854 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•