Re: Byte range PATCH

Austin William Wright <aaa@bzfx.net> Wed, 03 August 2022 22:26 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 2B74EC1527B7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 3 Aug 2022 15:26:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.761
X-Spam-Level:
X-Spam-Status: No, score=-7.761 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.248, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H2=-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=bzfx.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 CGwKUCRJIzt6 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 3 Aug 2022 15:26:49 -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 54833C14F726 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 3 Aug 2022 15:26:49 -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 1oJMmb-000MRe-Kx for ietf-http-wg-dist@listhub.w3.org; Wed, 03 Aug 2022 22:24:05 +0000
Resent-Date: Wed, 03 Aug 2022 22:24:05 +0000
Resent-Message-Id: <E1oJMmb-000MRe-Kx@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 <aaa@bzfx.net>) id 1oJMma-000MQg-Tr for ietf-http-wg@listhub.w3.org; Wed, 03 Aug 2022 22:24:03 +0000
Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by titan.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from <aaa@bzfx.net>) id 1oJMmY-00Acrc-60 for ietf-http-wg@w3.org; Wed, 03 Aug 2022 22:24:03 +0000
Received: by mail-pl1-x636.google.com with SMTP id p8so17647553plq.13 for <ietf-http-wg@w3.org>; Wed, 03 Aug 2022 15:24:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bzfx.net; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=rjXpOyZbzpHkjmwMMUs7cStdv+Ye2aeK3e+/QCmjG/A=; b=U5c4NqRbOxCClfwhOI0gMtEZWGpaiA0eKs65cuW8E+ZmcgiVMuc960QlyOgvMHE3mG P09EhcJvZlE3IPecR7q1Z85a7woxhoeZ/DP7fqotPoXNGR/tDpGNQaRRMPh3dfC35xiz DcCFO30aRhmspFJlbW7WnItWq3nhJ65wtrHmg=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=rjXpOyZbzpHkjmwMMUs7cStdv+Ye2aeK3e+/QCmjG/A=; b=aZFIMBcfx7pUWWzCkJfWi2G3+5HBIlEEuijTwmUpRABudZD9vhFiUQCCn0M8oE6c0M T80uXmWcyW0vNvOMgCkzQjxum9Q6RKNeSUsDSY40DDMxOK/Gm0Yyq7O7em8EBHLxeDeP H59o4UR+kQcgdQ3iQoaYSeOY2Mm+5S0szLAdtAxTiee68yAW5KxHp6FNK0W1gGSTgNKX MhZDa4mRUpGtuKjZKhMxDCho5ZHUSwQBLOcM1i9nr4yXn4Z6sf52ThODHheVvzLyqhyh aeCbZiQ4xDcwUjocS+xRVtWYdJ5MndW565WCk0Sn6rZNvleAP221TyiEv/IAUE4gzEFJ kBlA==
X-Gm-Message-State: ACgBeo2TNliJnEOUmDiFCrjohUeJ49JTopanUuajIsq/uaKUH+ry9wXh wUWOQBJKPQ7N6BoI+FCMgZG2m4quLQdnoA==
X-Google-Smtp-Source: AA6agR5Wo9kDmrIGRSmFIZ8Pd5l9yH7jfpNBSlWNxQIPQuNiWfITJ/iR+Ekt1N8qXoMB2YTZLBuBSQ==
X-Received: by 2002:a17:90a:fb4b:b0:1f3:1cbb:8912 with SMTP id iq11-20020a17090afb4b00b001f31cbb8912mr7068860pjb.239.1659565430615; Wed, 03 Aug 2022 15:23:50 -0700 (PDT)
Received: from smtpclient.apple (71-223-183-211.phnx.qwest.net. [71.223.183.211]) by smtp.gmail.com with ESMTPSA id z125-20020a623383000000b0052d4f2e2f6asm8030423pfz.119.2022.08.03.15.23.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Aug 2022 15:23:50 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\))
From: Austin William Wright <aaa@bzfx.net>
In-Reply-To: <b9e046ac-4c0b-43b6-b291-8725b18de35a@beta.fastmail.com>
Date: Wed, 03 Aug 2022 15:23:48 -0700
Cc: ietf-http-wg@w3.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <4A878809-DDC3-4EBE-828E-99B4EE96147A@bzfx.net>
References: <E511F4BD-B422-46DA-8409-EBBD684098A6@bzfx.net> <41c96787-7330-e9e0-da59-68c6dd197c58@gmx.de> <98341B31-B3A9-46C9-B755-8265CC478664@bzfx.net> <b9e046ac-4c0b-43b6-b291-8725b18de35a@beta.fastmail.com>
To: Martin Thomson <mt@lowentropy.net>
X-Mailer: Apple Mail (2.3696.100.31)
Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=aaa@bzfx.net; helo=mail-pl1-x636.google.com
X-W3C-Hub-DKIM-Status: validation passed: (address=aaa@bzfx.net domain=bzfx.net), signature is good
X-W3C-Hub-Spam-Status: No, score=-6.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1oJMmY-00Acrc-60 84585fdfb857a76f64ceb77c2e348907
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Byte range PATCH
Archived-At: <https://www.w3.org/mid/4A878809-DDC3-4EBE-828E-99B4EE96147A@bzfx.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40298
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>


> On Aug 3, 2022, at 14:39, Martin Thomson <mt@lowentropy.net> wrote:
> 
> On Thu, Aug 4, 2022, at 06:36, Austin William Wright wrote:
>> 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).
> 
> When building for future extensions, consider whether you need a new extension point or whether an existing one is in fact better.  In this case, if you have no current need for extensions, that might continue, in which case you might be better off defining a new media type for your future use case.  See https://www.rfc-editor.org/rfc/rfc9170.html#name-version-negotiation and https://www.rfc-editor.org/rfc/rfc9170.html#name-fewer-extension-points (shameless self-promotion).


I agree, to the extent it's possible to extend the behavior, a new media type may still be ideal (it could be listed in Accept-Patch).

The fact that new behavior can be defined in the future is merely an observation: if there is no Content-Range field (or it's not well-formed), then the request is not meaningful.

In either case, there’s only one extension I can think of that would be meaningful: the ability to write an indefinite length at an offset. This would require a syntax like:

Content-Length: bytes 100-/*

… which is not currently well-formed (the "last-pos" is missing). However, maybe it should be. HTTP supports indefinite length responses (since HTTP/1.1), which can stream forever. Except this is not possible in partial content responses, and maybe it should be.

Thanks,

Austin.