Re: [Tsv-art] Tsvart last call review of draft-ietf-jmap-core-12

Allison Mankin <allison.mankin@gmail.com> Sun, 30 December 2018 13:22 UTC

Return-Path: <allison.mankin@gmail.com>
X-Original-To: tsv-art@ietfa.amsl.com
Delivered-To: tsv-art@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BC7CD12F18C; Sun, 30 Dec 2018 05:22:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.988
X-Spam-Level:
X-Spam-Status: No, score=-1.988 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_MIME_MALF=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NBT7jU-SnpRJ; Sun, 30 Dec 2018 05:22:21 -0800 (PST)
Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 54CE1130EF3; Sun, 30 Dec 2018 05:22:21 -0800 (PST)
Received: by mail-pg1-x52b.google.com with SMTP id v28so11832314pgk.10; Sun, 30 Dec 2018 05:22:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+fqdLX/WQP8YTlkie9jLQ4Zdh9aYmc4fUqU5hqrOzeE=; b=TG8SsNWdZnN6dBl1/FYX5ymK6uCAPbeIiBwO+ksC8Dncq+Wx79+HMxgjexoG17Ss2q KniwUKSlcvxd3Fs3MiUSW0bG1Sk8HXbrBLveHJ6Ec1qpzWsSw20Jh80YVajFOKYiLheU ix9ITceR+I+0WAjJNHK48gOwrRKM7rzncGqY0D2H9vGqW8I11veRafP5UdYfmV5qfZ6D zQG+gK7QIB88ZS+IcwlZj1Lv6Knbv1CKLrjqbOd63tmvQ3d1Ow8yaS3YJ546jNQAfKuD ru/LwmA2V32pGOwAd7KOJz1WJczQcI250yc0vJxoIWeYRLTAwMu32faXFof0QG6c0F7e MpIg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+fqdLX/WQP8YTlkie9jLQ4Zdh9aYmc4fUqU5hqrOzeE=; b=X+tQIBDdj4zMf0lZ/nPKaEUkmt83msKBqTYMOum4elp+AHe+vXegOWMEnlrDunbZ2I iZ1pppt5MB06x0pmtWAWLl8zBnsp1PYcXYhXXyae2p+zyNukKbpgznj7Ut92dJrzDLDK 4n+QQ3n3nDGc22UxCT+51AnxMmoq+/eMGV/IGncaO1tMbnlXTF9fELt+R5g5rs78sqfU 2x/2Qc00V405b71vemyFoPa9TzHoUzFxD1i3LCMOsmUp0UZA6WMUDlWuF4GNR9jesnd1 WvCtEA9xQY0zSrJCH3aRbPLcI7/M6Z+mKv3EbiZO0gVwVcuiNLgxscXRfmazxdSkiDvG ygrA==
X-Gm-Message-State: AJcUukdsnrXuioumMBSnrfC11bFQoMxxh47Z3hPcDsayCvZbzjEaJAyY sF8vuR3/crT+R/Wtrrhxm/cSZZ3u/kb5KBeXVUU=
X-Google-Smtp-Source: ALg8bN54GwwKd5jrvR6fTHLDKKF/DYs4tF+Oom+sw1BfRkGO4ynjC8lR4/j73TwwOkS87Gw+i/yb43nP0uObR2udEtc=
X-Received: by 2002:a65:434d:: with SMTP id k13mr4521164pgq.269.1546176140779; Sun, 30 Dec 2018 05:22:20 -0800 (PST)
MIME-Version: 1.0
References: <154602184661.21654.7987714371574539114@ietfa.amsl.com> <7dbcbc19-a513-4d2a-80e5-0417d5f2685f@www.fastmail.com>
In-Reply-To: <7dbcbc19-a513-4d2a-80e5-0417d5f2685f@www.fastmail.com>
From: Allison Mankin <allison.mankin@gmail.com>
Date: Sun, 30 Dec 2018 08:22:09 -0500
Message-ID: <CAP8yD=vNm3yf0ZoBtCREg=RenfcMsFUDZj4z0_vmtAVFdoKk-Q@mail.gmail.com>
To: Bron Gondwana <brong@fastmailteam.com>
Cc: draft-ietf-jmap-core.all@ietf.org, ietf@ietf.org, jmap@ietf.org, tsv-art@ietf.org
Content-Type: multipart/alternative; boundary="000000000000a1a75e057e3d2fc4"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsv-art/0JKRpV7gLgKWRWlF-Z-E3YvuFfw>
Subject: Re: [Tsv-art] Tsvart last call review of draft-ietf-jmap-core-12
X-BeenThere: tsv-art@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Transport Area Review Team <tsv-art.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tsv-art>, <mailto:tsv-art-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tsv-art/>
List-Post: <mailto:tsv-art@ietf.org>
List-Help: <mailto:tsv-art-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tsv-art>, <mailto:tsv-art-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 30 Dec 2018 13:22:24 -0000

Bron,

Thanks for detailing that and explaining where to find it in the draft.

Best wishes,

Allison

On Fri, Dec 28, 2018 at 11:09 PM Bron Gondwana <brong@fastmailteam.com>
wrote:

> Hi Allison,
>
> The blob deliberately isn't validated at upload time, so that it can be
> used by any Foo/import function or referenced in the generation of a later
> object of any type.  For example I uploaded a PDF file as a blob:
>
> Content-Length: 312597
> Content-Type: application/pdf
>
> And my server returned the details I gave:
>
> {
>   "expires":"2018-12-30T03:57:18Z",
>   "type":"application/pdf",
>   "size":312597,
>   "blobId":"Gb5eb763ad75e77101226181e01bb5c20f6aaf412",
>   "accountId":"uac7641b2"
> }
>
> But that type field isn't saved on the server at all, it's just there in
> the response (as can be seen in the "Downloading" section, where "type"
> must be included in the request URL pattern and filled by the client)
>
> When that blob gets later used as an email attachment, the interpretation
> of the blob is given by the client as part of the bodyStructure (see the
> draft-ietf-jmap-mail document for how Email/set uses uses blobs as part of
> email creation if you're interested):
>
> {
>   "blobId":"Gb5eb763ad75e77101226181e01bb5c20f6aaf412",
>   "cid":null,
>   "disposition":"attachment",
>   "name":"certificate.pdf",
>   "size":312597,
>   "type":"application/pdf"
> }
>
> And then the server uses that to generate an appropriate representation of
> the object that's being created:
>
> --fa073057ee4b4ff58e7209f66d32cd7a
> Content-Disposition: attachment;filename="certificate.pdf"
> Content-Type: application/pdf; name="certificate.pdf"
> Content-Transfer-Encoding: BASE64
>
>
> [...]
> --fa073057ee4b4ff58e7209f66d32cd7a--
>
> Cheers,
>
> Bron.
>
> On Sat, Dec 29, 2018, at 05:30, Allison Mankin wrote:
>
> Reviewer: Allison Mankin
> Review result: Ready
>
> This document has been reviewed as part of the transport area review team's
> ongoing effort to review key IETF documents. These comments were written
> primarily for the transport area directors, but are copied to the
> document's
> authors and WG to allow them to address any issues raised and also to the
> IETF
> discussion list for information.
>
> When done at the time of IETF Last Call, the authors should consider this
> review as part of the last-call comments they receive. Please always CC
> tsv-art@ietf.org if you reply to or forward this review.
>
> This standards track specification is in good shape from a transport point
> of
> view. Topics considered in this assessment were its discovery mechanism,
> its
> support of tools for denial of service and rate control issues on both the
> server and clients side, its ordering and data flow for the allowed
> disparate
> client endpoints, and its transport mapping, which is mandatory HTTPS.
>
> One question that is referred to other areas is what recommendations would
> be
> given (or what spec referenced) for validation of uploaded blob objects (it
> looks like the flow control for these is fine).
>
>
>
> --
>   Bron Gondwana, CEO, FastMail Pty Ltd
>   brong@fastmailteam.com
>
>
>