From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Hartwig Newsgroups: gmane.lisp.guile.bugs Subject: bug#13544: (web http) fails to parse numeric timezones in Date header Date: Fri, 15 Mar 2013 15:08:33 +0800 Message-ID: References: <8738xqjkks.fsf@gnu.org> <87d2vac09x.fsf@pobox.com> <877glh56g2.fsf@pobox.com> <87r4jnw1gj.fsf@pobox.com> <8738vyt89n.fsf@gnu.org> <87ppz29gbn.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1363331338 9475 80.91.229.3 (15 Mar 2013 07:08:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Mar 2013 07:08:58 +0000 (UTC) Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 13544@debbugs.gnu.org, Cyril Roelandt To: Andy Wingo Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Mar 15 08:09:19 2013 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UGOlS-0006Ms-Pg for guile-bugs@m.gmane.org; Fri, 15 Mar 2013 08:09:19 +0100 Original-Received: from localhost ([::1]:57790 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGOl6-0005r1-2h for guile-bugs@m.gmane.org; Fri, 15 Mar 2013 03:08:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGOl3-0005qN-0C for bug-guile@gnu.org; Fri, 15 Mar 2013 03:08:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGOky-0000I1-DF for bug-guile@gnu.org; Fri, 15 Mar 2013 03:08:52 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGOky-0000Hw-8e for bug-guile@gnu.org; Fri, 15 Mar 2013 03:08:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UGOmA-0003PS-Qf for bug-guile@gnu.org; Fri, 15 Mar 2013 03:10:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Hartwig Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 15 Mar 2013 07:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13544 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 13544-submit@debbugs.gnu.org id=B13544.136333140113094 (code B ref 13544); Fri, 15 Mar 2013 07:10:02 +0000 Original-Received: (at 13544) by debbugs.gnu.org; 15 Mar 2013 07:10:01 +0000 Original-Received: from localhost ([127.0.0.1]:55338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGOm6-0003P7-Ua for submit@debbugs.gnu.org; Fri, 15 Mar 2013 03:10:00 -0400 Original-Received: from mail-ia0-f180.google.com ([209.85.210.180]:44872) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGOm3-0003Ot-GK for 13544@debbugs.gnu.org; Fri, 15 Mar 2013 03:09:57 -0400 Original-Received: by mail-ia0-f180.google.com with SMTP id f27so2877470iae.25 for <13544@debbugs.gnu.org>; Fri, 15 Mar 2013 00:08:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=zSt8XXs4e0H2QR+QKYXvUFgK9egcAXb7zi36FQj6OTc=; b=gwcl/nvdeLL8INa8ZVEkX+V9V2divxQ16GBFYbfg0LwGXAIl8WV5jZ4K/ZVhWIA+Zg C8cHBAvxZQBT03rpGyYWfld8croKWHLHFIDJNZq+KfSLq8i50/KbAJB71gwr5meUI7za SXbYq1KexX+zjc5etPSTpKk34bLT8LsVKyJv++qaNQwAX6U8cY0a1Qe6/naIBipaFOYl pYpiVYh6WPEau8Uh/qUIbW7eRN0gFAJywWDCicIUIDoWCnYdhFMMnUrh3Hzb4bDz3QAP TxEHSy7UGOsNFa7j1XKRtosR9GCF1iGWcoTQV+eHW/DRBnKxyOBxLiOwA2E5QVLYESn2 z6iA== X-Received: by 10.42.149.135 with SMTP id w7mr3958535icv.25.1363331314352; Fri, 15 Mar 2013 00:08:34 -0700 (PDT) Original-Received: by 10.64.26.168 with HTTP; Fri, 15 Mar 2013 00:08:33 -0700 (PDT) In-Reply-To: <87ppz29gbn.fsf@pobox.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:6965 Archived-At: On 14 March 2013 23:00, Andy Wingo wrote: > On Thu 14 Mar 2013 14:34, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >>>> Ok. What about Ludo's original comment, about the extra space in the >>>> sqlite header? >>> >>> Dunno. Is it common? In the sample data from last year there were no instances of any extra whitespace in any date-valued header. Let us consider it rare, which is enough reason to not support it. The same reasoning was applied in #10147. Otherwise, having =E2=80=98string-match?=E2=80=99 collapse whitesp= ace may be ok. Ludo=E2=80=99s patch can be applied with support for arbitrary timezones removed. On a related note, how RFC-strict is =E2=80=98valid-header?=E2=80= =99 supposed to be? At the moment it will pass a date value in any timezone. >>> In this particular case I would mail and try to >>> get them to fix their server, given that it is run by hackers. Let us >>> leave that particular issue for another bug. >> >> I think standards unfortunately don=E2=80=99t matter as much as usage he= re. > > It's a tradeoff. Guile's web module is not permissive; though perhaps a > permissive parsing flag could make sense (one that doesn't propagate > exceptions). But anyway it will never parse the whole range of crap > that people put on the internet. So with nonstandard productions it's > always a tradeoff. In this case the tradeoff is not worth it to me, > especially given other options, but that is MHO. Regards