Re: Draft v1 Update for Resumable Uploads

Eric J Bowman <mellowmutt@zoho.com> Mon, 20 June 2022 08:40 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 B1C5FC159490 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 20 Jun 2022 01:40:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.76
X-Spam-Level:
X-Spam-Status: No, score=-7.76 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.25, HTML_MESSAGE=0.001, 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] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); domainkeys=pass (768-bit key) header.from=mellowmutt@zoho.com header.d=zoho.com; dkim=pass (1024-bit key) header.d=zoho.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 i3RprG2MJ1by for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 20 Jun 2022 01:40:52 -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 E33DDC14CF18 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 20 Jun 2022 01:40:51 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1o3Cuy-0003qg-KR for ietf-http-wg-dist@listhub.w3.org; Mon, 20 Jun 2022 08:37:56 +0000
Resent-Date: Mon, 20 Jun 2022 08:37:56 +0000
Resent-Message-Id: <E1o3Cuy-0003qg-KR@lyra.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <mellowmutt@zoho.com>) id 1o3Cux-0003pn-5f for ietf-http-wg@listhub.w3.org; Mon, 20 Jun 2022 08:37:55 +0000
Received: from sender4-pp-o91.zoho.com ([136.143.188.91]) by mimas.w3.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <mellowmutt@zoho.com>) id 1o3Cuw-001GcK-Fj for ietf-http-wg@w3.org; Mon, 20 Jun 2022 08:37:54 +0000
ARC-Seal: i=1; a=rsa-sha256; t=1655714260; cv=none; d=zohomail.com; s=zohoarc; b=XzZQWcIOI5lt6Qr6UDAVeSxP4ZiJnYsVfMukEilyWY/JI1q/9Dnq6Svzmlc1A5ZBJIv67Rkuc5lZbI1EeqtHkkDhWPttowWpH4/QBvODxsopTubMwSjCr1a4Pp/VGtY2nddSwPybwckbu+JBSEZjwDuDRp1NuJCpAnwlz/jYycw=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1655714260; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=3rf1qB9maqqHF64NHUGJHWfWsGHw7+nBdzHA784MrV8=; b=nxuteAfzqWbviMZbzhJUFcV+LWgHVnTTQyEkfMwfBDLkW8kgOgF6pHk5xUF/Z1oL/eVbjIg68CDk7UYd6P1HEGvCq9iULiem8FUZVdI8UcXJXsP+RW75fSZfEPurtbjL97h5sqGYZbiuIrXDhnUna1yIQCb4e3FGfU/ckE0GCZ4=
ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=mellowmutt@zoho.com; dmarc=pass header.from=<mellowmutt@zoho.com>
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=date:from:to:cc:message-id:in-reply-to:references:subject:mime-version:content-type:user-agent; b=ewuoWCAhBQZtcA50+Z9nOEbCHQt42PbBd0PlRw6wxWx/YMG7nmyI/LYL3aJ7Mhr3+SROw+XXlRm5 JjqWw9+l3DdHeEqfJeV6kbW00lfHu4uvFvn44Cwn+IcT6ItIAAf1
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1655714260; s=zm2022; d=zoho.com; i=mellowmutt@zoho.com; h=Date:Date:From:From:To:To:Cc:Cc:Message-Id:Message-Id:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Feedback-ID:Reply-To; bh=3rf1qB9maqqHF64NHUGJHWfWsGHw7+nBdzHA784MrV8=; b=Y4MO17o6ByoNmuQqrc4mqSOedPTeDbzaBd7R4qLS1lgBgZJklgbMs7wBFhqnPitR SPpXxWFv30w06ReppgAVRs+6oaALUVZZIbmmWxJiC63l2Y5n80tCFNMKutyZqkjSYcN xDVeLjC7QI9H9HZNgl80BDKhVad5NfCTeuS2feV0=
Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1655714258508375.55205621323296; Mon, 20 Jun 2022 01:37:38 -0700 (PDT)
Received: from [65.117.211.248] by mail.zoho.com with HTTP;Mon, 20 Jun 2022 01:37:38 -0700 (PDT)
Date: Mon, 20 Jun 2022 01:37:38 -0700
From: Eric J Bowman <mellowmutt@zoho.com>
To: Julian Reschke <julian.reschke@gmx.de>
Cc: ietf-http-wg <ietf-http-wg@w3.org>
Message-Id: <18180429e2e.11cd8251542567.3059167639796579939@zoho.com>
In-Reply-To: <8458ef7d-8858-98a6-08c7-c6a8b54eed35@gmx.de>
References: <BED5A5BC-3F7F-47E2-815E-DC0483328DFD@apple.com> <Yq67WGkb0LtJIAP9@xps13> <D149DCFE-A5C9-418D-80B4-3B5F138AA497@apple.com> <1817b8ce1c8.12200c57b32105.652822867537979220@zoho.com> <AB2CA3AA-FB53-4B3B-BC96-A87C175D19EE@apple.com> <1817e85940f.12286c1b038392.8521566759651991951@zoho.com> <ba538274-790a-b902-ac48-e99fc982bc3a@gmx.de> <1817fb7a714.f44d90b041228.231509017811561647@zoho.com> <8458ef7d-8858-98a6-08c7-c6a8b54eed35@gmx.de>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_104244_1306555486.1655714258478"
Importance: Medium
User-Agent: Zoho Mail
X-Mailer: Zoho Mail
Feedback-ID: rr08011227b76c1b82d5a1b3491a38024300007a266274cacba6b8d8fff80b2e90ec26e7b2d9279f8a3fff44:zu080112277d9a8349e80065cddc8973170000d7afd1394072eddb1ce50302d1d96b7ed29b0c3df300d04bc3:rf08011232e5899fc708b4f4fb423494a500007afa051d2848ce8005d505721360c76c7d1bdd85439fa24b599d795018bc1504eda222a1:ZohoMail
Received-SPF: pass client-ip=136.143.188.91; envelope-from=mellowmutt@zoho.com; helo=sender4-pp-o91.zoho.com
X-W3C-Hub-DKIM-Status: validation passed: (address=mellowmutt@zoho.com domain=zoho.com), signature is good
X-W3C-Hub-DKIM-Status: validation passed: (address=mellowmutt@zoho.com domain=mellowmutt@zoho.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-4.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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1o3Cuw-001GcK-Fj c6e06dfdb113ac26e019ed6ec6eff2ae
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Draft v1 Update for Resumable Uploads
Archived-At: <https://www.w3.org/mid/18180429e2e.11cd8251542567.3059167639796579939@zoho.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40188
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>

>
>> 
>> Why I suggested FTP. But accepting what you said, wouldn't you also have 
>> to enforce PATCH = append to use application/octet-stream? 
 >>
>

>
> I think it would be clearer to use a new type.
 >



Exactly! 



From my ongoing project since the aughties (still don't care to share the code), an HTTP API for DARCS... a DARCS patch file may contain one or both of filesystem directives and deltas. Crying out for a polyglot format with multiple media types to define processing.



What I have now, as informed by this thread...



Consider a DARCS patch file consisting of fileops, text deltas (metadata) and, in some or all cases, a BLOB delta.



PUT text/vnd.darcs OR multipart/vnd.darcs

Creates a text-based patch file which may annotate a blob.

OR creates a multipart patch file containing partial blob...

OR filter instructions for a blob.



PATCH {target URI} text/vnd.darcs OR text/vnd.darcs-invert

Applies or reverts only all text deltas in the patch file.



PATCH {target URI} application/vnd.darcs OR application/vnd.darcs-invert

Executes or reverts only all fileops in the patch file.

I'm 415 on the inverse and in no hurry to implement.



PATCH {target URI} multipart/vnd.darcs OR multipart/vnd.darcs-invert

Applies or reverts only all deltas in the patch file, text and/or blob.

I'm 415 on the inverse, but it's top priority to implement. Undo a blob filter.



Yes, this means applying a patch file with fileops and deltas, requires two operations. Who cares. I'm more interested in data integrity than anarchically scaling PATCH requests.



I am violating the wording, if not the spirit, of RFC 5789 so I'm going to have some things to say about updating PATCH to allow what I just described... furthermore, what if I want to link to my patch file instead of enclosing it as the request entity?



Bound to be fresh if it's resident on the origin server, no? Come to think of it, the entity body could list additional target URIs... apply googly-eye filter to all kitty pics. Haha, lolz, now revert on all non-Hitler kitties.



-Eric