Re: Draft v1 Update for Resumable Uploads

Guoye Zhang <guoye_zhang@apple.com> Mon, 20 June 2022 05:25 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 2E9D3C14F739 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 19 Jun 2022 22:25:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.506
X-Spam-Level:
X-Spam-Status: No, score=-3.506 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.745, 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_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 (2048-bit key) header.d=apple.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 RhPcTmvhzi1C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 19 Jun 2022 22:25:25 -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 40102C14F724 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 19 Jun 2022 22:25:24 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1o39rp-0000ts-DO for ietf-http-wg-dist@listhub.w3.org; Mon, 20 Jun 2022 05:22:29 +0000
Resent-Date: Mon, 20 Jun 2022 05:22:29 +0000
Resent-Message-Id: <E1o39rp-0000ts-DO@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 <guoye_zhang@apple.com>) id 1o39ro-0000sy-7b for ietf-http-wg@listhub.w3.org; Mon, 20 Jun 2022 05:22:28 +0000
Received: from ma1-aaemail-dr-lapp03.apple.com ([17.171.2.72]) by mimas.w3.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <guoye_zhang@apple.com>) id 1o39rn-0019qI-Mx for ietf-http-wg@w3.org; Mon, 20 Jun 2022 05:22:27 +0000
Received: from pps.filterd (ma1-aaemail-dr-lapp03.apple.com [127.0.0.1]) by ma1-aaemail-dr-lapp03.apple.com (8.16.0.42/8.16.0.42) with SMTP id 25K5HGr5032244; Sun, 19 Jun 2022 22:22:09 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=from : message-id : content-type : mime-version : subject : date : in-reply-to : cc : to : references; s=20180706; bh=UuAwsJAEud/LfR20h2NZVnCnXFWF0lgt3dBrx8JldUs=; b=nefV5a6Yitxgeb+kxbq6XChJYewzycic5K4wEX3RJA1UkBdlArmSCwarJ3LfHe8j3ST/ yRI4Iiep/QiReYlq2Mnadyf+3nlF3Zx0Ro9gQFKXlC1AK5SpbrVJ8dbNfmYjyXZsvN5f 2l6tXZ2BfbpV6dLg34u5ymqLyngwOYssmRFU6kXsFzjhaP6SoPoT8sA6/tnA+KyY/2CC mSxZ2/txS/cECe593FSgO56LguYFDdMlgvyJftQ4um/5lEeldSyyOXkaiRDjp5NdN56c isHo7Ddd3/0JuCWqd+ukkBsgWeAR9ak4/Jby5uaulSKX2fYP/dZt7dT3O6LHP2yFXYyf UQ==
Received: from rn-mailsvcp-mta-lapp01.rno.apple.com (rn-mailsvcp-mta-lapp01.rno.apple.com [10.225.203.149]) by ma1-aaemail-dr-lapp03.apple.com with ESMTP id 3gsdpvfu6q-5 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Sun, 19 Jun 2022 22:22:09 -0700
Received: from rn-mailsvcp-mmp-lapp03.rno.apple.com (rn-mailsvcp-mmp-lapp03.rno.apple.com [17.179.253.16]) by rn-mailsvcp-mta-lapp01.rno.apple.com (Oracle Communications Messaging Server 8.1.0.18.20220407 64bit (built Apr 7 2022)) with ESMTPS id <0RDR00Q98G8VGI60@rn-mailsvcp-mta-lapp01.rno.apple.com>; Sun, 19 Jun 2022 22:22:07 -0700 (PDT)
Received: from process_milters-daemon.rn-mailsvcp-mmp-lapp03.rno.apple.com by rn-mailsvcp-mmp-lapp03.rno.apple.com (Oracle Communications Messaging Server 8.1.0.18.20220407 64bit (built Apr 7 2022)) id <0RDR00Q00G5HK500@rn-mailsvcp-mmp-lapp03.rno.apple.com>; Sun, 19 Jun 2022 22:22:07 -0700 (PDT)
X-Va-A:
X-Va-T-CD: 6ce7dffd6ac8afd0af3f738963e57eda
X-Va-E-CD: 7fa589823f194c8498e6df6440bddbf3
X-Va-R-CD: 87a202228b76ae5a02807a21fbbc1b7c
X-Va-CD: 0
X-Va-ID: e11739eb-5146-4b86-a501-d22e84df4689
X-V-A:
X-V-T-CD: 6ce7dffd6ac8afd0af3f738963e57eda
X-V-E-CD: 7fa589823f194c8498e6df6440bddbf3
X-V-R-CD: 87a202228b76ae5a02807a21fbbc1b7c
X-V-CD: 0
X-V-ID: d47dbbf0-07ce-4281-879f-896dc857fbc2
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.517,18.0.883 definitions=2022-06-20_02:2022-06-17,2022-06-20 signatures=0
Received: from smtpclient.apple (unknown [17.11.14.78]) by rn-mailsvcp-mmp-lapp03.rno.apple.com (Oracle Communications Messaging Server 8.1.0.18.20220407 64bit (built Apr 7 2022)) with ESMTPSA id <0RDR00N3GG8V4700@rn-mailsvcp-mmp-lapp03.rno.apple.com>; Sun, 19 Jun 2022 22:22:07 -0700 (PDT)
From: Guoye Zhang <guoye_zhang@apple.com>
Message-id: <E0263B0F-3C3A-46F4-AA1D-7580C5ADE326@apple.com>
Content-type: multipart/alternative; boundary="Apple-Mail=_43AD19A6-1FB7-4605-8E46-4F90A03EAD51"
MIME-version: 1.0 (Mac OS X Mail 16.0 \(3724.0.1.1.31\))
Date: Sun, 19 Jun 2022 22:21:57 -0700
In-reply-to: <1817f68e1bc.b0da438140687.4010670760181959722@zoho.com>
Cc: Glenn Strauss <gs-lists-ietf-http-wg@gluelogic.com>, ietf-http-wg <ietf-http-wg@w3.org>
To: Eric J Bowman <mellowmutt@zoho.com>
References: <BED5A5BC-3F7F-47E2-815E-DC0483328DFD@apple.com> <Yq67WGkb0LtJIAP9@xps13> <D149DCFE-A5C9-418D-80B4-3B5F138AA497@apple.com> <Yq/mYB6FMLWn/7Oj@xps13> <1A0308B7-266A-4E12-BC6C-6D321BAFC3D3@apple.com> <1817f68e1bc.b0da438140687.4010670760181959722@zoho.com>
X-Mailer: Apple Mail (2.3724.0.1.1.31)
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.517,18.0.883 definitions=2022-06-20_02:2022-06-17,2022-06-20 signatures=0
Received-SPF: pass client-ip=17.171.2.72; envelope-from=guoye_zhang@apple.com; helo=ma1-aaemail-dr-lapp03.apple.com
X-W3C-Hub-DKIM-Status: validation passed: (address=guoye_zhang@apple.com domain=apple.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-7.0
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.571, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-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 1o39rn-0019qI-Mx 122a99c8dca7269dfec9046ee682b332
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Draft v1 Update for Resumable Uploads
Archived-At: <https://www.w3.org/mid/E0263B0F-3C3A-46F4-AA1D-7580C5ADE326@apple.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40182
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 Jun 19, 2022, at 21:39, Eric J Bowman <mellowmutt@zoho.com> wrote:
> 
> >
> >>
> >> PATCH with media-type application/tus-v2 may be a better solution 
> >> as you can define the body any way that you like, which may include a 
> >> custom (header) section in the body containing metadata such as the 
> >> information you can not currently describe in Content-Range.
> >>
> >
> >
> > Content-Range requires the range to include the end offset which is not 
> > always available. We need something like “Content-Range: 42-/*” ...
> > 
> 
> Suggest multipart/vnd.tus, pending registration of multipart/tus after receiving feedback, as a PATCH media type. Multipart explicitly allows "42-/*" as a boundary, however you want to define it within your media type. No custom headers needed. If, of course, you insist on not just using FTP or WebDAV. ;)

Using multipart is an interesting idea. We dismissed it initially because we are just sending one part, and also the multipart handling requires HTTP/1 style field parsing and boundary-style delimitation which is usually a less traversed and less performant code path. We will look into it again and evaluate if it’s the best option available.

Guoye
> 
> -Eric
> 
>