GNU bug report logs - #53201
string->uri-reference rejects domain names with final ‘.’

Previous Next

Package: guile;

Reported by: Tobias Geerinckx-Rice <me <at> tobias.gr>

Date: Wed, 12 Jan 2022 05:34:02 UTC

Severity: normal

Done: "Dr. Arne Babenhauserheide" <arne_bab <at> web.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: 53201 <at> debbugs.gnu.org
Subject: bug#53201: string->uri-reference rejects domain names with final ‘.’
Date: Wed, 12 Jan 2022 03:56:17 +0100
[Message part 1 (text/plain, inline)]
Guilers,

What the subject says :-)  Omitting the final dot is optional (and 
common), not mandatory.

 scheme@(guile-user)> (string->uri-reference "http://x.org")
 $1 = #<<uri> … host: "x.org" …>

 scheme@(guile-user)> (string->uri-reference "http://x.org.")
 $2 = #f ; wrong!

This actually breaks redirects in the wild:

Starting download […]
From 
https://pyropus.ca/software/getmail/old-versions/getmail-5.16.tar.gz...
Bad uri-reference header component:
https://pyropus.ca./software/getmail/old-versions/getmail-5.16.tar.gz

Kind regards,

T G-R
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 79 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.