[art] Defining a common fallback mechanism for unhandled URI schemes

"Soni L." <fakedme+art@gmail.com> Sat, 18 February 2023 09:57 UTC

Return-Path: <fakedme+art@gmail.com>
X-Original-To: art@ietfa.amsl.com
Delivered-To: art@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D8F53C14CE5D for <art@ietfa.amsl.com>; Sat, 18 Feb 2023 01:57:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.098
X-Spam-Level:
X-Spam-Status: No, score=-7.098 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, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, 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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jDB_7ZQHnz4p for <art@ietfa.amsl.com>; Sat, 18 Feb 2023 01:57:40 -0800 (PST)
Received: from mail-oo1-xc34.google.com (mail-oo1-xc34.google.com [IPv6:2607:f8b0:4864:20::c34]) (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 91CF7C14CE4C for <art@ietf.org>; Sat, 18 Feb 2023 01:57:40 -0800 (PST)
Received: by mail-oo1-xc34.google.com with SMTP id r12-20020a4ad4cc000000b0051ff0b173ccso16572oos.8 for <art@ietf.org>; Sat, 18 Feb 2023 01:57:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:sender:from:to:cc:subject :date:message-id:reply-to; bh=8n7YsbhNnikekB0o6CK3MEkLxrQMgnZAwsgw/MfYuQg=; b=dp31HGyBw7azGTfBv0Q3S6v833UblSe7Kwgb1VAnMpqDiLu36JpeQdfint7g/Y5jId 7KPUZSCl7MslHUYxMOxoajmpMeq8k1MgWvNvltsjam70Y5WQsibkAVpmsWsoYtjVvhrE mQrsfZR+hmfWRAejq9i9hGqtdR39/GWIIXyxWBBZIKdRGLpMWG9QnOQJmLsbhwDOmvTW uH/59h0wxp8Gl3veHgKwyIz76+veIxVZgmZFagiuZg5lTjrsCDGorJmIsiJ4cF83Zg82 p/zGVQodOx8nFV3VyaFOpOf4Gpgs+ZRYCVT5K9pgQ7nYdiUJTiKg2EuSk1EuhSYH1fx3 UReA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8n7YsbhNnikekB0o6CK3MEkLxrQMgnZAwsgw/MfYuQg=; b=cdv4r5Sf9gq3A+1JOf1aLzzKujpz5rZ27gnylErYEGZ0ARGM+0cQDXJTJMlw2ApNNr ELzPGDERheVSuo8MI2uBDVREsEhtdKAbMfpOK2OynDc9PfWdBNvK0ZbUTR/h39BnnrBA dp4bFOIswABXnO4P7b8d1kY9OIyYS0ccJt9cC1i4+pzmfhwszdj9r5pfwysoufBqOtLv FGY1hZc2X2e5TFGR04MibVgY24JTQIslkYk6fOI7ObOoTt6LNkGvB8ZQSb4cu/q7l2/t n3xyvABmXbIsFUEPm7VxaQkDkbrgw43iJKenljWBshKFIuskjJwyiKoT9ICDourS0/kC txAg==
X-Gm-Message-State: AO0yUKWw4OnfPPcouC5j1BVxJ3PRwGOt+W9HaZgItDiD2iIqevdlE2Pz zfduIfOwr95gWsSLm+W70sxXxOdudRo=
X-Google-Smtp-Source: AK7set96D5CBXCtbQ2qHGIJyACoTGcxr6co9SahamRJmIU0nTbsWeZZrTwm0CgzNoNdjjqroINtQow==
X-Received: by 2002:a05:6820:627:b0:4a3:fbd7:c32a with SMTP id e39-20020a056820062700b004a3fbd7c32amr4403264oow.2.1676714259550; Sat, 18 Feb 2023 01:57:39 -0800 (PST)
Received: from ?IPV6:2804:431:cfcc:774::536f:6e69? ([2804:431:cfcc:774::536f:6e69]) by smtp.googlemail.com with ESMTPSA id e13-20020a4ae0cd000000b0051ac0f54447sm1655160oot.33.2023.02.18.01.57.38 for <art@ietf.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 18 Feb 2023 01:57:39 -0800 (PST)
Sender: "Soni L." <fakedme@gmail.com>
Message-ID: <416e05f5-72f5-4994-eb53-8a85c03cd5ed@gmail.com>
Date: Sat, 18 Feb 2023 06:57:37 -0300
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.0
Content-Language: en-US
To: art@ietf.org
From: "Soni L." <fakedme+art@gmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/art/F-FKG0qUA4MyJsv404R9qegbjN8>
Subject: [art] Defining a common fallback mechanism for unhandled URI schemes
X-BeenThere: art@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Applications and Real-Time Area Discussion <art.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/art>, <mailto:art-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/art/>
List-Post: <mailto:art@ietf.org>
List-Help: <mailto:art-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/art>, <mailto:art-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 18 Feb 2023 09:57:44 -0000

As an alternative to making web+ an automatic fallback (as in the other 
thread), simply extend the URI scheme registry to contain an additional 
tag: a parent scheme.

The parent scheme is invoked through an 
/.well-known/protocol-handler?target=[percent-encoded unhandled scheme 
URI] URI. Only parent schemes which support this well-known URI can be 
used, ofc.

For example, the web+ap protocol could be (re-)registered with an https 
fallback. As such, if the user doesn't have a web+ap app installed, the 
OS would redirect, e.g. web+ap://fedi.example/@Foo towards 
https://fedi.example/.well-known/protocol-handler?target=web%2Bap%3A%2F%2Ffedi.example%2F%40Foo

The URI scheme registry would have to support exporting the list of 
fallbacks, and OSes would have to add handling for them (and keep that 
up-to-date), but it'd at least make them far easier to register and use. 
Note the fallback is not to any given website, and it should not carry 
username/password over (since the username/password for the protocol may 
differ from how the fallback scheme interprets them, or may not be 
treated as an username/password combo by the protocol at all, while the 
fallback scheme does).

Thoughts?