From unknown Mon Jun 16 23:53:32 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#22908 <22908@debbugs.gnu.org> To: bug#22908 <22908@debbugs.gnu.org> Subject: Status: HTTP client rejects invalid 'Content-Type' headers Reply-To: bug#22908 <22908@debbugs.gnu.org> Date: Tue, 17 Jun 2025 06:53:32 +0000 retitle 22908 HTTP client rejects invalid 'Content-Type' headers reassign 22908 guix submitter 22908 Nils Gillmann severity 22908 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 04 10:57:15 2016 Received: (at submit) by debbugs.gnu.org; 4 Mar 2016 15:57:15 +0000 Received: from localhost ([127.0.0.1]:33940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1abs6J-0002hn-Mq for submit@debbugs.gnu.org; Fri, 04 Mar 2016 10:57:15 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49980) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1abs6I-0002hc-Gq for submit@debbugs.gnu.org; Fri, 04 Mar 2016 10:57:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abs6C-0000dA-Eb for submit@debbugs.gnu.org; Fri, 04 Mar 2016 10:57:05 -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.8 required=5.0 tests=BAYES_50,HK_RANDOM_ENVFROM, WEIRD_PORT autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abs6C-0000d6-BG for submit@debbugs.gnu.org; Fri, 04 Mar 2016 10:57:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abs6B-0001nY-9L for bug-guix@gnu.org; Fri, 04 Mar 2016 10:57:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abs68-0000bg-2Y for bug-guix@gnu.org; Fri, 04 Mar 2016 10:57:03 -0500 Received: from plane.gmane.org ([80.91.229.3]:42663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abs67-0000bM-Rw for bug-guix@gnu.org; Fri, 04 Mar 2016 10:56:59 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1abs66-0002T9-Jg for bug-guix@gnu.org; Fri, 04 Mar 2016 16:56:58 +0100 Received: from xd9bb9d8a.dyn.telefonica.de ([217.187.157.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Mar 2016 16:56:58 +0100 Received: from niasterisk by xd9bb9d8a.dyn.telefonica.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Mar 2016 16:56:58 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-guix@gnu.org From: Nils Gillmann Subject: guix download choices (unfonts -> upstream, archive.org bugged) and my alternatives. Date: Fri, 04 Mar 2016 16:56:44 +0100 Lines: 31 Message-ID: <87mvqegrsz.fsf@grrlz.net> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: xd9bb9d8a.dyn.telefonica.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:VGbyY3Og7hFXHT3GGDlMlPsOUcQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.5 (---) This references thread "fonts.scm -> packaging "un-fonts", download isses" on guix-devel and it classifies as a bug. It's a bug upstream, replicated by archive.org and preventing me from finishing my work. Long story short, I try to package un-fonts, which sits on a server which is configured in a way that it gives us a mime type for the package which is invalid (.gz). Now somebody could make guix download function to simply ignore that, but as I don't like to do that with only this one known case at hand, my ideas are: - download the file to sdf.org where it will sit until something happens to the entire internet and sdf.org disappears (they have been around since 84/87). - upload the individual file to archive.org as the simple waybackmachine is not smart enough to fix the mime issue of the original server. This is a bug, because it prevents me from using guix download, and guix download from functioning in a way where it must be altered to adopt to the incompetence of some domain/server admin. what do you think? -- ng irc://loupsycedyglgamf.onion:67/~NiAsterisk https://psyced.org:34443/NiAsterisk/ EDN: https://wiki.c3d2.de/Echt_Dezentrales_Netz/en From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 06 08:37:00 2016 Received: (at request) by debbugs.gnu.org; 6 Mar 2016 13:37:00 +0000 Received: from localhost ([127.0.0.1]:36195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1acYrf-0005vF-PQ for submit@debbugs.gnu.org; Sun, 06 Mar 2016 08:37:00 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55843) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1acYre-0005v2-6d for request@debbugs.gnu.org; Sun, 06 Mar 2016 08:36:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acYrV-0000wv-JA for request@debbugs.gnu.org; Sun, 06 Mar 2016 08:36:48 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acYrV-0000wr-GU; Sun, 06 Mar 2016 08:36:45 -0500 Received: from reverse-83.fdn.fr ([80.67.176.83]:37468 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1acYrU-0001kj-Ou; Sun, 06 Mar 2016 08:36:45 -0500 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Nils Gillmann Subject: Re: bug#22908: guix download choices (unfonts -> upstream, archive.org bugged) and my alternatives. References: <87mvqegrsz.fsf@grrlz.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 17 =?utf-8?Q?Vent=C3=B4se?= an 224 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x3D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Sun, 06 Mar 2016 14:36:41 +0100 In-Reply-To: <87mvqegrsz.fsf@grrlz.net> (Nils Gillmann's message of "Fri, 04 Mar 2016 16:56:44 +0100") Message-ID: <87si03sp7a.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: request Cc: 22908@debbugs.gnu.org, request@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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 (/) retitle 22908 HTTP client rejects invalid 'Content-Type' headers thanks (Please make sure the title of your messages to bug-guix clearly describes the problem with phrases like =E2=80=9CGuix fails to =E2=80=A6=E2= =80=9D, =E2=80=9CFailure to download from =E2=80=A6=E2=80=9D, etc.) Nils Gillmann skribis: > Long story short, I try to package un-fonts, which sits on a > server which is configured in a way that it gives us a mime type > for the package which is invalid (.gz). As Ricardo noted in , the problem is that Guile=E2=80=99s HTTP client is (too) strict and rejects= this invalid =E2=80=98Content-Type=E2=80=99 header from kldp.net: Content-Type: .gz There are two courses of actions that can be taken in parallel: 1. Get the kldp.net admins to adjust the Web server. Did you get feedback from them? 2. Make Guile=E2=80=99s HTTP client more permissive. In the meantime, we could work around the issue by using a copy hosted on another server, if possible, such as archive.org or sdf.org as you note, or fossies.org (it mirrors a number of things.) Thoughts? Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 06 10:13:03 2016 Received: (at submit) by debbugs.gnu.org; 6 Mar 2016 15:13:03 +0000 Received: from localhost ([127.0.0.1]:36946 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1acaMZ-0001WT-Ct for submit@debbugs.gnu.org; Sun, 06 Mar 2016 10:13:03 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50535) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1acaMU-0001WE-LD for submit@debbugs.gnu.org; Sun, 06 Mar 2016 10:12:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acaMO-0003LC-5p for submit@debbugs.gnu.org; Sun, 06 Mar 2016 10:12:45 -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.8 required=5.0 tests=BAYES_50,HK_RANDOM_ENVFROM, WEIRD_PORT autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acaMO-0003L7-2P for submit@debbugs.gnu.org; Sun, 06 Mar 2016 10:12:44 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acaMM-0005bH-MW for bug-guix@gnu.org; Sun, 06 Mar 2016 10:12:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acaMI-0003KX-M1 for bug-guix@gnu.org; Sun, 06 Mar 2016 10:12:42 -0500 Received: from plane.gmane.org ([80.91.229.3]:41155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acaMI-0003KL-FL for bug-guix@gnu.org; Sun, 06 Mar 2016 10:12:38 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1acaMB-0007vF-FG for bug-guix@gnu.org; Sun, 06 Mar 2016 16:12:31 +0100 Received: from xd9bb8d49.dyn.telefonica.de ([217.187.141.73]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 Mar 2016 16:12:31 +0100 Received: from niasterisk by xd9bb8d49.dyn.telefonica.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 Mar 2016 16:12:31 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-guix@gnu.org From: Nils Gillmann Subject: Re: bug#22908: guix download choices (unfonts -> upstream, archive.org bugged) and my alternatives. Date: Sun, 06 Mar 2016 16:12:08 +0100 Lines: 70 Message-ID: <87fuw38wtz.fsf@grrlz.net> References: <87mvqegrsz.fsf@grrlz.net> <87si03sp7a.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: xd9bb8d49.dyn.telefonica.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:dciUaZ7m5EcD1q+UwTxb/cZ6kNI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: ludo@gnu.org (Ludovic Courtès) writes: > retitle 22908 HTTP client rejects invalid 'Content-Type' headers > thanks I can retitle open bugs? If so, how? Or is there a "help" function of the debuggs? [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.6 HK_RANDOM_ENVFROM Envelope sender username looks random 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom;id=gcggb-bug-guix%40m.gmane.org;ip=208.118.235.92;r=debbugs.gnu.org] 0.0 WEIRD_PORT URI: Uses non-standard port number for HTTP ludo@gnu.org (Ludovic Courtès) writes: > retitle 22908 HTTP client rejects invalid 'Content-Type' headers > thanks I can retitle open bugs? If so, how? Or is there a "help" function of the debuggs? > (Please make sure the title of your messages to bug-guix clearly > describes the problem with phrases like “Guix fails to …”, “Failure to > download from …”, etc.) > > Nils Gillmann skribis: > >> Long story short, I try to package un-fonts, which sits on a >> server which is configured in a way that it gives us a mime type >> for the package which is invalid (.gz). > > As Ricardo noted in > , > the problem is that Guile’s HTTP client is (too) strict and rejects this > invalid ‘Content-Type’ header from kldp.net: > > Content-Type: .gz I noticed, that's why I packaged and submitted (see more recent version of the patch, new thread) the font with a location on sdf.org. I commented inside why and what I intend to do. > There are two courses of actions that can be taken in parallel: > > 1. Get the kldp.net admins to adjust the Web server. Did you get > feedback from them? Not yet. They are behind a privacywhois, I am not sure how long reaction will get delayed due to that factor. The bug has been reported to them, now it's just waiting and maybe getting a response later this year. > 2. Make Guile’s HTTP client more permissive. I vote against that, because it is just one package so far. Let's say we package KDE Plasma and there are more than 1 package which is not a font, that is a reason to make changes to the http client. > In the meantime, we could work around the issue by using a copy hosted > on another server, if possible, such as archive.org or sdf.org as you > note, or fossies.org (it mirrors a number of things.) > > Thoughts? Archive.org replicates every wrong and right including mime types. -> same issue, different domain. I did not upload the font itself to archive.org but to sdf.org , I should also get a reply from in-berlin.org (an ISP, fast datacenters) if they have a public download host and would like to host this font outside of the kldp.net domain, explaining the reasons etc. > Thanks, > Ludo’. thanks, -- ng irc://loupsycedyglgamf.onion:67/~NiAsterisk https://psyced.org:34443/NiAsterisk/ EDN: https://wiki.c3d2.de/Echt_Dezentrales_Netz/en From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 10 17:32:45 2016 Received: (at 22908-done) by debbugs.gnu.org; 10 Oct 2016 21:32:45 +0000 Received: from localhost ([127.0.0.1]:51519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btiBh-0004Ow-6e for submit@debbugs.gnu.org; Mon, 10 Oct 2016 17:32:45 -0400 Received: from aibo.runbox.com ([91.220.196.211]:36464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btiBf-0004Oo-KT for 22908-done@debbugs.gnu.org; Mon, 10 Oct 2016 17:32:44 -0400 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1btiBe-0000bB-65 for 22908-done@debbugs.gnu.org; Mon, 10 Oct 2016 23:32:42 +0200 Received: from x5d83fd3f.dyn.telefonica.de ([93.131.253.63] helo=localhost) by mailfront12.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1btiBX-0007Ml-8P for 22908-done@debbugs.gnu.org; Mon, 10 Oct 2016 23:32:35 +0200 From: ng0 To: 22908-done@debbugs.gnu.org Subject: fixed. Date: Mon, 10 Oct 2016 21:32:33 +0000 Message-ID: <871szn7uvi.fsf@we.make.ritual.n0.is> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22908-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.7 (/) This was fixed in commit 99a61dad3390cdda7d7da00113c5676050ef1959 -- ng0 From unknown Mon Jun 16 23:53:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 08 Nov 2016 12:24:03 +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