Re: Via header specification bug

Julian Reschke <julian.reschke@gmx.de> Tue, 22 November 2016 13:04 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C8428129DF5 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 22 Nov 2016 05:04:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.398
X-Spam-Level:
X-Spam-Status: No, score=-8.398 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-1.497, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b3x0a7OZf8Xl for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 22 Nov 2016 05:04:12 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B12DF129BD8 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 22 Nov 2016 05:04:12 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1c9Afd-0001FD-9v for ietf-http-wg-dist@listhub.w3.org; Tue, 22 Nov 2016 12:59:33 +0000
Resent-Date: Tue, 22 Nov 2016 12:59:33 +0000
Resent-Message-Id: <E1c9Afd-0001FD-9v@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <julian.reschke@gmx.de>) id 1c9AfI-0001B7-DS for ietf-http-wg@listhub.w3.org; Tue, 22 Nov 2016 12:59:12 +0000
Received: from mout.gmx.net ([212.227.17.22]) by titan.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <julian.reschke@gmx.de>) id 1c9AfB-0004eg-3v for ietf-http-wg@w3.org; Tue, 22 Nov 2016 12:59:07 +0000
Received: from [192.168.1.123] ([5.10.171.186]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MBZ9u-1bzrVz1FCA-00AVvN; Tue, 22 Nov 2016 13:58:37 +0100
To: Daurnimator <quae@daurnimator.com>, HTTP Working Group <ietf-http-wg@w3.org>
References: <CAEnbY+fOsgT7+o3bpP9KYur=YBH_QQ8-fQcBS6GisNDX64QGiw@mail.gmail.com>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <47ec0907-2eb9-5724-cee1-a4ab7c04e1b2@gmx.de>
Date: Tue, 22 Nov 2016 13:58:36 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0
MIME-Version: 1.0
In-Reply-To: <CAEnbY+fOsgT7+o3bpP9KYur=YBH_QQ8-fQcBS6GisNDX64QGiw@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:AhBSOtZxm7eRvtyya1vZbAQypZzP6q13CckJ39aONEhvkuTWulH 3kBsWNRqF5eP+4Xf5QDfcQrcX7t4YU4wLSjUEAEPRilhKNEHOOJTI1EwckPE3wDyjswXJAN bzgTBaB2OnfPTjoEQeKnlFEpkEyzh4OJOC4DGNuasQzsrhpLGUs7UMXKAoRZWALbmnJHcDo PP5RJu9suEG64PJx3sj3Q==
X-UI-Out-Filterresults: notjunk:1;V01:K0:eh2++7nDtjk=:HvHeUv5i0LPKeamaB3OlwZ DzCFpohPu56PZiHuZwcWgflmgr/V7NqXJUgA/jE5IA85QAabynuORPjg+V5fdTdxkj24gTH8G h3UrnLBuGWBHZGcGqUR1BbsCEIZZvdzHjp/e5MwnqM87lYtrRtSuu9IyYjXqnGaMw9WA2o9uv ZZcJPJMah/2mOMuEWjbT1KgH6OukZaKmnUYGiGqC+3+vyBkFAd9BE24fMF114U7fZ+6IfrXkT 2LnDsIwJJhGDGLqS28/2xlKzNFXzuNCwibrQIHKvUFYeDHyKjEmxc21Ihv+h6QgUDNXiVADZD dINPjybmkwjI5w9LgqqscUvR6pG7gtCUyTyQu8a4U5EVHFwN/Ogoe1vUZ7/dkwOPSWmyAbpkK gXWhkYU5ttJ9yV3z7AgKepX/Ap29stRuIwfWvT3cboY/EBddE1mW4iUq8+m2W52LmxIr0ZQwU E6Ztc5Hg85Th942QnI9oWnlUgBJuIumY1E8NjEu3YL8h9uXGgAqQoziWZ8TjueZTBAJbOf96V soO879jPG1mBsqxdiG4jMiPYE0lYouIniI5fk5yapLyo8co4VKcSEIAdUqZXz8dOWqFrt3z33 /P7bpYLbEYr2eZH0VBr52+5rdlTVyfzT33LsqMR7WgL8CYt91GPFRbvq5xq//8XDGKnjwClXF tnXGjZ5h+GnFjXLX/5dXXPzkFBHiKr/htc4ycz6wwctE437BfjX34JnmrhuaqLyEeGNumS34Y 7pW9jwF2NPZ9apko+ygLMLnK5S/j4b3aksaBW0rWspH8kp+qMJM/RPI0aX4azRo7lOsakXt5j E9Tinrg
Received-SPF: pass client-ip=212.227.17.22; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-6.7
X-W3C-Hub-Spam-Report: AWL=-0.148, BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1c9AfB-0004eg-3v 44f3444a2ec8d99d116e77135192af4f
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Via header specification bug
Archived-At: <http://www.w3.org/mid/47ec0907-2eb9-5724-cee1-a4ab7c04e1b2@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32959
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 2016-11-22 13:18, Daurnimator wrote:
> I think I found a bug in the specification of the Via header as given
> in RFC 7230
> ...

Oops.

It seems this bug was introduced because RFC 3986 relaxed the syntax for 
"host" (as opposed to RFC 2396).

I think this requires an erratum; but let's discuss the fix first.

We could:

1) replace "host" by something more restrictive. Drawback: can't express 
all host names legal in RFC 3986.

2) require some or all sub-delims to be percent-escaped when they occur 
here.

 > ...

Best regards, Julian