GNU bug report logs - #20962
HTTP client is too strict with date headers

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: m8r-y0v7u9@HIDDEN; dated Thu, 2 Jul 2015 15:30:06 UTC; Maintainer for guix is bug-guix@HIDDEN.
Changed bug title to 'HTTP client is too strict with date headers' from 'guix download error "Bad Date header"' Request was from ludo@HIDDEN (Ludovic Courtès) to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 2 Jul 2015 23:42:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 02 19:42:04 2015
Received: from localhost ([127.0.0.1]:38082 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZAo7H-0002YA-RS
	for submit <at> debbugs.gnu.org; Thu, 02 Jul 2015 19:42:04 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57146)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <m8r-y0v7u9@HIDDEN>) id 1ZAnfz-0000MB-E5
 for submit <at> debbugs.gnu.org; Thu, 02 Jul 2015 19:13:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <m8r-y0v7u9@HIDDEN>) id 1ZAnft-00036V-KF
 for submit <at> debbugs.gnu.org; Thu, 02 Jul 2015 19:13:46 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,
 FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:45275)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <m8r-y0v7u9@HIDDEN>) id 1ZAnft-00036Q-Gy
 for submit <at> debbugs.gnu.org; Thu, 02 Jul 2015 19:13:45 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42414)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <m8r-y0v7u9@HIDDEN>) id 1ZAnfs-0007Ry-Os
 for bug-guix@HIDDEN; Thu, 02 Jul 2015 19:13:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <m8r-y0v7u9@HIDDEN>) id 1ZAnfp-00035k-Dt
 for bug-guix@HIDDEN; Thu, 02 Jul 2015 19:13:44 -0400
Received: from emkei.cz ([46.167.245.71]:44906)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <m8r-y0v7u9@HIDDEN>) id 1ZAnfp-00035T-6x
 for bug-guix@HIDDEN; Thu, 02 Jul 2015 19:13:41 -0400
Received: by emkei.cz (Postfix, from userid 33)
 id DD574D55AF; Fri,  3 Jul 2015 01:13:36 +0200 (CEST)
To: bug-guix@HIDDEN
Subject: bug#20962: guix download error "Bad Date header"
From: m8r-y0v7u9@HIDDEN
X-Priority: 3 (Normal)
Importance: Normal
Content-Type: text/plain; charset=utf-8
Message-Id: <20150702231336.DD574D55AF@HIDDEN>
Date: Fri,  3 Jul 2015 01:13:35 +0200 (CEST)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic]
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: -3.8 (---)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 02 Jul 2015 19:42:02 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: m8r-y0v7u9@HIDDEN
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.8 (---)

Found a work around.

1. Download file in question via wget, curl, or other appropriate means.

2. guix download file:///<full-path-to-file>

Seems to work here.




Information forwarded to bug-guix@HIDDEN:
bug#20962; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 2 Jul 2015 15:29:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 02 11:29:42 2015
Received: from localhost ([127.0.0.1]:37801 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZAgQn-00067m-TB
	for submit <at> debbugs.gnu.org; Thu, 02 Jul 2015 11:29:42 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42623)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <m8r-y0v7u9@HIDDEN>) id 1ZAalO-0004Om-Bk
 for submit <at> debbugs.gnu.org; Thu, 02 Jul 2015 05:26:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <m8r-y0v7u9@HIDDEN>) id 1ZAalI-0003ih-6g
 for submit <at> debbugs.gnu.org; Thu, 02 Jul 2015 05:26:29 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_20,
 FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:57369)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <m8r-y0v7u9@HIDDEN>) id 1ZAalI-0003id-4k
 for submit <at> debbugs.gnu.org; Thu, 02 Jul 2015 05:26:28 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:56086)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <m8r-y0v7u9@HIDDEN>) id 1ZAalE-0004XZ-2m
 for bug-guix@HIDDEN; Thu, 02 Jul 2015 05:26:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <m8r-y0v7u9@HIDDEN>) id 1ZAal9-0003gH-Sx
 for bug-guix@HIDDEN; Thu, 02 Jul 2015 05:26:23 -0400
Received: from emkei.cz ([46.167.245.71]:42544)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <m8r-y0v7u9@HIDDEN>) id 1ZAal9-0003fo-MQ
 for bug-guix@HIDDEN; Thu, 02 Jul 2015 05:26:19 -0400
Received: by emkei.cz (Postfix, from userid 33)
 id 4DFA7D54DF; Thu,  2 Jul 2015 10:48:33 +0200 (CEST)
To: bug-guix@HIDDEN
Subject: guix download error "Bad Date header"
From: m8r-y0v7u9@HIDDEN
X-Priority: 3 (Normal)
Importance: Normal
Content-Type: text/plain; charset=utf-8
Message-Id: <20150702084833.4DFA7D54DF@HIDDEN>
Date: Thu,  2 Jul 2015 10:48:33 +0200 (CEST)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic]
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: -3.8 (---)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 02 Jul 2015 11:29:41 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: m8r-y0v7u9@HIDDEN
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.8 (---)

Hi,

guix download doesn't seem to like date headers that don't use GMT / UTC.  #guix irc logs from 2013-10-16 mention something similar.  Any suggestions or work-arounds?

Below is some relevant output -- first with guix download, then with wget -S (note the Expires header):

$ guix download \
https://dl-ssl.google.com/android/repository/platform-tools_r22-linux.zip
starting download of `/tmp/guix-file.o8FJB9' from `https://dl-ssl.google.com/android/repository/platform-tools_r22-linux.zip'...
ERROR: Bad Date header: Fri, 03 Jul 2015 01:39:41 PDT

failed to download "/tmp/guix-file.o8FJB9" from "https://dl-ssl.google.com/android/repository/platform-tools_r22-linux.zip"
guix download: error: https://dl-ssl.google.com/android/repository/platform-tools_r22-linux.zip: download failed

$ wget -S https://dl-ssl.google.com/android/repository/platform-tools_r22-linux.zip
--2015-07-02 16:49:11--  https://dl-ssl.google.com/android/repository/platform-tools_r22-linux.zip
Resolving dl-ssl.google.com (dl-ssl.google.com)... 173.194.72.91, 173.194.72.136, 173.194.72.190, ...
Connecting to dl-ssl.google.com (dl-ssl.google.com)|173.194.72.91|:443... connected.
HTTP request sent, awaiting response... 
  HTTP/1.1 200 OK
  Accept-Ranges: bytes
  Content-Length: 1751911
  Content-Type: application/zip
  Etag: "50c5a"
  Expires: Fri, 03 Jul 2015 00:49:11 PDT
  Last-Modified: Tue, 10 Mar 2015 17:00:00 GMT
  Server: downloads
  X-Content-Type-Options: nosniff
  X-Frame-Options: SAMEORIGIN
  X-Xss-Protection: 1; mode=block
  Date: Thu, 02 Jul 2015 07:49:11 GMT
  Alternate-Protocol: 443:quic,p=1
Length: 1751911 (1.7M) [application/zip]
Saving to: ‘platform-tools_r22-linux.zip’

platform-tools_r22- 100%[=====================>]   1.67M  2.35MB/s   in 0.7s   

2015-07-02 16:49:12 (2.35 MB/s) - ‘platform-tools_r22-linux.zip’ saved [1751911/1751911]




Acknowledgement sent to m8r-y0v7u9@HIDDEN:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#20962; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 6 Jan 2016 17:45:01 UTC

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