[Uri-review] Re: [art] Re: Alternative representation of URIs in YANG
worley@ariadne.com Tue, 09 December 2025 02:55 UTC
Return-Path: <dale.worley@comcast.net>
X-Original-To: uri-review@mail2.ietf.org
Delivered-To: uri-review@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 21F0497C28EB for <uri-review@mail2.ietf.org>; Mon, 8 Dec 2025 18:55:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -1.881
X-Spam-Level:
X-Spam-Status: No, score=-1.881 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.017, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=comcastmailservice.net
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P5mvv8UfMDKZ for <uri-review@mail2.ietf.org>; Mon, 8 Dec 2025 18:55:02 -0800 (PST)
Received: from resqmta-h2p-567062.sys.comcast.net (resqmta-h2p-567062.sys.comcast.net [IPv6:2001:558:fd02:2446::a]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 90BC797C28E0 for <uri-review@ietf.org>; Mon, 8 Dec 2025 18:55:02 -0800 (PST)
Received: from resomta-h2p-555030.sys.comcast.net ([96.102.179.204]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits) (Client did not present a certificate) by resqmta-h2p-567062.sys.comcast.net with ESMTPS id SnQmv3nea9QaFSnsMvXTf8; Tue, 09 Dec 2025 02:54:54 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcastmailservice.net; s=20211018a; t=1765248894; bh=HwGjwHTRqSGyFP++uh6gf2TXzFkZRhCnfydHNhPyG2w=; h=Received:Received:Received:Received:From:To:Subject:Date: Message-ID:Xfinity-Spam-Result; b=jPJUTmLcOqgwWZFbMtHyqCkQXKG9jQKqBEJEHvJVIwwpN2Rn9n5oAIHm8XMInl6ZG fDiKZjyaHAdv9489LlAOuNEEmjC25ZpqOuaxPgV2Gtm+LKxiC5eizW65ihVU6KmskV QCXXavsKEhoa1F/KALU3chRKtsyBifo29OHjcpacV5dHlP2A9qrJIYoGADTjNudLHy yA2aw0Gy9v57FMgNRHYcMRFBp/eLr/SRvLqZUQrHfn1T35fi45ZjRmJGWV0kDydy0S u3avESCLCn09mlP7y+1I22aCjiufqbArm1/Si29xJbi3EhsQgHjbcftitnWW1pI/wK EpbeJni6CcS+g==
Received: from hobgoblin.ariadne.com ([IPv6:2601:197:580:b5c0::466f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits) (Client did not present a certificate) by resomta-h2p-555030.sys.comcast.net with ESMTPSA id SnsGvJlf9tu15SnsIv0dvk; Tue, 09 Dec 2025 02:54:52 +0000
Received: from hobgoblin.ariadne.com (localhost [127.0.0.1]) by hobgoblin.ariadne.com (8.16.1/8.16.1) with ESMTPS id 5B92smVX2562273 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 8 Dec 2025 21:54:48 -0500
Received: (from worley@localhost) by hobgoblin.ariadne.com (8.16.1/8.16.1/Submit) id 5B92ska22562270; Mon, 8 Dec 2025 21:54:46 -0500
X-Authentication-Warning: hobgoblin.ariadne.com: worley set sender to Dale.Worley@comcast.net using -f
From: worley@ariadne.com
To: Kent Watsen <kent+ietf@watsen.net>
In-Reply-To: <0100019aefc58578-6a227777-2a0e-42bc-bfbf-5ffbe7053110-000000@email.amazonses.com> (kent+ietf@watsen.net)
Sender: worley@ariadne.com
Date: Mon, 08 Dec 2025 21:54:46 -0500
Message-ID: <874iq0s6tl.fsf@hobgoblin.ariadne.com>
X-CMAE-Envelope: MS4xfPTciYNPjYeXeN/EkEa++vtOM8+GDYCrgzn3a/mO+7G2ZIrxgrO0y5okcFxYuEI7JFiQIRyERn358QnjD7ACjFuH/Lh9ruZM5bBmb2PLho3tgBq39OjK Vz7WW5sUrSJnQvXMwj3V1FQBQqkrMwU6FZf6qS+Pana650XhHim57HXoWI9mxESX/wRWFsaVKt7LJlrclS2fAyUxq3Ax3nU9OOPxTyx5h0z5tJdrkk3suwZU alkjenh0YFWglezDtcAAAWXmNdC4Zh6qvaEeiqQRw3PsDKGCRzh7EPsdtDaU9iFkrhYhvximiKvzCQGwtOVddq9CCulx18LpUx6+gQOx/cBjbh9lne3+NlVc 2EDKffRYaY1gFyXvwvTEEIzS9e+CiuuvE8rnS31g46zT/72A5YKr3NKP1cN+3rqIXcY+HzzM
Message-ID-Hash: B6NBSBUCQNZLA3WZJSN2FAI2PDS5FS46
X-Message-ID-Hash: B6NBSBUCQNZLA3WZJSN2FAI2PDS5FS46
X-MailFrom: dale.worley@comcast.net
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-uri-review.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: mjethanandani@gmail.com, ietfa@btconnect.com, art@ietf.org, uri@w3.org, uri-review@ietf.org, mt@lowentropy.net
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Uri-review] Re: [art] Re: Alternative representation of URIs in YANG
List-Id: Proposed URI Schemes <uri-review.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/uri-review/QH57CAnFvWx7mBevV53oDUlTKSk>
List-Archive: <https://mailarchive.ietf.org/arch/browse/uri-review>
List-Help: <mailto:uri-review-request@ietf.org?subject=help>
List-Owner: <mailto:uri-review-owner@ietf.org>
List-Post: <mailto:uri-review@ietf.org>
List-Subscribe: <mailto:uri-review-join@ietf.org>
List-Unsubscribe: <mailto:uri-review-leave@ietf.org>
Kent Watsen <kent+ietf@watsen.net> writes:
> True, the original intent was to be 1-1 with RFC 3986. But since this
> discussion has concluded that is not possible, we're now looking to
> see what structured format is possible, and then the text in the I-D
> will be updated to match.
But referring to my earlier message, I don't think the proposed module
has that problem. Maybe I've overlooked something in the discussion.
Or maybe I've overlooked that the module has "host" as being mandatory,
which for URIs it certainly isn't.
The overall syntax of (absolute) URIs is
URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
hier-part = "//" authority path-abempty
/ path-absolute
/ path-rootless
/ path-empty
so if you know the scheme, the authority (which may be empty), the path
(which may be path-abempty, path-absolute, path-rootless, or
path-empty), the query (which may be empty or absent), and the fragment
(which may be empty or missing), you know the URI.
Looking at all this a little more carefully, it seems that the module
needs to be adjusted:
- "userinfo" needs to be optional, because an *absent* userinfo is
different from an *empty* userinfo. (The latter has an "@".)
- ditto for "query"
- ditto for "fragment"
- "authority" needs to be optional within "uri"
With those fixes, it seems to me that the module matches RFC 3986. But
maybe I'm wrong and someone can give an example that proves it.
Dale
- [Uri-review] Re: [art] Re: Alternative representa… Martin J. Dürst
- [Uri-review] Re: [art] Re: Alternative representa… tom petch
- [Uri-review] Re: [art] Alternative representation… Kent Watsen
- [Uri-review] Re: [art] Alternative representation… Martin Thomson
- [Uri-review] Re: [art] Re: Alternative representa… Martin J. Dürst
- [Uri-review] Re: [art] Alternative representation… Kent Watsen
- [Uri-review] Re: [art] Alternative representation… Martin Thomson
- [Uri-review] Re: [art] Alternative representation… Kent Watsen
- [Uri-review] Re: [art] Alternative representation… Martin Thomson
- [Uri-review] Re: [art] Alternative representation… Kent Watsen
- [Uri-review] Re: [art] Alternative representation… Martin Thomson
- [Uri-review] Re: [art] Alternative representation… Mahesh Jethanandani
- [Uri-review] Re: [art] Alternative representation… Kent Watsen
- [Uri-review] Re: [art] Alternative representation… Tim Bray
- [Uri-review] Re: [art] Re: Re: Alternative repres… worley
- [Uri-review] Re: [art] Re: Alternative representa… Kent Watsen
- [Uri-review] Re: [art] Alternative representation… worley
- [Uri-review] Re: [art] Re: Alternative representa… worley
- [Uri-review] Re: [art] Re: Alternative representa… Kent Watsen
- [Uri-review] Re: [art] Re: Alternative representa… worley
- [Uri-review] Re: [art] Re: Alternative representa… worley
- [Uri-review] Re: [art] Re: Alternative representa… Martin Thomson
- [Uri-review] Re: [art] Re: Alternative representa… worley
- [Uri-review] Re: [art] Re: Alternative representa… Kent Watsen
- [Uri-review] Re: [art] Re: Alternative representa… Martin Thomson
- [Uri-review] Re: [art] Re: Alternative representa… Tim Bray
- [Uri-review] Re: [art] Re: Alternative representa… Mahesh Jethanandani
- [Uri-review] Re: [art] Re: Alternative representa… Martin Thomson
- [Uri-review] Re: [art] Re: Alternative representa… Henry S. Thompson
- [Uri-review] Re: [art] Alternative representation… Sampo Syreeni
- [Uri-review] Re: [art] Re: Alternative representa… Kent Watsen
- [Uri-review] Re: [art] Re: Alternative representa… Tim Bray
- [Uri-review] Re: [art] Re: Alternative representa… Mahesh Jethanandani
- [Uri-review] Re: [art] Re: Alternative representa… Mark Nottingham
- [Uri-review] Re: [art] Re: Re: Alternative repres… Orie
- [Uri-review] Re: [art] Re: Alternative representa… Mahesh Jethanandani
- [Uri-review] Re: [art] Re: Alternative representa… Kent Watsen
- [Uri-review] Re: [art] Re: Re: Alternative repres… Martin Thomson
- [Uri-review] Re: [art] Re: Alternative representa… Kent Watsen
- [Uri-review] Re: [art] Re: Alternative representa… Martin Thomson
- [Uri-review] Re: [art] Alternative representation… Kent Watsen