guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4] Add resolve-relative-reference in (web uri), as in RFC 39


From: Vivien Kraus
Subject: Re: [PATCH v4] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.
Date: Fri, 03 Nov 2023 19:19:40 +0100
User-agent: Evolution 3.46.4

Le vendredi 03 novembre 2023 à 13:49 -0400, Nathan a écrit :
> > This pushes the limits of my understanding of URIs, as I did not
> > know
> > we had to consider '%2E%2E' the same as '..'. However, the RFC is
> > not
> > very clear:
> 
> I wasn't able to find anything that MANDATED any normalization at
> all, either before or after Relative Resolution. It is possible that
> treating %2E as a literal dot in resolve-relative-reference could
> count as unwanted normalization. But it's a safe operation in terms
> of URI equivalence* and I think users would be less confused to have
> %2E%2E disappear than to have it remain.
> 
> Also, what if the resolve-relative-reference procedure didn't treat
> %2E as a dot?
> There isn't a uri-normalize procedure users can call afterwards to
> fix that.
> And there isn't a version of uri-decode that allows selectively
> decoding JUST the dot characters.
> Users would have to write a lot of code themselves to get proper
> relative-resolution, so we should do it for them.

First of all, I just noticed I spelled your name wrong, sorry.

I’m convinced the decision you made to consider '.' and '%2E'
equivalent is the correct one, if that was not clear for everyone.

Best regards,

Vivien



reply via email to

[Prev in Thread] Current Thread [Next in Thread]