From unknown Sat Aug 16 16:53:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23421: parse-rfc-822-date is too strict Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 02 May 2016 09:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23421 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 23421@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.146218108729998 (code B ref -1); Mon, 02 May 2016 09:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 2 May 2016 09:24:47 +0000 Received: from localhost ([127.0.0.1]:33008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axA5v-0007nm-3a for submit@debbugs.gnu.org; Mon, 02 May 2016 05:24:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axA5t-0007nX-Da for submit@debbugs.gnu.org; Mon, 02 May 2016 05:24:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axA5e-0001fL-4C for submit@debbugs.gnu.org; Mon, 02 May 2016 05:24:36 -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.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axA5c-0001dg-VP for submit@debbugs.gnu.org; Mon, 02 May 2016 05:24:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axA5R-00019j-32 for bug-guile@gnu.org; Mon, 02 May 2016 05:24:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axA5D-0001W8-13 for bug-guile@gnu.org; Mon, 02 May 2016 05:24:09 -0400 Received: from venus.bbbm.mdc-berlin.de ([141.80.25.30]:32919) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axA5B-0001RP-MQ for bug-guile@gnu.org; Mon, 02 May 2016 05:24:02 -0400 Received: from localhost (localhost [127.0.0.1]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP id C78C8380BBE for ; Mon, 2 May 2016 11:23:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:from:from:received :received:received; s=mdc; t=1462181022; x=1463995423; bh=xkJZYB hqbDEq7RXkTIAS5Ro9LWwZtx45Jl3YHofXXBw=; b=bCh9c7a2AjndGOqqSDjxM+ PiEbtAGsGSLADBV2a9Jllo0P79Fbfc/ZTsfSmY6NjylAKSE6iWQb53CpE/eXqLz+ 5/ZbhUKBVoJZBm7o9vKnSKVj0QCzOuR8UX0B2KZxOeBwn4dp7/oAxwQQ2cR3A6t6 rCpMye4TO63rq+Cu0q3iw= X-Virus-Scanned: amavisd-new at mdc-berlin.de Received: from venus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (venus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ItrwDfK1wYwC for ; Mon, 2 May 2016 11:23:42 +0200 (CEST) Received: from HTCAONE.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTPS for ; Mon, 2 May 2016 11:23:42 +0200 (CEST) Received: from localhost (141.80.180.135) by HTCAONE.mdc-berlin.net (141.80.180.125) with Microsoft SMTP Server (TLS) id 14.3.279.2; Mon, 2 May 2016 11:22:17 +0200 From: Ricardo Wurmus Date: Mon, 2 May 2016 11:22:17 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Originating-IP: [141.80.180.135] X-TM-AS-Product-Ver: SMEX-11.0.0.4255-8.000.1202-22296.006 X-TM-AS-Result: No--8.389000-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) 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: -5.0 (-----) The procedure =E2=80=9Cparse-rfc-822-date=E2=80=9D in the module (web htt= p) is a bit too strict as it rejects dates in which the hour field is a single digit without zero-padding. A date like this will be rejected: Sun, 06 Nov 1994 8:49:37 GMT Whereas a date like this is accepted: Sun, 06 Nov 1994 08:49:37 GMT The only difference is the leading zero in the timestamp. Dates like the former are produced by maven (see =E2=80=9CLast-Modified=E2= =80=9D header): ~~~~~~~~~~~~~~~~~~~~ rwurmus in guix: wget -S http://central.maven.org/maven2/org/osgi/org.os= gi.core/6.0.0/org.osgi.core-6.0.0-sources.jar --2016-05-02 11:21:06-- http://central.maven.org/maven2/org/osgi/org.osg= i.core/6.0.0/org.osgi.core-6.0.0-sources.jar Resolving central.maven.org (central.maven.org)... 185.31.17.209 Connecting to central.maven.org (central.maven.org)|185.31.17.209|:80... = connected. HTTP request sent, awaiting response...=20 HTTP/1.1 200 OK x-amz-meta-last-modified-epoch: 1406692062000 ETag: "470145ab68a6738780bd86e1c4b53d4b" Content-Type: application/java-archive Last-Modified: Wed, 30 Jul 2014 3:47:42 GMT X-Checksum-MD5: 470145ab68a6738780bd86e1c4b53d4b X-Checksum-SHA1: 347531f45363ed10e222b03231d49bb7df016a4d Via: 1.1 varnish Fastly-Debug-Digest: 843a9842225e10fdcdc029bcd46bfe2a74c8b74a8a748e971d= 9779296cd6405f Content-Length: 296717 Accept-Ranges: bytes Date: Mon, 02 May 2016 09:21:06 GMT Via: 1.1 varnish Age: 185269 Connection: keep-alive X-Served-By: cache-iad2131-IAD, cache-fra1242-FRA X-Cache: HIT, HIT X-Cache-Hits: 1, 1 X-Timer: S1462180866.617726,VS0,VE5 Length: 296717 (290K) [application/java-archive] Saving to: =E2=80=98org.osgi.core-6.0.0-sources.jar=E2=80=99 org.osgi.core-6.0.0 100%[=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D>] 289.76K --.-KB/s in 0.08s =20 2016-05-02 11:21:06 (3.54 MB/s) - =E2=80=98org.osgi.core-6.0.0-sources.ja= r=E2=80=99 saved [296717/296717] ~~~~~~~~~~~~~~~~~~~~ ~~ Ricardo From unknown Sat Aug 16 16:53:13 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ricardo Wurmus Subject: bug#23421: closed (Re: bug#23421: parse-rfc-822-date is too strict) Message-ID: References: <87posw2u9m.fsf@gnu.org> X-Gnu-PR-Message: they-closed 23421 X-Gnu-PR-Package: guile Reply-To: 23421@debbugs.gnu.org Date: Sun, 08 May 2016 20:03:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1462737782-7834-1" This is a multi-part message in MIME format... ------------=_1462737782-7834-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #23421: parse-rfc-822-date is too strict which was filed against the guile package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 23421@debbugs.gnu.org. --=20 23421: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D23421 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1462737782-7834-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 23421-done) by debbugs.gnu.org; 8 May 2016 20:02:27 +0000 Received: from localhost ([127.0.0.1]:43519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azUuJ-00021Y-KF for submit@debbugs.gnu.org; Sun, 08 May 2016 16:02:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azUuH-00021L-O6 for 23421-done@debbugs.gnu.org; Sun, 08 May 2016 16:02:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azUu9-0001fi-Lf for 23421-done@debbugs.gnu.org; Sun, 08 May 2016 16:02:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.0 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]:45802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azUu9-0001fe-IX; Sun, 08 May 2016 16:02:17 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:47050 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1azUu7-0001or-PH; Sun, 08 May 2016 16:02:16 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Ricardo Wurmus Subject: Re: bug#23421: parse-rfc-822-date is too strict References: Date: Sun, 08 May 2016 22:02:13 +0200 In-Reply-To: (Ricardo Wurmus's message of "Mon, 2 May 2016 11:22:17 +0200") Message-ID: <87posw2u9m.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: -7.1 (-------) X-Debbugs-Envelope-To: 23421-done Cc: 23421-done@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: -7.1 (-------) Ricardo Wurmus skribis: > The procedure =E2=80=9Cparse-rfc-822-date=E2=80=9D in the module (web htt= p) is a bit too > strict as it rejects dates in which the hour field is a single digit > without zero-padding. > > A date like this will be rejected: > > Sun, 06 Nov 1994 8:49:37 GMT > > Whereas a date like this is accepted: > > Sun, 06 Nov 1994 08:49:37 GMT > > The only difference is the leading zero in the timestamp. Fixed in 16050431f29d56f80c4a8253506fc851b8441840, thanks! Ludo=E2=80=99. ------------=_1462737782-7834-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 2 May 2016 09:24:47 +0000 Received: from localhost ([127.0.0.1]:33008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axA5v-0007nm-3a for submit@debbugs.gnu.org; Mon, 02 May 2016 05:24:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axA5t-0007nX-Da for submit@debbugs.gnu.org; Mon, 02 May 2016 05:24:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axA5e-0001fL-4C for submit@debbugs.gnu.org; Mon, 02 May 2016 05:24:36 -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.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axA5c-0001dg-VP for submit@debbugs.gnu.org; Mon, 02 May 2016 05:24:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axA5R-00019j-32 for bug-guile@gnu.org; Mon, 02 May 2016 05:24:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axA5D-0001W8-13 for bug-guile@gnu.org; Mon, 02 May 2016 05:24:09 -0400 Received: from venus.bbbm.mdc-berlin.de ([141.80.25.30]:32919) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axA5B-0001RP-MQ for bug-guile@gnu.org; Mon, 02 May 2016 05:24:02 -0400 Received: from localhost (localhost [127.0.0.1]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP id C78C8380BBE for ; Mon, 2 May 2016 11:23:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:from:from:received :received:received; s=mdc; t=1462181022; x=1463995423; bh=xkJZYB hqbDEq7RXkTIAS5Ro9LWwZtx45Jl3YHofXXBw=; b=bCh9c7a2AjndGOqqSDjxM+ PiEbtAGsGSLADBV2a9Jllo0P79Fbfc/ZTsfSmY6NjylAKSE6iWQb53CpE/eXqLz+ 5/ZbhUKBVoJZBm7o9vKnSKVj0QCzOuR8UX0B2KZxOeBwn4dp7/oAxwQQ2cR3A6t6 rCpMye4TO63rq+Cu0q3iw= X-Virus-Scanned: amavisd-new at mdc-berlin.de Received: from venus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (venus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ItrwDfK1wYwC for ; Mon, 2 May 2016 11:23:42 +0200 (CEST) Received: from HTCAONE.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTPS for ; Mon, 2 May 2016 11:23:42 +0200 (CEST) Received: from localhost (141.80.180.135) by HTCAONE.mdc-berlin.net (141.80.180.125) with Microsoft SMTP Server (TLS) id 14.3.279.2; Mon, 2 May 2016 11:22:17 +0200 From: Ricardo Wurmus To: Subject: parse-rfc-822-date is too strict Date: Mon, 2 May 2016 11:22:17 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Originating-IP: [141.80.180.135] X-TM-AS-Product-Ver: SMEX-11.0.0.4255-8.000.1202-22296.006 X-TM-AS-Result: No--8.389000-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) 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: -5.0 (-----) The procedure =E2=80=9Cparse-rfc-822-date=E2=80=9D in the module (web htt= p) is a bit too strict as it rejects dates in which the hour field is a single digit without zero-padding. A date like this will be rejected: Sun, 06 Nov 1994 8:49:37 GMT Whereas a date like this is accepted: Sun, 06 Nov 1994 08:49:37 GMT The only difference is the leading zero in the timestamp. Dates like the former are produced by maven (see =E2=80=9CLast-Modified=E2= =80=9D header): ~~~~~~~~~~~~~~~~~~~~ rwurmus in guix: wget -S http://central.maven.org/maven2/org/osgi/org.os= gi.core/6.0.0/org.osgi.core-6.0.0-sources.jar --2016-05-02 11:21:06-- http://central.maven.org/maven2/org/osgi/org.osg= i.core/6.0.0/org.osgi.core-6.0.0-sources.jar Resolving central.maven.org (central.maven.org)... 185.31.17.209 Connecting to central.maven.org (central.maven.org)|185.31.17.209|:80... = connected. HTTP request sent, awaiting response...=20 HTTP/1.1 200 OK x-amz-meta-last-modified-epoch: 1406692062000 ETag: "470145ab68a6738780bd86e1c4b53d4b" Content-Type: application/java-archive Last-Modified: Wed, 30 Jul 2014 3:47:42 GMT X-Checksum-MD5: 470145ab68a6738780bd86e1c4b53d4b X-Checksum-SHA1: 347531f45363ed10e222b03231d49bb7df016a4d Via: 1.1 varnish Fastly-Debug-Digest: 843a9842225e10fdcdc029bcd46bfe2a74c8b74a8a748e971d= 9779296cd6405f Content-Length: 296717 Accept-Ranges: bytes Date: Mon, 02 May 2016 09:21:06 GMT Via: 1.1 varnish Age: 185269 Connection: keep-alive X-Served-By: cache-iad2131-IAD, cache-fra1242-FRA X-Cache: HIT, HIT X-Cache-Hits: 1, 1 X-Timer: S1462180866.617726,VS0,VE5 Length: 296717 (290K) [application/java-archive] Saving to: =E2=80=98org.osgi.core-6.0.0-sources.jar=E2=80=99 org.osgi.core-6.0.0 100%[=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D>] 289.76K --.-KB/s in 0.08s =20 2016-05-02 11:21:06 (3.54 MB/s) - =E2=80=98org.osgi.core-6.0.0-sources.ja= r=E2=80=99 saved [296717/296717] ~~~~~~~~~~~~~~~~~~~~ ~~ Ricardo ------------=_1462737782-7834-1--