[ python-Bugs-649962 ] All URL funcs mishandle file://localhost
SourceForge.net
noreply at sourceforge.net
Tue Mar 16 16:03:53 EST 2004
Bugs item #649962, was opened at 2002-12-07 08:28
Message generated for change (Comment added) made by troy_melhase
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=649962&group_id=5470
Category: Python Library
Group: Python 2.2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Mike Brown (mike_j_brown)
Assigned to: Nobody/Anonymous (nobody)
Summary: All URL funcs mishandle file://localhost
Initial Comment:
Per RFC 1738 section 3.10: "A file URL takes the form:
file://<host>/<path> ... As a special case, <host> can
be the string "localhost" or the empty string; this is
interpreted as `the machine from which the URL is being
interpreted".
In other words, regardless of what DNS or NetBIOS say
about "localhost", it is always the local machine.
Therefore, functions like urllib.url2pathname() and
urllib.urlopen() and anything else that takes a URL
argument should treat '///path/to/file'
and '//localhost/path/to/file' identically,
returning '/path/to/file' on Unix or '\path\to\file' on
Windows, for example.
(note separate bug report filed for url2pathname()
mishandling '///path/to/file' on Windows)
----------------------------------------------------------------------
Comment By: troy melhase (troy_melhase)
Date: 2004-03-16 21:03
Message:
Logged In: YES
user_id=548370
Should be closed; duplicate of bug #607789, now closed.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=649962&group_id=5470
More information about the Python-bugs-list
mailing list