Re: [IPv6] Case-sensitivity issue of zone identifiers in draft-ietf-6man-rfc6874bis-05

Ted Hardie <ted.ietf@gmail.com> Wed, 15 March 2023 09:51 UTC

Return-Path: <ted.ietf@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 6F716C15C501 for <ipv6@ietfa.amsl.com>; Wed, 15 Mar 2023 02:51:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.095
X-Spam-Level:
X-Spam-Status: No, score=-7.095 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ivhqvivdVfkC for <ipv6@ietfa.amsl.com>; Wed, 15 Mar 2023 02:51:13 -0700 (PDT)
Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A17D0C152567 for <ipv6@ietf.org>; Wed, 15 Mar 2023 02:51:13 -0700 (PDT)
Received: by mail-ed1-x536.google.com with SMTP id eh3so17173883edb.11 for <ipv6@ietf.org>; Wed, 15 Mar 2023 02:51:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678873872; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=AcMlxZwntKIOOBD32Hdd/tbOXK1LPaaOvybRb6nMHmI=; b=TjUzjIXqP2xgwzFbDVl3pKWcMo47z2odkd9enz2OmUwO2FdOMKvh/NeFs2GY/51Gvn XYN5+EtSc2Ymr5ZpVnzQqy9Fk/HEGWOrk2Rivm/z9uiD5FYwJzFqOPaLFeP3UJKA6iro SqDZD5fFA/mbL72nMeJI55xD3cv5NhgDTLBker3OG8a5ZnboCK345EuA3W+m+Sebaso2 25OqU0bDVUGrOmIxbn7DOOMhrN2WoTWE2BWPf13utptJSu4K89oreqGk2KYWYYWtS5xG r9kkKsXuh8kRm1fLtV07uhQ1NtkS9o+rd3+Rc2Teh0Tbg+wyLSiOyd57RW4hMRvbLpcY vEVg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678873872; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AcMlxZwntKIOOBD32Hdd/tbOXK1LPaaOvybRb6nMHmI=; b=Kc4qyKwBrLcHAFpPQLiIpKAWcPus2/IC5HfeMx8hh4E3L2PD2ALF+SaMFbsluyI3m6 mg0qH9uz9MAhbaVr17p3C5KKANd5Jbd8cWcrUwNvzFzODmjERRmuNo4+8dV2mjUQqpVL 9TtHW/RMboDlQffycZ3aMrcjqrr6VDu92OXgBgxeGswJoQnbQut9ILg6QVwTc+b3wb1T oZdw150G4UM6roUanm9NkY3fxi/6i4U8RaVxkQ+bPuzR1vn1Rs2THDV3YxqQOqBWOUk2 a5pV59n8VxXzZE0ilIzXu740F5jbPdnpfxT4IJUBds63xLoq//AHbtgmvbsxJQcHOaGi +SFA==
X-Gm-Message-State: AO0yUKXF4tVJ5WVIOTAnOcitqzfRFMPdL6lQSFcXK0rcD0wTXrhdlGEG 4oS+iADKV0cJRapLAhXprprAmaUFxhGf9s5CImQ=
X-Google-Smtp-Source: AK7set92hZdPgfD9ncxpNqZ0fY/jwGkuTxBHpid5Otn9YOpXkVkireojeN+AbA9X21YldOF8mhRGTlGOGHP6TmqgmF8=
X-Received: by 2002:a17:907:2bf4:b0:922:1fa2:af53 with SMTP id gv52-20020a1709072bf400b009221fa2af53mr2715993ejc.14.1678873871830; Wed, 15 Mar 2023 02:51:11 -0700 (PDT)
MIME-Version: 1.0
References: <tencent_3D3F07CC3D59EE52093D35F2@qq.com> <95cc5bf1-bd2c-40bf-185f-a65730aa3e80@gmail.com>
In-Reply-To: <95cc5bf1-bd2c-40bf-185f-a65730aa3e80@gmail.com>
From: Ted Hardie <ted.ietf@gmail.com>
Date: Wed, 15 Mar 2023 09:50:45 +0000
Message-ID: <CA+9kkMDgu8b79CconJ54R2BbkfFe6yxBRQRmJu6nNhAsTJYK5Q@mail.gmail.com>
To: Brian E Carpenter <brian.e.carpenter@gmail.com>
Cc: Shang Ye <yesh25@mail2.sysu.edu.cn>, ipv6 <ipv6@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000c0d38b05f6ed48f4"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/FI-piuPlwWrnk-6XYI2A7ukm9-0>
Subject: Re: [IPv6] Case-sensitivity issue of zone identifiers in draft-ietf-6man-rfc6874bis-05
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.39
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, 15 Mar 2023 09:51:17 -0000

On Tue, Mar 14, 2023 at 8:42 PM Brian E Carpenter <
brian.e.carpenter@gmail.com> wrote:

> Shang,
>
> You are correct, and I feel that the underlying issue here is that
> RFC 4007 under-specifies the Zone ID format, which is very hard to
> fix. But the URI syntax is very explicit that "the scheme and host
> are case-insensitive." I don't see that we can really override that
> with a SHOULD and expect the browsers to follow along.


I think that it is true, and that the guidance on this is pretty clear.
RFC 8820 has this text in Section 2.2:

Scheme definitions define the presence, format, and semantics of an
authority component in URIs; all other Specifications MUST NOT constrain or
define the structure or the semantics for URI authorities, unless they
update the scheme registration itself or the structures it relies upon
(e.g., DNS name syntax, as defined in Section 3.5
<https://www.rfc-editor.org/rfc/rfc1034#section-3.5> of [RFC1034
<https://www.rfc-editor.org/rfc/rfc8820#RFC1034>]).For example, an
Extension or Application cannot say that the "foo" prefix in "
https://foo_app.example.com" is meaningful or triggers special handling in
URIs, unless they update either the "http" URI scheme or the DNS hostname
syntax.Applications can nominate or constrain the port they use, when
applicable. For example, BarApp could run over port nnnn (provided that it
is properly registered).

regards,

Ted Hardie

> I understand
> that it's relatively easy for a stand-alone parser to do this, but
> the browser implementations are a different story.
>
>     Brian
>
> On 14-Mar-23 19:54, Shang Ye wrote:
> > Hi Brian,
> >
> > I notice that the current version of the draft mentions the
> case-sensitivity issue
> > of zone identifiers in this paragraph:
> >
> >> RFC 3986 also states that the host subcomponent of a URI is case-
> >> insensitive and is normalised to lower case.  The mechanism described
> >  > here will therefore fail for zone identifiers that contain upper case
> >  > letters, since RFC 4007 implies case-sensitivity.
> >
> > Indeed it has pointed out the issue, but it doesn't really tell people
> how a
> > zone identifier that contain upper case letters may be resolved. Should
> > they pass it directly to a mapping function, say `if_nametoindex`,
> normalize
> > it to lower case first, or, "fail" to resolve it as implied in the
> paragraph?
> >
> > When I modified my own URI parser to support rfc6874bis, I felt that the
> only
> > correct option is passing the zone identifier as it is, considering the
> fact that
> > interface names are case-sensitive on Linux. Personally I feel it quite
> wrong
> > to either reject an uppercase zone identifier or turn it into lower case
> first.
> >
> > Also, I notice that you doubted that making zone identifiers
> case-sensitive
> > would cause a major problem for the URI parsers in every browser,
> especially in Firefox.
> > I admit that some browsers may have their *URL* parsing code so
> convoluted that it can be very hard to make the change, but I believe that
> it isn't
> > the case with those relatively simple *URI* parsers that serve other use
> cases.
> >
> > Therefore, I'd suggest we instead say somewhere in Section 3 that "URI
> parsers SHOULD treat a
> > zone identifier as case-sensitive and preserve the letter case of a zone
> identifier when
> > it is normalized as part of a URI or mapped into a numeric zone index."
> > This way it'd be okay if browser people decide it's unreasonably hard to
> > follow this specific requirement, and it would benefit the users of
> other conforming
> > implementations by ensuring that everything goes just as expected.
> >
> > Regards,
> > Shang
> >
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------
>