Re: Byte range PATCH

Julian Reschke <julian.reschke@gmx.de> Thu, 04 August 2022 07:00 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CB1C2C15C525 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 4 Aug 2022 00:00:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.661
X-Spam-Level:
X-Spam-Status: No, score=-2.661 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.248, MAILING_LIST_MULTI=-1, NICE_REPLY_A=-0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=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 (1024-bit key) header.d=gmx.net
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 f3_zyj9sTSVF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 4 Aug 2022 00:00:43 -0700 (PDT)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9EB19C15C517 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 4 Aug 2022 00:00:43 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.94.2) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1oJUnb-001KOG-VT for ietf-http-wg-dist@listhub.w3.org; Thu, 04 Aug 2022 06:57:39 +0000
Resent-Date: Thu, 04 Aug 2022 06:57:39 +0000
Resent-Message-Id: <E1oJUnb-001KOG-VT@lyra.w3.org>
Received: from bart.w3.org ([193.51.208.80]) by lyra.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <julian.reschke@gmx.de>) id 1oJUnW-001KNH-RM for ietf-http-wg@listhub.w3.org; Thu, 04 Aug 2022 06:57:33 +0000
Received: from mout.gmx.net ([212.227.15.18]) by bart.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <julian.reschke@gmx.de>) id 1oJUnS-00114a-G4 for ietf-http-wg@w3.org; Thu, 04 Aug 2022 06:57:32 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1659596219; bh=wqtQDdlWUd1QEehEqZ6c6VAi7WTb3RT/39ZIMiJ9cV8=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=Wad/AXIeJJi34+IF1LI/DjqTH6X4OyZxhyWw2Wn5sW/0PXgMzMLhGsHAK0PdxxeGl e88q6vBgclWdb3sd+TIZwDwuc95t2EJKTGV16kEuMd/y1W619oKY7lAKdph6H6QXYP zXzdxDM/k/lw5bwz50YLLz2DNywu9TxFxLhN3BZ0=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.178.62] ([91.61.62.97]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MSc1L-1nqVfP3s2j-00SuFi for <ietf-http-wg@w3.org>; Thu, 04 Aug 2022 08:56:58 +0200
Message-ID: <ece467cb-b2d4-2134-f4ae-6183c13daca5@gmx.de>
Date: Thu, 04 Aug 2022 08:56:53 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0
To: ietf-http-wg@w3.org
References: <E511F4BD-B422-46DA-8409-EBBD684098A6@bzfx.net> <41c96787-7330-e9e0-da59-68c6dd197c58@gmx.de> <98341B31-B3A9-46C9-B755-8265CC478664@bzfx.net>
From: Julian Reschke <julian.reschke@gmx.de>
In-Reply-To: <98341B31-B3A9-46C9-B755-8265CC478664@bzfx.net>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:d7dlEf2RddaUd3835XJh3paPv3W417vApk9+5unxpm/LIYdBh9j nRYnHqo7ipKZEZPveS2g8Nv6oSJOChXuuL6DSnHFxU3N9G6cCgqCVFc9ok69+AyJRD8fVkJ RatEn3xdJasG8tP6YA76fCpNDJCFsqOi2dTZQWW8r2XeWEls1qizODFs7ZoWZuvODVbAHt+ 7xLAZkeiL29ni9aHcA7EA==
X-UI-Out-Filterresults: notjunk:1;V03:K0:AZoEhVm1r8E=:ABTd1NIqRU6+L3iNcetOIU nLkCq6YFsMlnb8DZunqWtIb47xcPFvUh28r6r4Bzx99P/rPHXOAoovfsN4EO/BH6fvIAu7xO8 r8fXs+2VRCj4Kp929ewwu1xo1etXSN1y1X5xRlChjomuguZZ38ZVJvTIvRaQdU6U3ImehiS34 ocjIKoeolz2CPECDSznsYy365w8PUHEDj+Hdehbv5z8oSXnnPd9ZjV6GBQMQ5VV769h0Vv2Qo w15sKCKaLrlVqGm4WxXrnDCgmteddBPetf/VpbB2EBWCV0dmPaaf3NbGhcVhiNOI6t4kYqAln yJJaKLO1hWeO2FgwqRirSgwOO50CdjV0LGn5xmLKIVI/kOyuBEtWVJP5IF7SXAoG04NigKI2B B6dteeSCbuiT8zynCSGYg1iGZ/LFXCC40u5MTGczn8Juoc2wmvZCgO5ORziKXLIPzQbNqxpQs T5gb/lENL1lK7viRuJlC8aSQ7lBt4UUscZnGjLhYphBFdhcT9GbGwq2x+2VHq/kznUfk7eE8+ i1vFAYMSvOmwGn30ylje9wM2/W/ZFXFBnFXcxvknidPtOsJixBK46+m7mcgU6eWdQQJpTAGbe Okk97G67Of/eJQ2Dy6vCiKctUnlnyAlTdm7JJXMmCZBGb41uN4Q91oYvH6thBEeYgDN+f57qz r9WAFf9i3weUmw2ui5n/Wv2IQdBAHlhd0FlPzhrEEKFBSgrOykIFCe6MLw/2/4lR4iohQminV fmGY3e8dLTnBlBO3rYiuMFbfx/dm67vMlj4+w05EdYl11BqE6CL2Dbw8H/GSRTMSS4gzDmamV gB30K+EMvVNlgtFB5yW/YqbVovIOuDTCm7djz3OlkzUMm0i5smCcrI+uotW3GKy+CR/qnLnc9 /6btAel7A1OA9m5FHc78iMy/pwpCy/QpDw+T5R477IGDnhfUzmq628khEFUlGdJTaPp0q7eeb ERDJ3Lx8jjpwTA4HjIIWY84Tn5RnNTPJCwC86LNphfxWp+5pIQWX85kl84hLFCoMWVsH97iUn tus9jFecp4Jd/GM0okYMsYcusERwYXkSVEdA42Amdrr/rJWFh/mmRfyd4XuZuc/7NJ/eYY8Dz blCrzkTWXBQ01NjpphfwcEb+WejRWcKIiPvRPwpdH82fy9ysJxqb7DrHw==
Received-SPF: pass client-ip=212.227.15.18; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-DKIM-Status: validation passed: (address=julian.reschke@gmx.de domain=gmx.net), signature is good
X-W3C-Hub-Spam-Status: No, score=-5.6
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: bart.w3.org 1oJUnS-00114a-G4 1b81389924d4d843147482298c9d4c00
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Byte range PATCH
Archived-At: <https://www.w3.org/mid/ece467cb-b2d4-2134-f4ae-6183c13daca5@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40303
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Am 03.08.2022 um 22:36 schrieb Austin William Wright:
> ...
> Hi Julian,
>
> I don’t have terribly strong opinions about what the format is, but this is what I thought was obvious based on a few motivations:
>
> 1. It re-uses an existing parser (it’s an off-the-shelf HTTP-message but skipping the "start-line CRLF” beginning, and is trivially parsable with a state machine or regular expression [1]).
> ...

That parser might be *present* everywhere, but not accessible. For
instance, a Java servlet engine happily processes HTTP/1.1 messages, but
doesn't provide an API to use that parser directly.

> 2. It allows segments to express HTTP semantics; for example, creating a resource relies on attaching a Content-Type field. You might even attach a Digest field indicating the expected hash of the final resource.

That should be on the request itself, no?

> 3. It allows for some future extensions (if you omit the “Content-Range” field, you can use a different one to specify the target range).
>
> Would a binary format be able to accomplish this? I know there’s been some work on a binary HTTP message framing but I’m not up-to-date on this.

<https://datatracker.ietf.org/doc/draft-ietf-httpbis-binary-message/>

> [1] The regular expression for matching the fields a message/byterange document in draft-wright-http-patch-byterange-00 is, excluding obs- productions, is exactly:
>
> /^([!\x23-'\x2a\x2b\x2d\x2e0-9A-Z\x5e-z\x7c~]+:[\t ]*(?:[!-~](?:[\t -~]+[!-~])?)*[\t ]*\r\n)*\r\n/

Consider me sceptic. But I would need to dig in deeper to actually
check. It would be bad to have a format that looks like HTTP/1.1 but
then actually is slightly different.

Best regards, Julian