Re: Byte range PATCH

Julian Reschke <julian.reschke@gmx.de> Sat, 06 August 2022 12:29 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 67BEAC14F727 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 6 Aug 2022 05:29:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.665
X-Spam-Level:
X-Spam-Status: No, score=-7.665 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_DNSWL_HI=-5, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] 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 s3bLIpuCkmDF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 6 Aug 2022 05:29:11 -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 5B51BC14F724 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat, 6 Aug 2022 05:29:10 -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 1oKIsm-008I7b-6w for ietf-http-wg-dist@listhub.w3.org; Sat, 06 Aug 2022 12:26:20 +0000
Resent-Date: Sat, 06 Aug 2022 12:26:20 +0000
Resent-Message-Id: <E1oKIsm-008I7b-6w@lyra.w3.org>
Received: from titan.w3.org ([128.30.52.76]) 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 1oKIsm-008I6d-6E for ietf-http-wg@listhub.w3.org; Sat, 06 Aug 2022 12:26:19 +0000
Received: from mout.gmx.net ([212.227.15.19]) by titan.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 1oKIsj-00BlrI-JJ for ietf-http-wg@w3.org; Sat, 06 Aug 2022 12:26:18 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1659788765; bh=XH73scszX1X26VzUvJDoEb/V574DyGPy8iPveCuJFhE=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=YgzCaz7ttUiU7JyBNyUMUvc+TpS/6wQUVEcz0GJznOsCvxXoCU0MW6dIkurFZeR2v 830ZuqApqDe6Xu83yMMVjL5jQF2ABSA2CSAM2fF7ojhLALIeYonLEA9mvzQqCgPf6r 0LoCOTULfxyor/YWfe4EIsc9tSxCtx07ZVe3T50w=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.178.20] ([84.171.159.190]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N0FxV-1nWZy73rs7-00xOM4; Sat, 06 Aug 2022 14:26:05 +0200
Message-ID: <97a4f8fd-b255-e7dc-6283-acce483cf0d9@gmx.de>
Date: Sat, 06 Aug 2022 14:25:58 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0
To: Austin William Wright <aaa@bzfx.net>
Cc: 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> <ece467cb-b2d4-2134-f4ae-6183c13daca5@gmx.de> <6D3FBD73-EB55-4BC3-9874-F2FF154A6A7A@bzfx.net>
From: Julian Reschke <julian.reschke@gmx.de>
In-Reply-To: <6D3FBD73-EB55-4BC3-9874-F2FF154A6A7A@bzfx.net>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:MoeItfSQYHf6F3gC4H7iAOgdnYZfCn1+ZFGAXWh38GHJ8/c+S3f R+WMUh0rKDrq0TvYun/Uu/qx6cpOdgJ/8hvAXtLB74vx3oNGN25hJA7dO9Ajqi/7nofh7rt R4XV8S+1hD++ywFLPwQ52dJmWu0vwePk3aej/EOlu+1/K3Yk4czk2wn/3FHJO7Ez5Edw9dI vf+qVHuZ0mxhECVcwWeLg==
X-UI-Out-Filterresults: notjunk:1;V03:K0:zzE/5xPF1Is=:hhbaifDjgTlzX673qzr8FS WHFm8eXH+0VB6tSunLYGoZtt3nUo5VRklK0Y3RI0f12SgCqnBdsFEJhqRLjXhIX7528pbfAaz z3XE5MBYcobHauSHmvTiAqBERHgFDamxUbfPIYOU+2GSMeP+l/FVSmRpbWw3TCJZOlM4k/DlC qkvYjxq5PBWIVIZJw5JetshACQA/93U8CTnfRsoS0hRqT1Bf3xmEYqcAuggOuIS4Y8p7u/58k HvjyqoeDRTaxBw6nhmspbxLmVUwjIL2yk99S3o9bJTN+7aJmtt8ekmmxYp+j2CAXxjn26I/kz 0TP60PuK029WILdi1qh2KSHYdaep8ce4skOiBy7O7zcmrZBqKQX1HVEtX2jJ7IlkAsJ87uoi8 Q2InIvpMukaEiKBYlE9tjipEbtr2F9NaByynAiT+Iv52jgjPNNekxxf3E7yPwseC2vCC5cSq2 Agy6SDoPlnviCtyKfoxf/ATv6McfcRYKSRk7dn/XcY0a3/b7ihH7QrcWOqrIuxsN5B1XI9/fC +bXPiT2jZe57IpC59OHYWEbJyfLZA/q62C/gkaqUx6f42hTo995iYAyOU0Xla9CO2X5yqqUTT cm67Y7yL0LTtee+VQGLqSsXqzLe+UJI+wgYTjCY+ctpo2suuWwjlAvw26abPzKy5KvbA1X7oQ gmuFzbHH4ndra+iO49Nxb18l7fS+huP3+ocE7Stb/7nFX5jB/HWbn4xg2xWADnXmynZwmivu0 i4kiZNWl1/9/FZDc8YXJYX8Fpb9WFBUsWiHZt9dj2ZUHr4lLf2Vs1UQWS/IgG1kvyMTzDC2FF cMz8Z+60wHRoK+xM0TKNcMJ6KVWD/rZnpS554JMePwpT6jGAp44ONI1rbOzx4iLnlaa9zc07v aSg+QoAbPH3kL3npKqoeKmcBIjDuo6JW+AMuT9Z/htiPGsSsCaaVkRNp0992Ugp0b+LsUQQ5O K9jbEwES2dbxL7LyeZUEh8bMMCy57fgbz1FBTKqSgiNsjqOjjlrobYGa33rhUrBd8B8ehdtnk EwRR+vkRlDdfxMNh0DcAPWglEe25i73xvVU6/1/EMFc1qcUTFvSmAMlHFii7g1zQtFJqwUpUO m5EjfEXrIUDZQqYhO3A3KWalCPgtphrLS4FK8s4oB1OoWVq4WK8wrHvUA==
Received-SPF: pass client-ip=212.227.15.19; 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, T_SCC_BODY_TEXT_LINE=-0.01, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1oKIsj-00BlrI-JJ 24aa47dd8a7781fb243fea8d52a703fc
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Byte range PATCH
Archived-At: <https://www.w3.org/mid/97a4f8fd-b255-e7dc-6283-acce483cf0d9@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40310
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 06.08.2022 um 04:26 schrieb Austin William Wright:
>> On Aug 3, 2022, at 23:56, Julian Reschke <julian.reschke@gmx.de
>> <mailto:julian.reschke@gmx.de>> wrote:
>>
>> 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.
>
> This is indeed an unfortunate state of many Web app environments; but if
> you’re a client, then this format is trivial to generate (ASCII text
> prepended to a binary blob), and if you’re a server, then you likely
> already have access to parsers like multipart/form-data which should be
> similar at the very least.
> ...

"Similar" is not good enough. Existing parsers are likely to be tolerant
in parsing due to existing buggy clients, and if we reuse these parsers
the same problem will leak in here.

Best regards, Julian