[Uri-review] Re: [art] Alternative representation of URIs in YANG
Kent Watsen <kent+ietf@watsen.net> Fri, 05 December 2025 02:39 UTC
Return-Path: <0100019aec611c59-38479937-c3a9-42c6-ba7b-d336cf84d846-000000@amazonses.watsen.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 B0AEB95C20DC; Thu, 4 Dec 2025 18:39:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (1024-bit key) header.d=amazonses.com
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 Lk8RGY7I0ToK; Thu, 4 Dec 2025 18:39:39 -0800 (PST)
Received: from a8-33.smtp-out.amazonses.com (a8-33.smtp-out.amazonses.com [54.240.8.33]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 2236995C20D5; Thu, 4 Dec 2025 18:39:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1764902378; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:In-Reply-To:Cc:To:References:Feedback-ID; bh=Sn9JQmewIito8vbgJMjf8MUyUW9UoQ2jC5mtf+HRlgo=; b=a8UYY1vNGyyPPLEXuOiPoROUqMImcZoC2a4mplgH4iJECbS32u02/6JCNuU9EdKz RRXooTeC0cT5Xca3OvMkMD8cKtEg84DEGKbAu00cDjpB6j07RQOquEwsa3ZVmiIDKfm kqwnLNF9we5N15lMTtTqlxgFXAIj5TbRMeqfAiPw=
From: Kent Watsen <kent+ietf@watsen.net>
Message-ID: <0100019aec611c59-38479937-c3a9-42c6-ba7b-d336cf84d846-000000@email.amazonses.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_ECB2FDEA-5A2C-488C-9CF6-5468690354DA"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\))
Date: Fri, 05 Dec 2025 02:39:38 +0000
In-Reply-To: <57829c0f-b80c-419c-b93c-798a91b64e17@betaapp.fastmail.com>
To: Martin Thomson <mt@lowentropy.net>
References: <04751771-27b6-4894-81dc-82036aeea5d2@betaapp.fastmail.com> <0100019ab804a507-449eb08e-87a3-4afc-bb98-9b67827bf928-000000@email.amazonses.com> <05d03d11-f140-461e-8a68-0dd6f1bfe465@it.aoyama.ac.jp> <FRWPR07MB106228FC36F536D383AEEE6A5A2DDA@FRWPR07MB10622.eurprd07.prod.outlook.com> <331d1f14-8ae6-41b7-810d-a21c3a5a5041@it.aoyama.ac.jp> <0100019ae08ae5d4-27a4240b-c315-4363-b79c-2fb80a81eb9f-000000@email.amazonses.com> <8679986b-f7c5-4621-bd04-b970b90ce426@betaapp.fastmail.com> <0100019ae59947ac-edb18e77-10fb-4adf-8e18-da9fe0ee7a01-000000@email.amazonses.com> <fd64b5cb-a74f-4ba0-8469-7a84f127e518@betaapp.fastmail.com> <0100019ae9d410b7-65ca59e5-f278-43b4-a9d7-b269bf5dc61c-000000@email.amazonses.com> <8dd16b2f-81ca-4ce9-9e1e-fbca46f5e7e8@betaapp.fastmail.com> <42D314EB-FA59-46DD-9754-D732BDF92309@gmail.com> <0100019aebc629fc-457e7f9d-101d-4c36-b266-b2d3492ec20c-000000@email.amazonses.com> <57829c0f-b80c-419c-b93c-798a91b64e17@betaapp.fastmail.com>
X-Mailer: Apple Mail (2.3826.700.81)
Feedback-ID: ::1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
X-SES-Outgoing: 2025.12.05-54.240.8.33
Message-ID-Hash: F7KB3FZJEVH4TSJRYDZLM4JRAI2TZUFM
X-Message-ID-Hash: F7KB3FZJEVH4TSJRYDZLM4JRAI2TZUFM
X-MailFrom: 0100019aec611c59-38479937-c3a9-42c6-ba7b-d336cf84d846-000000@amazonses.watsen.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: Mahesh Jethanandani <mjethanandani@gmail.com>, tom petch <ietfa@btconnect.com>, "art@ietf.org" <art@ietf.org>, "uri@w3.org" <uri@w3.org>, "uri-review@ietf.org" <uri-review@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Uri-review] Re: [art] 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/GC4QFBGTITp_ZazzeHss0nVUDg8>
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>
> On Dec 4, 2025, at 7:08 PM, Martin Thomson <mt@lowentropy.net> wrote: > > A URL is a URI that is also a locator. That is, if you can resolve it, it will lead you to something. Yes, locators is our primary interest. We have zero interest in URNs. > Those are definitely more likely to use the same authority form that HTTP does, but there isn't a firm guarantee. Grrr > The only safe container for a URI generically is a sequence of bytes or characters (the difference between each is important in many cases, but not here). The same is generically true for URLs as well, though under certain narrower definitions it might be safe to carry them in other ways. See https://url.spec.whatwg.org/ for an example of one such narrow definition. However, that definition includes file: and blob: URLs, which are more complicated than you might like. Egads, I don't see an out yet. Context: - The must-have schemes are http: and https: - The nice-to-have schemes include file:, ftp:, scp:, and mailto: - Lesser nice-to-haves include: ws: wss: - No interest in the blob: scheme FWIW, in the YANG module, it is possible to make the "scheme" field be an enumeration. That is, the scheme can be locked down to any subset of the above. Is there a suitable name for some subset of the above? How about: constrained-url structured-url decomposed-url http-and-https-url any other suggestion, besides a sequence of bytes or characters ;) Kent
- [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