GNU bug report logs - #77264
split-and-decode-uri-path must respect trailing slash

Previous Next

Package: guile;

Reported by: Arun Isaac <arunisaac <at> systemreboot.net>

Date: Tue, 25 Mar 2025 22:45:01 UTC

Severity: normal

To reply to this bug, email your comments to 77264 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#77264; Package guile. (Tue, 25 Mar 2025 22:45:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Arun Isaac <arunisaac <at> systemreboot.net>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Tue, 25 Mar 2025 22:45:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: bug-guile <at> gnu.org
Subject: split-and-decode-uri-path must respect trailing slash
Date: Tue, 25 Mar 2025 22:43:41 +0000
Hi Guile,

Both (split-and-decode-uri-path "foo/bar") and
(split-and-decode-uri-path "foo/bar/") return '("foo" "bar"). The
trailing slash is lost. The trailing slash traditionally represents a
directory path, and is significant. I would expect
(split-and-decode-uri-path "foo/bar") to return '("foo" "bar") and
(split-and-decode-uri-path "foo/bar/") to return '("foo" "bar" "").

In contrast, encode-and-join-uri-path correctly outputs trailing
slashes. (encode-and-join-uri-path (list "foo" "bar")) returns "foo/bar"
whereas (encode-and-join-uri-path (list "foo" "bar" "")) returns
"foo/bar/".

I'm happy to provide a patch if we agree that this is a bug.

Thanks!




This bug report was last modified 10 days ago.

Previous Next


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