GNU bug report logs - #45782
(web uri): URI hosts cannot be hexadecimal numbers

Previous Next

Package: guile;

Reported by: Vivien Kraus <vivien <at> planete-kraus.eu>

Date: Mon, 11 Jan 2021 13:52:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Vivien Kraus <vivien <at> planete-kraus.eu>
To: 45782 <at> debbugs.gnu.org
Subject: bug#45782: (web uri): URI hosts cannot be hexadecimal numbers
Date: Mon, 11 Jan 2021 14:43:53 +0100
Dear guile developers,

(use-modules (web uri))

(build-uri 'http #:host "g")

(build-uri 'http #:host "a")

The first operation works (#<<uri> scheme: http userinfo: #f host: "g"
port: #f path: "" query: #f fragment: #f>), the second does not (Throw
to key `uri-error' with args `("Expected valid host: ~s" ("a"))'.). My
guess is that hexadecimal numbers are not accepted for hosts. This bug
happens rarely (as soon as there is a dot in the host name, it is
accepted).

Best regards,

vivien





This bug report was last modified 4 years and 156 days ago.

Previous Next


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