Re: Draft v1 Update for Resumable Uploads

Eric J Bowman <mellowmutt@zoho.com> Sun, 19 June 2022 10:44 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 BD093C15AADA for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 19 Jun 2022 03:44:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.756
X-Spam-Level:
X-Spam-Status: No, score=-2.756 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_BLOCKED=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); 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 g_aG5-4R9VLa for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 19 Jun 2022 03:44:27 -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 EE98EC15AAD8 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 19 Jun 2022 03:44:26 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1o2sMf-0006NR-2A for ietf-http-wg-dist@listhub.w3.org; Sun, 19 Jun 2022 10:41:09 +0000
Resent-Date: Sun, 19 Jun 2022 10:41:09 +0000
Resent-Message-Id: <E1o2sMf-0006NR-2A@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 1o2sMd-0006MW-Is for ietf-http-wg@listhub.w3.org; Sun, 19 Jun 2022 10:41:07 +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 1o2sMc-000kSz-1s for ietf-http-wg@w3.org; Sun, 19 Jun 2022 10:41:07 +0000
ARC-Seal: i=1; a=rsa-sha256; t=1655635242; cv=none; d=zohomail.com; s=zohoarc; b=Z3JpNEH8aF+SrYIYJTSdx/vU9hFq4vnqXv0ifd4LtdQJHfT+MAEyIKzWTm3hwkJZd/iEhr4udqk0j/pMbrYeaS6Skfp6Y1XAbxLiG1p3wB3jksj4w1isu8tlAGilSzC/CLb8QVP106sDO/Lq6SWG+WW9Qgb10gyE9TLV0AITxOc=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1655635242; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=OEWquNxfkvjaANQ0TdLTDPMk9ldmbDqfH9j1IuqqrsI=; b=e7w65LmJFMOp3uHxzKDbGOUjvmw9SYwn5GRvYynKPxqL69/32pJSp9iRObAcee4MvhfB2pnI2xKn8NUQO5t2Df/Y1eXtz+gRQolBmDC5BNDEQLJYoqMmQ11gWEWvxEpBsiFje1n+immwk5H0CNYvMW9j51NVCN1p70UHEvCOmL8=
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=rLcjOIjuErcFiNtnlCRbFLrSVIr2BL49/Q6CTZUHxkDn21oR8npX9qHjW0hLlnJPLH5P6u+WdsnV OTuVRkp4AywLei7sXqsNDtAVx49d3n59C+QmvRKYVVoZj6DZ8vo7
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1655635242; 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=OEWquNxfkvjaANQ0TdLTDPMk9ldmbDqfH9j1IuqqrsI=; b=c9U7sSr1+kAkcp/3vWqJ1IMQ1r2rBRwQsSaEb7iUTlq/JEutUJ/Gm7NTZl+QlqbL FoaZJRp/bJGLG6+lxiCN1L6hOQ79u0tqlL30pOHv0s9NBfgb3HdoCLhTJBqOLHGPis8 QU/S3VE9Gb5ZbAJQayCc8eBskZhWabMS1tezXqi4=
Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1655635239406926.875840467191; Sun, 19 Jun 2022 03:40:39 -0700 (PDT)
Received: from [65.117.211.248] by mail.zoho.com with HTTP;Sun, 19 Jun 2022 03:40:39 -0700 (PDT)
Date: Sun, 19 Jun 2022 03:40:39 -0700
From: Eric J Bowman <mellowmutt@zoho.com>
To: "Guoye Zhang" <guoye_zhang@apple.com>
Cc: "gs-lists-ietf-http-wg" <gs-lists-ietf-http-wg@gluelogic.com>, "ietf-http-wg" <ietf-http-wg@w3.org>
Message-Id: <1817b8ce1c8.12200c57b32105.652822867537979220@zoho.com>
In-Reply-To: <D149DCFE-A5C9-418D-80B4-3B5F138AA497@apple.com>
References: <BED5A5BC-3F7F-47E2-815E-DC0483328DFD@apple.com> <Yq67WGkb0LtJIAP9@xps13> <D149DCFE-A5C9-418D-80B4-3B5F138AA497@apple.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_78719_1030436216.1655635239368"
Importance: Medium
User-Agent: Zoho Mail
X-Mailer: Zoho Mail
Feedback-ID: rr08011227ce736e3059bc4acbd7b4265d0000b7c21162bce4ef1394f9e9940cdb25b132eebb7fd03baca877:zu080112278a58305dcb2dc0a7477a423f00005b7e1a771ab136a320943469725b43bb997aeeaa57ad08c5cb:rf08011232e66044b9002458dea82a6d5200003fa5b41b3126b1fa6a0e9a55c8af6c1593bd6b0e8d2299c994ab96e39d40ef81f35deb75: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 1o2sMc-000kSz-1s fb9ab9abee8eba5d149461c0c950df78
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Draft v1 Update for Resumable Uploads
Archived-At: <https://www.w3.org/mid/1817b8ce1c8.12200c57b32105.652822867537979220@zoho.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40163
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>

>

> Apple has a Feedback Assistant app which allows customers to

> file bug reports and upload device diagnostics. These diagnostics

> are usually hundreds of megabytes in size, and if interrupted, we

> have to upload them again from the beginning. This has been 

> one of the most common complains we receive.

>







FTP is your friend. Well, SFTP/FTPS anyway. If you can't tighten the screw with a hammer, maybe try a screwdriver.



>

> From my reading of the PATCH standard, media type should be the

> type of the content that we are trying to modify.

>



RFC 5789 states:







"The PATCH method requests that a set of changes described in the request entity be applied to the resource identified by the Request-URI. The set of changes is represented in a format called a 'patch document' identified by a media type."



Suggest brushing up on "media type". You're modifying a resource, not a type of content. A text/html representation of a CSV diagnostic file may be generated for rendering in a browser. Probably best to patch the resource by sending a snippet of CSV, as patching the HTML *representation* may inadvertently break the CSS. Not to mention needs reverse-transformed before applying to the resource.



You just need a "patch document" with a media type defining it as CSV, maybe even with line numbers.


-Eric