Re: Draft v1 Update for Resumable Uploads

Eric J Bowman <mellowmutt@zoho.com> Mon, 20 June 2022 10:53 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 CB092C157B32 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 20 Jun 2022 03:53:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.757
X-Spam-Level:
X-Spam-Status: No, score=-2.757 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_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 UeVUmlTG34Fm for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 20 Jun 2022 03:53:41 -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 38214C14CF02 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 20 Jun 2022 03:53:40 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1o3EzJ-0000m1-1j for ietf-http-wg-dist@listhub.w3.org; Mon, 20 Jun 2022 10:50:33 +0000
Resent-Date: Mon, 20 Jun 2022 10:50:33 +0000
Resent-Message-Id: <E1o3EzJ-0000m1-1j@lyra.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <mellowmutt@zoho.com>) id 1o3EzH-0000l6-K6 for ietf-http-wg@listhub.w3.org; Mon, 20 Jun 2022 10:50:31 +0000
Received: from sender4-pp-o91.zoho.com ([136.143.188.91]) by titan.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 1o3EzG-001FYS-Od for ietf-http-wg@w3.org; Mon, 20 Jun 2022 10:50:31 +0000
ARC-Seal: i=1; a=rsa-sha256; t=1655722214; cv=none; d=zohomail.com; s=zohoarc; b=RHA1emsmTAfSgDmQgshpsmZiSpqcMf3FaE1VqEQA+uGeIznqZR2dBgo49cXDbYKcpm2lgYg49Ocw3dlDBtqhuttAl518alKDmZySS8ERE9R15Efgkm7FqKavdLgOM6wHGlC+vIIWAI663SawIF3H22BdqJrNobzD9Bx1u50Leyw=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1655722214; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=Idw8lJjeI7R4tzcTdRzS829IV3SDpPedGrAw6Kd4ONQ=; b=oGtKSyCC4FA1lepwwIpXfTt3F+K16/cpQ0CBV1Aqce7orfyHI2t73m8k8p2totUA5VwovtTmlomYKLwFpdGyDjkMK5HfgTEAjHYroBXecnX5/6NBU3sHXRCma0z1VNkKsrIJWDh8IQ2Caw3AQJC1k3JOp17vVh5XbD3tm56Gxks=
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=HuG8FQ/VZYRFWFEcA7BivbnFePM3WVmbs2ip+4bHchYW8afZ37BRLUVHJKl3OkLX0q0mLAFGV7W/ PCYXK60NGgmDQLGL5AsMytBJedcWt6Nsg03AIpOEtE2VIV10N1aK
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1655722214; 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=Idw8lJjeI7R4tzcTdRzS829IV3SDpPedGrAw6Kd4ONQ=; b=Nl/cek+X3S+odj+AtuBX3qxrjVQVCEbPnCkKBqWB9OS+m01nE9tdVtduWqnzbUdD fG2cIO9vCwqQUeerpeFsSx1aT2uENMTKfLYA+5MdFe58I63iReu8zThajCCEzPT6RjE ftvAIT8XqGAQ0LGFM+ZdWkI8iHcrNYukAHZ7hTcM=
Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1655722213919920.2767977240602; Mon, 20 Jun 2022 03:50:13 -0700 (PDT)
Received: from [65.117.211.248] by mail.zoho.com with HTTP;Mon, 20 Jun 2022 03:50:13 -0700 (PDT)
Date: Mon, 20 Jun 2022 03:50:13 -0700
From: Eric J Bowman <mellowmutt@zoho.com>
To: Eric J Bowman <mellowmutt@zoho.com>
Cc: Julian Reschke <julian.reschke@gmx.de>, ietf-http-wg <ietf-http-wg@w3.org>
Message-Id: <18180bc0202.d0da975d44120.4063865856169841296@zoho.com>
In-Reply-To: <181808e7a44.aed3d7b643553.5952608326455145559@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> <E0263B0F-3C3A-46F4-AA1D-7580C5ADE326@apple.com> <d32488ea-05b3-e97f-3118-3845306faa6a@gmx.de> <181808e7a44.aed3d7b643553.5952608326455145559@zoho.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_108385_148721263.1655722213890"
Importance: Medium
User-Agent: Zoho Mail
X-Mailer: Zoho Mail
Feedback-ID: rr080112276afe9034c6e9711db87d36cb0000e8fd0fd26868e02bccf4ba72064d034c8a7668f3f1e645c9b0:zu08011227c7bff969983b25e5e766464300009fc0169a5a6216fd6b4b867bddfc9ff53ca93431b186b4329a:rf080112320a10eaa6a8c9cbe0ff5ccbf600008809ab13c34b5f8df0cac6a67a1106aec1146df7e9a228f1289c19ba7ff82821523f95bf: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: titan.w3.org 1o3EzG-001FYS-Od b165478b425050a39737759ff5ea5da1
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Draft v1 Update for Resumable Uploads
Archived-At: <https://www.w3.org/mid/18180bc0202.d0da975d44120.4063865856169841296@zoho.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40192
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>

>

> Ha, like I needed another hobby project from this thread!

> I get what you're saying, thx Julian. Section 3.8, Padding 

> and Truncation -- message/bhttp as a general-purpose 

> PATCH format for BLOBs.

>



So much for getting a good night's sleep, approaching 5am and I've been coding all night. This approach seems to solve Guoye's problem.



~however~



Integrating this into my httpd code, organically led me to add a 419 Conflict exit condition, as a security consideration to avoid a buffer overrun. Because undefined Content-Length, in a nutshell.



-Eric