2 messages in org.python.python-bugs-list[ python-Bugs-649962 ] All URL funcs ...
FromSent OnAttachments
SourceForge.netMar 16, 2004 4:03 pm 
SourceForge.netMar 17, 2004 2:47 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[ python-Bugs-649962 ] All URL funcs mishandle file://localhostActions...
From:SourceForge.net (nore@sourceforge.net)
Date:Mar 16, 2004 4:03:35 pm
List:org.python.python-bugs-list

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 &#039;///path/to/file&#039; and &#039;//localhost/path/to/file&#039; identically, returning &#039;/path/to/file&#039; on Unix or &#039;\path\to\file&#039; on Windows, for example.

(note separate bug report filed for url2pathname() mishandling &#039;///path/to/file&#039; 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.

----------------------------------------------------------------------