Re: [Jmap] Benjamin Schwartz comments on draft-ietf-jmap-websocket-05

Ben Schwartz <bemasc@google.com> Mon, 09 March 2020 20:03 UTC

Return-Path: <bemasc@google.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 2139B3A16AA for <jmap@ietfa.amsl.com>; Mon, 9 Mar 2020 13:03:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.599
X-Spam-Level:
X-Spam-Status: No, score=-17.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 wWGhcmytAYhq for <jmap@ietfa.amsl.com>; Mon, 9 Mar 2020 13:03:05 -0700 (PDT)
Received: from mail-yw1-xc31.google.com (mail-yw1-xc31.google.com [IPv6:2607:f8b0:4864:20::c31]) (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 04EF63A16A1 for <jmap@ietf.org>; Mon, 9 Mar 2020 13:03:04 -0700 (PDT)
Received: by mail-yw1-xc31.google.com with SMTP id x184so11420230ywd.6 for <jmap@ietf.org>; Mon, 09 Mar 2020 13:03:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=it+SP14Mfj9tjzXvNJc6bKx0zquNU35af9X4QYc5OJU=; b=MDFzJmwSy3FVDLgsKDF03QkwFRIbb9toIvmzIWR6rMcMlGcmlbT/+NmnuTxKBYAE6R cEqpUWeJFbX4YymURETCJhaGNS3VinujN5BYXM30PS1XKIo07gmD8Sb5p1DpZa6OBSWD eFl9GxYLopqcwbXqi6INWXWM+lzrzbacAT/6RmPIHGu/jqRH0DJGOqAqj9GvwerU0mCV uBiyxHdCO6d3NEaFiWpwgJt2u0CzgHqeMdpNFdp9wpMyHPBdMgPG3M3nU3ZZ1Vp/9wqE GettXua6QIMKl+F85LjEXI+KGHNBfKipWQaYPj+AoKUbFSzLnQlEXCrUdRgXaBa0Nq80 epOg==
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=it+SP14Mfj9tjzXvNJc6bKx0zquNU35af9X4QYc5OJU=; b=tCMw209vrJy5xIGfn5l/6w6YDC8UHCIuJrNIKfTKz2AZcyoCYXSq9l3sxVjw8BNxdo 5r2HR2wuhMavpAbe0AXIM60ufLYtQax+inE5PFiCVzKrTMsTnCehKgoJswCuSf8gQZ1a b8WQGm+Le7FoGEGoYsqrYGEYydz5bQgKis/WKoFQugSMnMYI24kJTeqTXse0TpHdVAkO u0W7XrAXHEPh4SzK5SLwhWJxuWMfKPm9EnuSs9zKOSTfCO4Ygtpbm3HspBjeW30YJdAd s0lcXTN2XAhixMIZjZqSG4Rh8GMiUPFfCu9JpwaSAXqkNCVFoL8a5iAPVkZOY9VPsFNk 2Q4A==
X-Gm-Message-State: ANhLgQ1OuIrHGQ8lmTrkIwjSslIQP4QP/8G74SdHWyX6WmAaHeVUPMX0 86vUZ8Z3HsYUJRJNqTmkDFihfuwR5n+1nrltbyRrHg==
X-Google-Smtp-Source: ADFU+vvzf9t3rvg94LiIVDIgaOhlaC70F1JX/iwkmzWXWs89AgfI0g2+b3BAgX44ZN8PFJiqdyYFp67gdsFCynuC+lY=
X-Received: by 2002:a25:234f:: with SMTP id j76mr17435428ybj.502.1583784183627; Mon, 09 Mar 2020 13:03:03 -0700 (PDT)
MIME-Version: 1.0
References: <0f7388d8-b420-469f-8d5a-da5fb0bcf27a@www.fastmail.com> <2cc03bd6-48e3-3953-f9ba-59fbc26054a7@fastmail.com>
In-Reply-To: <2cc03bd6-48e3-3953-f9ba-59fbc26054a7@fastmail.com>
From: Ben Schwartz <bemasc@google.com>
Date: Mon, 09 Mar 2020 16:02:52 -0400
Message-ID: <CAHbrMsCkCxkDHy92N1uFM7sG=DUTS9R+iQihyxU0xPt29jF7gg@mail.gmail.com>
To: Ken Murchison <murch@fastmail.com>
Cc: Alexey Melnikov <aamelnikov@fastmail.fm>, jmap@ietf.org
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-256"; boundary="000000000000b51e3705a0717d7a"
Archived-At: <https://mailarchive.ietf.org/arch/msg/jmap/pHN89EYpVwwqWY6raBnv-q5IRWQ>
Subject: Re: [Jmap] Benjamin Schwartz comments on draft-ietf-jmap-websocket-05
X-BeenThere: jmap@ietf.org
X-Mailman-Version: 2.1.29
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: Mon, 09 Mar 2020 20:03:12 -0000

On Sun, Mar 8, 2020 at 3:16 PM Ken Murchison <murch@fastmail.com> wrote:

>
> On 2/21/20 7:45 AM, Alexey Melnikov wrote:
>
> Hi,
>
> **********************************************************************
> * Note, that I am conducting an experiment when people aspiring to be*
> * Area Directors get exposed to AD work ("AD shadowing experiment"). *
> * As a part of this experiment they get to review documents on IESG  *
> * telechats according to IESG Discuss criteria document and their    *
> * comments get relayed pretty much verbatim to relevant editors/WGs. *
> * As an AD I retain responsibility in defending their position when  *
> * I agree with it.                                                   *
> * Recipients of these reviews are encouraged to reply to me directly *
> * about perceived successes or failures of this experiment.          *
> **********************************************************************
>
> I also have some comments on Benjamin's comments below marked with "[[Alexey]]:"
>
>
> The following comments were provided by Benjamin Schwartz <bemasc@google.com> <bemasc@google.com>:
>
> Benjamin would have balloted *YES* on this document. He wrote:
>
> ## Section 3
>
>
> Consider removing “webSocket” from the parameter names.  It is redundant within this context.
>
>
> Done.
>
>
>
> ## Section 4
>
>
>    Binary data MUST NOT be uploaded or downloaded
>    through a WebSocket JMAP connection.
>
>
> Please provide a motivation for this restriction.
>
> [[Alexey: In standard JMAP these operations are performed on special HTTPS endpoints, so no JMAP objects are exchanged there. This document just does the same.]]
>
>
> To Alexey's point, the very next sentence states "Binary data is handled
> per Section 6 of [RFC8620]
> <https://xml2rfc.tools.ietf.org/cgi-bin/xml2rfc.cgi#RFC8620> via a
> separate HTTP connection or stream."
>
Yes, the text is perfectly clear as to what you're supposed to do, but it's
not at all clear as to why this restriction is necessary.  If the
restriction is "intrinsic" to the protocol then it's not a normative
requirement, because the forbidden action is inexpressible.  Otherwise, the
restriction must have been imposed for some reason, but the text doesn't
say why.

Uploading binary data through the WebSocket seems potentially useful (e.g.
to gain the benefits of compression, as mentioned elsewhere in the draft).
If there's a good reason to forbid it, I suggest mentioning that.
Otherwise, I would remove the requirement.

## Section 4.1
>
>
> I would suggest replacing this MUST with a simple reference to Section 8.2, which can contain its own normative language.
>
> [[Alexey: Ben, can you clarify why you suggest pointing to Section 8.2? Is this in another RFC?]]
>
>
> Same question as Alexey.  To which Section 8.2 are you referring?
>
RFC 8620.  This text is attempting to use "MUST" to regulate not the
software's behavior, but the implementor's state of mind.  In my view, this
is not good use of RFC 2119 language.  I recommend simply reminding the
reader to review Section 8.2 of RFC 8620, or perhaps explaining why those
recommendations are especially important in this context.

>
> ## Section 4.3.2
>
>
> Is “@type” now required on all Request/Response/Problem Details objects everywhere?  Does this update RFC 8620?
>
>
> Alexey, I'll let you decide is this document updates RFC 8620.
>
My point is that the text is unclear.  I presume that the line "This
specification adds two extra arguments to the Request object" doesn't apply
to all Request objects, but only to Request objects that are sent over a
WebSocket.  However, the text doesn't say that.  I would suggest noting
that this specification uses an extended object encoding from RFC 8620, so
that the distinction can be described explicitly.

>
> --
>
> Ken Murchison
> Cyrus Development Team
> Fastmail US LLC
>
>