Closed
Bug 19917
Opened 25 years ago
Closed 25 years ago
4.xP Partial URLs of the form //hostname/path resolved wrongly.
Categories
(Core :: Networking, defect, P3)
Tracking
()
VERIFIED
FIXED
M14
People
(Reporter: pdc, Assigned: andreas.otte)
References
()
Details
(Whiteboard: [PDT-])
One of the allowed forms of a partial URL is //hostname/path (in other words,
only the scheme portion 'http:' has been removed). This is resolved by prefixing
the partial URL with the scheme of the base URL. (This is based on my recall of
RFC 1808 or RFC 2396; it may be that the more recent RFCs on relative URLs
change the rules.)
<p>There is a page http://intranet/index.html on our intranet server which
contains a link to //penguin/foo/bar.html. In Netscape this causes a jump to
http://penguin/foo/bar.html; with Mozilla this causes a jump to
http://intranet//penguin/foo/bar.html, which does not exist.
<p>I listed this bug as 'minor' since very few web pages are likely to use this
obscure syntax, since it saves only five characters and causes trouble when
moving the pages between, say, local files and the web server.
Reporter | ||
Updated•25 years ago
|
Summary: <b>4.xP</b>Partial URLs of the form //hostname/path resolved wrongly. → 4.xP Partial URLs of the form //hostname/path resolved wrongly.
Assignee | ||
Comment 1•25 years ago
|
||
I have locally a rewritten urlparser and other changes in nsStdURL.cpp that can
handle this.
Comment 3•25 years ago
|
||
RFC 2396 *does* formally specify these partial URLs starting with // as
<net_path> references - see bug 19200 for details. In the context of that bug,
(http-equiv="refresh": there can be no ambiguity about the scheme here),
at least, these partial URLs should work.
This syntax may be natural linguistically for references to URLs served
by MS-IIS webservers on the same LAN, since the RFC 2396 <net_path> name for
the server would parallel the UNC name for the server.
Bulk move of all Networking-Core (to be deleted component) bugs to new
Networking component.
It seems the ability to support // URLs would have a good purpose. One of which
would be to keep the protocol the same. Assuming I have a copy of a document
that is on http: and https: and I want them to goto a new server, but keep it
either as http: or https: respective of what they are already using, a // URL
would be the only logical solution.
Assignee | ||
Updated•25 years ago
|
Assignee: gagan → andreas.otte
Assignee | ||
Comment 7•25 years ago
|
||
assigning this bug to me per Warrens request
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M15 → M13
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 8•25 years ago
|
||
Fixed by Andreas' changes that I just checked in.
Assignee | ||
Updated•25 years ago
|
Status: RESOLVED → REOPENED
Assignee | ||
Comment 9•25 years ago
|
||
reopened because of backout
Assignee | ||
Updated•25 years ago
|
Target Milestone: M13 → M14
Assignee | ||
Comment 10•25 years ago
|
||
This will not make it into M13
Comment 11•25 years ago
|
||
Clearing FIXED resolution due to reopen.
Assignee | ||
Comment 12•25 years ago
|
||
*** Bug 24162 has been marked as a duplicate of this bug. ***
Comment 13•25 years ago
|
||
Putting on PDT- radar for beta1. Won't hold beta for this bug. Does not work
in 4.x either.
Whiteboard: [PDT-]
Comment 14•25 years ago
|
||
Accually it does work in 4.x For example http://wwww.mwave.com
uses this form of redirection (though they could fix it on their site) and it
does not work on mozilla 5.x but it does work on 4.x
URL: http://www.mwave.com
Assignee | ||
Comment 15•25 years ago
|
||
this one is fixed now
Status: REOPENED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → FIXED
Comment 16•25 years ago
|
||
verified:
NT 2000020708
Linux 2000020708
Mac 2000020708
Status: RESOLVED → VERIFIED
Comment 17•25 years ago
|
||
Looks good! Verified in 2000020708 on Win32.
You need to log in
before you can comment on or make changes to this bug.
Description
•