From unknown Tue Jun 17 01:34:36 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#19840 <19840@debbugs.gnu.org> To: bug#19840 <19840@debbugs.gnu.org> Subject: Status: "Bad uri header component" when downloading from gitorious.org Reply-To: bug#19840 <19840@debbugs.gnu.org> Date: Tue, 17 Jun 2025 08:34:36 +0000 retitle 19840 "Bad uri header component" when downloading from gitorious.org reassign 19840 guix submitter 19840 Ricardo Wurmus severity 19840 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 11 14:53:40 2015 Received: (at submit) by debbugs.gnu.org; 11 Feb 2015 19:53:41 +0000 Received: from localhost ([127.0.0.1]:40351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YLdLw-0008Cl-Dg for submit@debbugs.gnu.org; Wed, 11 Feb 2015 14:53:40 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45739) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YLdLu-0008CX-CB for submit@debbugs.gnu.org; Wed, 11 Feb 2015 14:53:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLdLn-0006rC-K7 for submit@debbugs.gnu.org; Wed, 11 Feb 2015 14:53:32 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43139) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLdLn-0006r6-Fv for submit@debbugs.gnu.org; Wed, 11 Feb 2015 14:53:31 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLdLm-0002NP-CN for bug-guix@gnu.org; Wed, 11 Feb 2015 14:53:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLdLj-0006qO-6o for bug-guix@gnu.org; Wed, 11 Feb 2015 14:53:30 -0500 Received: from sender1.zohomail.com ([74.201.84.155]:29047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLdLi-0006qA-Vo for bug-guix@gnu.org; Wed, 11 Feb 2015 14:53:27 -0500 Received: from localhost (brln-4d02139c.pool.mediaWays.net [77.2.19.156]) by mx.zohomail.com with SMTPS id 142368439417631.862100525898086; Wed, 11 Feb 2015 11:53:14 -0800 (PST) From: Ricardo Wurmus To: bug-guix@gnu.org Subject: "Bad uri header component" when downloading from gitorious.org Date: Wed, 11 Feb 2015 20:53:10 +0100 Message-ID: <874mqsns2h.fsf@mango.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Zoho-Virus-Status: 2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Downloading archives from gitorious fails: ~/dev/guix $ ./pre-inst-env guix download https://gitorious.org/lv2-synths/lv2-mdametapiano/archive/0.0.1.tar.gz starting download of `/tmp/guix-file.gqYdZs' from `https://gitorious.org/lv2-synths/lv2-mdametapiano/archive/0.0.1.tar.gz'... ERROR: Bad uri header component: /lv2-synths/lv2-mdametapiano/archive/ceb5345396425ad526be34c79eae2b4dfe886d5b.tar.gz failed to download "/tmp/guix-file.gqYdZs" from "https://gitorious.org/lv2-synths/lv2-mdametapiano/archive/0.0.1.tar.gz" guix download: error: https://gitorious.org/lv2-synths/lv2-mdametapiano/archive/0.0.1.tar.gz: download failed Here the same with wget -S: ~/dev/guix $ wget -S https://gitorious.org/lv2-synths/lv2-mdametapiano/archive/0.0.1.tar.gz --2015-02-11 20:48:30-- https://gitorious.org/lv2-synths/lv2-mdametapiano/archive/0.0.1.tar.gz Resolving gitorious.org (gitorious.org)... 87.238.52.168, 2a02:c0:1014::1 Connecting to gitorious.org (gitorious.org)|87.238.52.168|:443... connected. HTTP request sent, awaiting response... HTTP/1.1 302 Found Server: nginx Date: Wed, 11 Feb 2015 19:48:30 GMT Content-Type: text/html;charset=utf-8 Content-Length: 211 Connection: keep-alive Status: 302 Found Location: /lv2-synths/lv2-mdametapiano/archive/ceb5345396425ad526be34c79eae2b4dfe886d5b.tar.gz X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-UA-Compatible: IE=Edge,chrome=1 Cache-Control: no-cache Set-Cookie: _gitorious_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTJhOTEzZTJmZTVjZjZhZDRkMDU2NTA1ZWQ1NDhhZDY1BjsAVA%3D%3D--dde27a4488e6aef56d25db1dbf58ee75f36fd1bf; domain=.gitorious.org; path=/; expires=Wed, 04-Mar-2015 19:48:30 GMT; secure; HttpOnly X-Request-Id: 55889cfebab9c8dc6e1745825510ae13 X-Runtime: 0.015907 Strict-Transport-Security: max-age=31536000 Location: /lv2-synths/lv2-mdametapiano/archive/ceb5345396425ad526be34c79eae2b4dfe886d5b.tar.gz [following] --2015-02-11 20:48:30-- https://gitorious.org/lv2-synths/lv2-mdametapiano/archive/ceb5345396425ad526be34c79eae2b4dfe886d5b.tar.gz Reusing existing connection to gitorious.org:443. HTTP request sent, awaiting response... HTTP/1.1 200 OK Server: nginx Date: Wed, 11 Feb 2015 19:48:30 GMT Content-Type: application/x-gzip; charset=utf-8 Content-Length: 1938720 Connection: keep-alive Cache-Control: no-cache Set-Cookie: _gitorious_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTJhOTEzZTJmZTVjZjZhZDRkMDU2NTA1ZWQ1NDhhZDY1BjsAVA%3D%3D--dde27a4488e6aef56d25db1dbf58ee75f36fd1bf; domain=.gitorious.org; path=/; expires=Wed, 04-Mar-2015 19:48:30 GMT; secure; HttpOnly Accept-Ranges: bytes Content-Disposition: attachment; filename=lv2-synths-lv2-mdametapiano-ceb5345396425ad526be34c79eae2b4dfe886d5b.tar.gz Last-Modified: Wed, 11 Feb 2015 19:34:43 GMT Strict-Transport-Security: max-age=31536000 Length: 1938720 (1.8M) [application/x-gzip] Saving to: ‘0.0.1.tar.gz’ 0.0.1.tar.gz 100%[=====================>] 1.85M 1.36MB/s in 1.4s 2015-02-11 20:48:32 (1.36 MB/s) - ‘0.0.1.tar.gz’ saved [1938720/1938720] From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 19 03:42:19 2015 Received: (at 19840-done) by debbugs.gnu.org; 19 Feb 2015 08:42:19 +0000 Received: from localhost ([127.0.0.1]:48338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOMgc-0008Ax-U9 for submit@debbugs.gnu.org; Thu, 19 Feb 2015 03:42:19 -0500 Received: from world.peace.net ([50.252.239.5]:48294) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOMgb-0008Al-2W for 19840-done@debbugs.gnu.org; Thu, 19 Feb 2015 03:42:17 -0500 Received: from [10.1.10.11] (helo=jojen) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1YOMgU-0001Gi-7o; Thu, 19 Feb 2015 03:42:10 -0500 From: Mark H Weaver To: Ricardo Wurmus Subject: Re: bug#19840: "Bad uri header component" when downloading from gitorious.org References: <874mqsns2h.fsf@mango.localdomain> Date: Thu, 19 Feb 2015 03:42:24 -0500 In-Reply-To: <874mqsns2h.fsf@mango.localdomain> (Ricardo Wurmus's message of "Wed, 11 Feb 2015 20:53:10 +0100") Message-ID: <87ioeygumn.fsf@netris.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 19840-done Cc: 19840-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Ricardo Wurmus writes: > Downloading archives from gitorious fails: > > ~/dev/guix $ ./pre-inst-env guix download https://gitorious.org/lv2-synths/lv2-mdametapiano/archive/0.0.1.tar.gz > starting download of `/tmp/guix-file.gqYdZs' from `https://gitorious.org/lv2-synths/lv2-mdametapiano/archive/0.0.1.tar.gz'... > ERROR: Bad uri header component: /lv2-synths/lv2-mdametapiano/archive/ceb5345396425ad526be34c79eae2b4dfe886d5b.tar.gz Guile's parsing and validation of HTTP "Location" headers was based on the now obsolete RFC 2616 section 14.30, which required it to be an absolute URI. However, RFC 7231 section 7.1.2 allows it to be any URI reference, which can include relative URIs. This will be fixed in Guile 2.0.12. Additionally, the possibility of HTTP redirects to relative URIs requires us to determine the target URI based on a relative URI and base URI, using the algorithm described in RFC 3986 section 5.2.2. I just pushed commit 04dec194d8 to master which resolves both of these issues. I'm closing this bug now. Thanks! Mark From unknown Tue Jun 17 01:34:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 19 Mar 2015 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator