W3C home > Mailing lists > Public > uri@w3.org > August 2007

Re: URI Templates - optional variables?

From: Marc Hadley <Marc.Hadley@Sun.COM>
Date: Wed, 01 Aug 2007 10:47:40 -0400
To: Stefan Eissing <stefan.eissing@greenbytes.de>
Cc: uri@w3.org
Message-id: <87860FC3-1A0E-40C4-A197-F17BBD24023F@Sun.COM>

On Aug 1, 2007, at 3:26 AM, Stefan Eissing wrote:
>
> Am 31.07.2007 um 21:30 schrieb Mike Schinkel:
>> Stefan Eissing wrote:
>>> converter MUST perform path resolution as described in RFC
>>> 3986 ch. 5.2.3 and 5.2.4. That will also stop some injections
>>> of "." and ".." into URIs while saving the client from
>>> worrying to much about double "/" and such.
>>
>> I read the spec but am one that still has trouble understanding  
>> portions of
>> a spec that do not include examples such as those. Which of the  
>> following
>> are you saying it should result in?
>>
>> A.) http://www.example.com/
>> B.) http://www.example.com//
>
> Clearly A. The path resolution will always make conversions such as:
>
> //  ->  /
> /./  ->  /
> /a/../b -> /b
>
Looking at the referenced sections its not clear to me that // gets  
converted to /. Can you point me to the step in the algorithm that  
would accomplish that ?

Thanks,
Marc.

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.
Received on Wednesday, 1 August 2007 14:48:07 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:11 UTC