[PATCH] Accept file://localhost/ style urls as local

Jonathan S. Shapiro shap at eros-os.com
Wed Sep 12 09:08:24 CDT 2007


On Wed, 2007-09-12 at 15:46 +0200, Christian Ebert wrote:
> hm, not exactly. RFC 3986:
> 
> |URIs have a global scope and are interpreted consistently
> |regardless of context, though the result of that interpretation
> |may be in relation to the end-user's context. For example,
> |"http://localhost/" has the same interpretation for every user of
> |that reference, even though the network interface corresponding
> |to "localhost" may be different for each end-user: interpretation
> |is independent of access. However, an action made on the basis of
> |that reference will take place in relation to the end-user's
> |context, which implies that an action intended to refer to a
> |globally unique thing must use a URI that distinguishes that
> |resource from all other things. URIs that identify in relation to
> |the end-user's local context should only be used when the context
> |itself is a defining aspect of the resource, such as when an
> |on-line help manual refers to a file on the end-user's file
> |system (e.g., "file:///etc/ hosts").
> 
> > Summary: quit making things up as you go and read the spec!
> 
> I shut up and leave it to the pros ... ;)

Great! Like I said, it's been a while since I looked at the RFC -- it
was back when we did the URL cracker for OpenCM.

So I'm perfectly happy that this example is good, but my larger point
that we should be conforming the RFC in general is still valid.
-- 
Jonathan S. Shapiro
Managing Director
The EROS Group, LLC
www.coyotos.org, www.eros-os.org



More information about the Mercurial-devel mailing list