GNU bug report logs - #22908
HTTP client rejects invalid 'Content-Type' headers

Previous Next

Package: guix;

Reported by: Nils Gillmann <niasterisk <at> grrlz.net>

Date: Fri, 4 Mar 2016 15:58:01 UTC

Severity: normal

Done: ng0 <ngillmann <at> runbox.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 22908 in the body.
You can then email your comments to 22908 AT debbugs.gnu.org in the normal way.

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-guix <at> gnu.org:
bug#22908; Package guix. (Fri, 04 Mar 2016 15:58:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nils Gillmann <niasterisk <at> grrlz.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 04 Mar 2016 15:58:01 GMT) Full text and rfc822 format available.

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

From: Nils Gillmann <niasterisk <at> grrlz.net>
To: bug-guix <at> gnu.org
Subject: guix download choices (unfonts -> upstream,
 archive.org bugged) and my alternatives.
Date: Fri, 04 Mar 2016 16:56:44 +0100
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





Changed bug title to 'HTTP client rejects invalid 'Content-Type' headers' from 'guix download choices (unfonts -> upstream, archive.org bugged) and my alternatives.' Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Sun, 06 Mar 2016 13:37:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#22908; Package guix. (Sun, 06 Mar 2016 13:38:02 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Nils Gillmann <niasterisk <at> grrlz.net>
Cc: 22908 <at> debbugs.gnu.org, request <at> debbugs.gnu.org
Subject: Re: bug#22908: guix download choices (unfonts -> upstream,
 archive.org bugged) and my alternatives.
Date: Sun, 06 Mar 2016 14:36:41 +0100
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 “Guix fails to …”, “Failure to
download from …”, etc.)

Nils Gillmann <niasterisk <at> grrlz.net> 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
<https://lists.gnu.org/archive/html/guix-devel/2016-02/msg01359.html>,
the problem is that Guile’s HTTP client is (too) strict and rejects this
invalid ‘Content-Type’ 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’s 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’.




Information forwarded to bug-guix <at> gnu.org:
bug#22908; Package guix. (Sun, 06 Mar 2016 15:14:02 GMT) Full text and rfc822 format available.

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

From: Nils Gillmann <niasterisk <at> grrlz.net>
To: bug-guix <at> gnu.org
Subject: Re: bug#22908: guix download choices (unfonts -> upstream,
 archive.org bugged) and my alternatives.
Date: Sun, 06 Mar 2016 16:12:08 +0100
ludo <at> 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 <niasterisk <at> grrlz.net> 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
> <https://lists.gnu.org/archive/html/guix-devel/2016-02/msg01359.html>,
> 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





Reply sent to ng0 <ngillmann <at> runbox.com>:
You have taken responsibility. (Mon, 10 Oct 2016 21:33:02 GMT) Full text and rfc822 format available.

Notification sent to Nils Gillmann <niasterisk <at> grrlz.net>:
bug acknowledged by developer. (Mon, 10 Oct 2016 21:33:02 GMT) Full text and rfc822 format available.

Message #18 received at 22908-done <at> debbugs.gnu.org (full text, mbox):

From: ng0 <ngillmann <at> runbox.com>
To: 22908-done <at> debbugs.gnu.org
Subject: fixed.
Date: Mon, 10 Oct 2016 21:32:33 +0000
This was fixed in commit 99a61dad3390cdda7d7da00113c5676050ef1959
<http://git.savannah.gnu.org/cgit/guix.git/commit/?id=99a61dad3390cdda7d7da00113c5676050ef1959>

-- ng0




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 08 Nov 2016 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 173 days ago.

Previous Next


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