guix-commits
[Top][All Lists]
Advanced

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

branch master updated: Fix a URI decoding issue


From: Christopher Baines
Subject: branch master updated: Fix a URI decoding issue
Date: Thu, 27 May 2021 04:39:13 -0400

This is an automated email from the git hooks/post-receive script.

cbaines pushed a commit to branch master
in repository data-service.

The following commit(s) were added to refs/heads/master by this push:
     new 854f2cb  Fix a URI decoding issue
854f2cb is described below

commit 854f2cbba94a6a0bcb7a0bd1ee9d2706b8b6f58a
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Thu May 27 09:38:41 2021 +0100

    Fix a URI decoding issue
    
    This caused a problem viewing this derivation
    
/gnu/store/65r4488732qy6ilrh1ryb8xwmip1qnir-tklib-0.6.tar.gz?uuid=tklib-0-6.drv
---
 guix-data-service/web/controller.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/guix-data-service/web/controller.scm 
b/guix-data-service/web/controller.scm
index 60773ca..b344101 100644
--- a/guix-data-service/web/controller.scm
+++ b/guix-data-service/web/controller.scm
@@ -636,8 +636,8 @@
      ;; content negotiation, so just use the path from the request
      (let ((path (uri-path (request-uri request))))
        (if (string-suffix? ".drv" path)
-           (render-derivation path)
-           (render-store-item path))))
+           (render-derivation (uri-decode path))
+           (render-store-item (uri-decode path)))))
     (('GET "gnu" "store" filename "formatted")
      (if (string-suffix? ".drv" filename)
          (render-formatted-derivation (string-append "/gnu/store/" filename))



reply via email to

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