From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#19439: [PATCH] gnu: Add erlang. Date: Wed, 06 Jan 2016 17:07:51 +0100 Message-ID: <87wprmg088.fsf__6500.91536012969$1452096564$gmane$org@gnu.org> References: <20160104043952.GA29303@jasmine> <877fjpzi07.fsf@igalia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGqe1-00076I-6N for bug-guix@gnu.org; Wed, 06 Jan 2016 11:09:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGqdx-0004DR-Vy for bug-guix@gnu.org; Wed, 06 Jan 2016 11:09:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:52269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGqdx-0004DN-TA for bug-guix@gnu.org; Wed, 06 Jan 2016 11:09:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aGqdx-0000n9-Q4 for bug-guix@gnu.org; Wed, 06 Jan 2016 11:09:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <877fjpzi07.fsf@igalia.com> (Andy Wingo's message of "Mon, 04 Jan 2016 12:44:24 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Andy Wingo Cc: guix-devel@gnu.org, 19439@debbugs.gnu.org, guile-devel@gnu.org On Mon 04 Jan 2016 06:20, Steve Sprang writes: > From http://www.erlang.org/download/otp_src_18.2.1.tar.gz... > ERROR: Bad qstring header component: kMSMAn68110840 Andy Wingo skribis: > The Etag value is invalid: > > https://tools.ietf.org/html/rfc7232#section-2.3 > > We could relax Guile's etag parser to assume that an etag not starting > with either W/ or " is a strong etag without quotes. To do that you > would patch guile's http.scm to say: > > (define (parse-entity-tag val) > (cond > ((string-prefix? "W/" val) (cons (parse-qstring val 2) #f)) > ((string-prefix? "\"" val) (cons (parse-qstring val) #t)) > (else (cons val #t)))) > > Considering that this error has come up a few times and that the less > strict parser doesn't change the Guile programming interface or endanger > the web in any significant way, I think changing Guile's HTTP parser > would be OK. > > Thoughts? Indeed, this has been reported a few times: http://bugs.gnu.org/19439 I think we should implement the proposed change. Could you look into it? Thanks, Ludo=E2=80=99.