Re: [Jmap] I-D Action: draft-ietf-jmap-blob-11.txt

Bron Gondwana <brong@fastmailteam.com> Thu, 02 June 2022 04:05 UTC

Return-Path: <brong@fastmailteam.com>
X-Original-To: jmap@ietfa.amsl.com
Delivered-To: jmap@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6127BC157B47 for <jmap@ietfa.amsl.com>; Wed, 1 Jun 2022 21:05:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.106
X-Spam-Level:
X-Spam-Status: No, score=-7.106 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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_HI=-5, 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); dkim=pass (2048-bit key) header.d=fastmailteam.com header.b=2097K4S4; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=euGXLyoy
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 hD6soIxFkq2l for <jmap@ietfa.amsl.com>; Wed, 1 Jun 2022 21:05:08 -0700 (PDT)
Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 03DB0C14CF17 for <jmap@ietf.org>; Wed, 1 Jun 2022 21:05:07 -0700 (PDT)
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 1C0365C0197 for <jmap@ietf.org>; Thu, 2 Jun 2022 00:05:07 -0400 (EDT)
Received: from imap43 ([10.202.2.93]) by compute4.internal (MEProxy); Thu, 02 Jun 2022 00:05:07 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= fastmailteam.com; h=cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1654142707; x= 1654229107; bh=bg5NE2ARrew1GkkM2PSgIyIlufUejFYVkj7guCqMwt0=; b=2 097K4S4/VX4xHHgaw2n9xZ6GjuRzekT4jTPS2Rhs1WrBK2TTsZemM91XtjC7OGvl 6kyt8zL21eicNEfdxMZ9YeB4fN1msx+kWMOYr4tB6zTJBuiojzpGR+pZvcBbeCBG jno5jbtisUXiwl+PELzRU0gdxFh8Jq/Jz+igQVaMqkKIuB3pxp7wrXr7jx96B5uN BBP+CHt1Xhl+19W8S4ccKALXlCkF6s/7NuXcfm6nZHoaGjTASyKNX02uyFrykWKR AC0pRGJhXvDg2dNhQm/Z9l69+NQMPU7bRyfYKTmG8xLXP6lc4cnja+QPq6XMqTT9 KGJ1dNejznneOUsiUvP2A==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1654142707; x=1654229107; bh=bg5NE2ARrew1GkkM2PSgIyIlufUe jFYVkj7guCqMwt0=; b=euGXLyoyBdICltjhXhiqWvJh3wNwkIbQrdLPR5zFARpU E52cHv24OCSUVJw2yPMMcSFO6loCjsCJzysMJAQAjEguSbcNCO/urymxgELL+qra Hueabei3OHDeqDg8YRmnnlm5+WVc7eLJWgKOVm8Sq5AreNUPuc3lPwjjyGfJ040F C9ea6tpGr3BJgWILbVPr4YXKAthuYUwalLzrNEnJAxH5TNviydQ40wBVBe6EbTjl 4JFCTEzVRRkD6Ym6x+5dsN+WqLsS+4MN5aWog4wQYjOk/xAaHEYMLH4UpOAfSujc bGyjXrjF2IdapE2vrf7PmutRytWtIe3LZb2A5wWgeA==
X-ME-Sender: <xms:8jaYYlWTMIFRSCNnXTtgIESmq9t8XVFhwETu55veq0a4jKiyRENTdw> <xme:8jaYYlk1X3Ytf1nmF9oa1yfFdv2AkL-ENrF2jMUR1s2aPjfKWuKbgCFS0JAliOyEV lXTEaZ8Pl8>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrledugdejhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesrgdtre erreerjeenucfhrhhomhepfdeurhhonhcuifhonhgufigrnhgrfdcuoegsrhhonhhgsehf rghsthhmrghilhhtvggrmhdrtghomheqnecuggftrfgrthhtvghrnhepffdvkeefgeelie eutedttdffheevvefffeekuddvtddtkeeigfejuddvhfdvudelnecuffhomhgrihhnpehi vghtfhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpegsrhhonhhgsehfrghsthhmrghilhhtvggrmhdrtghomh
X-ME-Proxy: <xmx:8zaYYhYF5EOtmEaHRaMlvcnjgmjyApODEIfxiJMbFvQv5kgs_H-adw> <xmx:8zaYYoVa081o1g4IDF2me1NszncF7RiQG6Q67Pd4GsWA_Cj_rrLH1Q> <xmx:8zaYYvnMMIsTvOf3LHDtxdingO0VpgW7KSjM8Yp0EFV537CAP2YSvg> <xmx:8zaYYrwzXnVUwxlE4b_wXMfwFrsZwQd9eIeDBkFd6b07qQAd7Frszg>
Feedback-ID: i2d7042ce:Fastmail
Received: by mailuser.nyi.internal (Postfix, from userid 501) id D67EB2D4006D; Thu, 2 Jun 2022 00:05:06 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.7.0-alpha0-678-gc19f75cfc3-fm-20220527.002-gc19f75cf
Mime-Version: 1.0
Message-Id: <52612bfb-c796-4942-b0c9-4b0d112df167@beta.fastmail.com>
In-Reply-To: <d1c81dfe-f552-48bc-9365-5c3d2ad4b36f@dogfood.fastmail.com>
References: <164840486711.29024.8028686731542270779@ietfa.amsl.com> <d1c81dfe-f552-48bc-9365-5c3d2ad4b36f@dogfood.fastmail.com>
Date: Thu, 02 Jun 2022 14:04:46 +1000
From: Bron Gondwana <brong@fastmailteam.com>
To: jmap@ietf.org
Content-Type: multipart/alternative; boundary="0bcf5a7d47f64ab18832435f3b2374e2"
Archived-At: <https://mailarchive.ietf.org/arch/msg/jmap/qTPn27mErjD5tPEFiPQrfhdGva4>
Subject: Re: [Jmap] I-D Action: draft-ietf-jmap-blob-11.txt
X-BeenThere: jmap@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: JSON Message Access Protocol <jmap.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jmap>, <mailto:jmap-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jmap/>
List-Post: <mailto:jmap@ietf.org>
List-Help: <mailto:jmap-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jmap>, <mailto:jmap-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 02 Jun 2022 04:05:12 -0000

I've finally addressed all these (I hope) in revision 12 which I just uploaded.

I've also added `digest:<algorithm>` support based on another email to the list.  It's optional (the server has to opt-in by specifying the algorithms it supports).

I expect to have to do another revision fleshing out the `digest` section, including security considerations and advice to both clients and servers regarding how to use it.

Bron.

On Tue, Apr 19, 2022, at 16:14, Neil Jenkins wrote:
> A few comments on this draft:
> 
> It seems to use the type signature conventions of the core spec, but doesn't explicitly say this in the "Conventions Used in this Document" section. Presuming this is the intention thoughm the type for `supportedTypeNames` should be `String[]|null`
> 
>> *4.1 The result is the same as for Foo/set in RFC8620* […]
> 
> I think this could be clearer. Specifically, it's not the same as a standard `/set` in that there are no state strings in the response (as well as no updated/destroyed of course).
> 
>> *NOTE: Servers MUST set the creationIds value to the blobId returned in any successful Blob/upload's created response to allow backreferences, as that is the main purpose of this extensions.*
> 
> Again, I feel like this could be clearer. It's really saying an entry must be *added* to the `createdIds` map in the request for each successful upload, so the blob id may be used via back reference in a subsequent method call.
> 
>> data: `[DataSourceObject]`
> 
> Should be `DataSourceObject[]`. (There are a number of other instances like this in the spec; I won't keep listing them here)
> 
>> Exactly one of:
>>  * data:asText: String|null
>>  * data:asBase64: String|null
> 
> These are missing descriptions to specify exactly how they are to be interpreted.
> 
>> or a blobId source:
>>  * blobId: Id
>>  * offset: UnsignedInt|null (MAY be zero)
>>  * length: UnsignedInt|null (MUST NOT be zero)
> 
> Why must length not be zero? You are allowed a zero length blob. Also
> 
>> If `null` then length is the remaining octets in the blob.
> 
> So what if there are zero octets remaining?
> 
>> 4.1.2. Blob/upload complex example 
> 
> Still has properties from `/set` in the responses that should not be there.
> 
>> 6.3. Creation of "JMAP Data Types" Registry 
> 
> There's no documentation here on how to add or modify entries in this registry in the future.
> 
> Cheers,
> Neil.
> _______________________________________________
> Jmap mailing list
> Jmap@ietf.org
> https://www.ietf.org/mailman/listinfo/jmap
> 

--
  Bron Gondwana, CEO, Fastmail Pty Ltd
  brong@fastmailteam.com