Re: I-D Action: draft-carpenter-6man-rfc6874bis-00.txt

Brian E Carpenter <brian.e.carpenter@gmail.com> Wed, 07 July 2021 02:16 UTC

Return-Path: <brian.e.carpenter@gmail.com>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3A0D83A179A for <ipv6@ietfa.amsl.com>; Tue, 6 Jul 2021 19:16:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.437
X-Spam-Level:
X-Spam-Status: No, score=-2.437 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.338, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 sv0wzyM65UNW for <ipv6@ietfa.amsl.com>; Tue, 6 Jul 2021 19:16:57 -0700 (PDT)
Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7719D3A17A6 for <ipv6@ietf.org>; Tue, 6 Jul 2021 19:16:57 -0700 (PDT)
Received: by mail-pj1-x102e.google.com with SMTP id p9so621509pjl.3 for <ipv6@ietf.org>; Tue, 06 Jul 2021 19:16:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=cSIzmIkqZI4N63fvFi/E4DR3XsE40BTUrbXHizPdTqQ=; b=g9gKpXYldOwD1bqMDnia6N88AqPC1umPrgwO4XJslBS0M7SmxEuEwPiQkYxoQfTCVz Xq4NVxvyEbZkPqDC4I0B65dT/kUiDg+FYevBWefvxnV9ew5jRJfyyR/GNGcmkmy3kbkG hw4HhuKSPW+dbJRJOSU7jZeq8nHvUvivGctPXO+sHb1SCdwWqX27YgO+PlWqTMUH+NmB NFecZGrTIY82K46jwjp/qRMtN1Z0kX9uh/gs8BtcVeuIYnOEf628pAJC//kGBXVa+YTY AuGFoVQA+vjbtl4b9I9TcWbckfMjiNoVl6Ht68kd621H3KZPi3vQn3Zt9S+RZpYs4alY DW1Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=cSIzmIkqZI4N63fvFi/E4DR3XsE40BTUrbXHizPdTqQ=; b=Fc/YeJZhfivHW0Yba99/f+nriqKOxSBu9jVDRutEfvVE0fPk9PK31sOPopAgv40D4V JB24YshQK6eZoNID3Fy/+ZjbtMqrt+3uZ6wkubPPo1I7omPB0LZaWHqYMPK7f9Iphib4 UZ270ik2qRe0/dj4TNBYd4M3Q2JLkJWxl3p8sWPO4HTq+5SqSA4PIRueYgf01LuK9xJo Mfu4B6MdIvFqub+NkLxahQQ3OgTJtyBzWXCMpW0zmPPylmENxoAMI6h7M5ENDGHm3i/F twxW615o1gna440mDkjF8Pfq7lYLoiVjFJ12NVtAXsFMu6odMtquzTw5yfFzmayQDwJs nU0g==
X-Gm-Message-State: AOAM531v/Vtpwxy+rjQ1VFqPBcGlKPsDvx6PWkEj4mPqR99cJ70vAVXc ohrhKdQ8FNhsfIC68NdY4nNJq2oBRcJQFg==
X-Google-Smtp-Source: ABdhPJz8yjX+dIzpF9QxXNewfzOceiycr8dfwV5vN6Gs47TYmaMxorRuFaCBa8xmDWeUI95WXNjvbg==
X-Received: by 2002:a17:90a:4cc4:: with SMTP id k62mr23290497pjh.64.1625624215611; Tue, 06 Jul 2021 19:16:55 -0700 (PDT)
Received: from ?IPv6:2406:e003:1188:5b01:80b2:5c79:2266:e431? ([2406:e003:1188:5b01:80b2:5c79:2266:e431]) by smtp.gmail.com with ESMTPSA id y3sm20967490pga.72.2021.07.06.19.16.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Jul 2021 19:16:54 -0700 (PDT)
Subject: Re: I-D Action: draft-carpenter-6man-rfc6874bis-00.txt
To: Andrew Cady <andy@cryptonomic.net>, 6MAN WG <ipv6@ietf.org>
References: <CA+9kkMD3iSgo-KMM5Ed8bVnVCu_G3f2kB6zHKoOx2ta=x8QucA@mail.gmail.com> <CANMZLAbmdWHDRBPpHgy_e4_0-WUVW2gjnbXWwu2pF_xi-S0vWQ@mail.gmail.com> <87a6n13y0j.fsf@ungleich.ch> <CA+9kkMBx4F0FGZasdk11ogyCOwQZecAEkO4JbECDr4osySN-4w@mail.gmail.com> <20210706152527.j47rcxas5nwz5d63@zukertort.childrenofmay.org> <CA+9kkMDGQxFD6v=NJaDXRdRJ3jaRriTnhnyKeK3cG=jaosQhBQ@mail.gmail.com> <20210706161859.2wdw7mkeg4b7nd66@zukertort.childrenofmay.org> <28125.1625590441@localhost> <20210706170435.2dfvdx2aynpqxwl6@zukertort.childrenofmay.org> <24972.1625597141@localhost> <20210706200508.tc6tl4s7cqe4k3ga@zukertort.childrenofmay.org>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Message-ID: <54007d49-0bb7-d97e-a7cc-6d6d982c0493@gmail.com>
Date: Wed, 07 Jul 2021 14:16:51 +1200
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0
MIME-Version: 1.0
In-Reply-To: <20210706200508.tc6tl4s7cqe4k3ga@zukertort.childrenofmay.org>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/vCUAyu41WOd-Qv-rOt597SfF7aE>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipv6/>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Jul 2021 02:16:59 -0000

Andrew,

On 07-Jul-21 08:05, Andrew Cady wrote:
> On Tue, Jul 06, 2021 at 02:45:41PM -0400, Michael Richardson wrote:
>>
>>     >> So why do the browser implementers have such difficulties with
>>     >> processing this?  Running code wins.
>>
>>     > There is no difficulty implementing it the way that I say to do
>>     > it!
>>
>>     > The difficulty (or rather, refusal) is implementing it the
>>     > broken way that the standard says to do.
>>
>> Well, each time I read your (multiple) posts, I see you describing
>> what I think that the standard already says.  Obviously, I'm wrong.
>>
>> You also seem to be disagreeing with Brian's text, which is why
>> I'm confused.  Maybe you could just make a pull request to Brian's
>> document?
> 
> The problem isn't with the changes Brian made.  Those changes were
> needed and good.  (By the way, thanks Brian.)
> 
> The problem is in what was left unchanged.  Brian did not break with
> rfc6874 but that break is what is needed.  We need to propagate the fix
> back to all relevant RFCs.
>  
> 
> Specifically, these definitions must change:
> 
>     ZoneID = 1*( unreserved / pct-encoded )
>     IPv6addrz = IPv6address "%25" ZoneID
> 
> 
> These definitions can be used instead:
> 
>     ZoneID = 1*( unreserved )
>     IPv6addrz = IPv6address "%" ZoneID
> 

Thanks for making a concrete proposal. My belief back when
we did RFC6874 was that this would not be acceptable in the
URI world. I'd be glad to test this belief again.
 
> By the way, there is a relevant mistake of fact in rfc6874:
> 
>     According to URI syntax [RFC3986], "%" is always treated as an
>     escape character in a URI,
> 
> The "always" part is untrue.  It is only treated that way where BNF says
> "pct-encoded".  Inside of square brackets it must instead be treated as
> an error.  Pct-encoded data is not allowed there. 

Well, it *is* allowed in a URI precisely because RFC6874 formally updates
RFC3986. I agree that the production for IPv6address in RFC3986 doesn't
include pct-encoded. However, RFC3986 section 2.4 says:

"Because the percent ("%") character serves as the indicator for
percent-encoded octets, it must be percent-encoded as "%25" for that
octet to be used as data within a URI."

As I recall the discussion nine years ago, that statement was taken
literally to mean *anywhere* in a URI. You are probably correct that a
strictly ABNF-driven parser wouldn't apply the escape mechanism except
within pct-encoded, but what do real-world parsers do?

Personally I'd be happy if we could make the change you suggest, but
we'd need to hear from the implementers.

   Brian