Re: [core] Review of draft-ietf-core-comi-09

Ivaylo Petrov <ivaylo@ackl.io> Mon, 04 May 2020 08:42 UTC

Return-Path: <ivaylo@ackl.io>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A538D3A03FE for <core@ietfa.amsl.com>; Mon, 4 May 2020 01:42:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.655
X-Spam-Level:
X-Spam-Status: No, score=-0.655 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, NORMAL_HTTP_TO_IP=0.001, NUMERIC_HTTP_ADDR=1.242, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=ackl-io.20150623.gappssmtp.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 D7KVIGsVO9rM for <core@ietfa.amsl.com>; Mon, 4 May 2020 01:42:31 -0700 (PDT)
Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) (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 E88483A03F6 for <core@ietf.org>; Mon, 4 May 2020 01:42:30 -0700 (PDT)
Received: by mail-wr1-x42d.google.com with SMTP id g13so19860546wrb.8 for <core@ietf.org>; Mon, 04 May 2020 01:42:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ackl-io.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6UDjYk5cg5AkEVmijl4a91xNWgqkqdNVhochDLAwiM4=; b=bJiu/8aiRGlB+pW4ISHSB+W4bO9JIoFPBBK8N9oHFg731YqNaNscVT3m/CeY0CWuYa EuAflbu5chiZzQkGnOo3QmQDMdCjBMDrRnYKc3BTGhSqHGD7lFZ7IsA3n/+T2znOHCGH q/OlsbgFG6J+n+UKjRI1hSyRu7Gv+SOdUvx9RsFNqQvtAUMeaGfwO2aojrsnr4gUVDK8 CuxkcEv6LMaUvRjhC031KP0BnUXoePdfA3UnjJbngS6plmUEdxMJl1/JW54RPhZASLs3 SRbG4PzIeT42skEBD3GHBjnOU0XooORxgLmnCeXCruXN9P+pHVaUt3FRRYYRL8T6I9jv ShlQ==
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=6UDjYk5cg5AkEVmijl4a91xNWgqkqdNVhochDLAwiM4=; b=I9loEp2dl7F/e2ZdlinE/ETAEKL85zlD5VGxC+klf7TOmBB+XvELxqLlmYMwk159WR y//4pMqW01Zs0tgC5MwulGLVkYKU3ADEvb4nPF1W4mTZ5sFJ8xmPfYnQRzh4chAf9zl2 DeZ7HOpCnw6lKNqvtIP1ph/INGXoZEVLXEVYubK4IUxXe/hW1L8VCmL9vfhCclx2hI4k BTdgLz3uvWiVPGrXTQVT2Me/lOrTqTisAhr6JOLADGuelv+JbbI79g4BlZtTyp5txj4x jBpQTPFTxAVKLC5cIZx/ufsaynH6Ky0/5HUdKRDyczMNnE9GYnjAfRYK0Gv+ClzmpMAq 78KQ==
X-Gm-Message-State: AGi0Pua9Wyr/uQujqpotBSmWSm5mf5Ntpo6B8A5A4cIjdxhRNXs6mcWj ySqCbTTX+wDxjFK9jUpDINTqFQs9MpnpO+KQ1Pk2dS2W
X-Google-Smtp-Source: APiQypLW7HHiTXmLj4QA0a7Z/4UzoLmx5BOB64O+JP7mEOlKqbSuz0ZeZkk1+95xHjdt0I1g+NzUMYS6Kl7P3WNaxTA=
X-Received: by 2002:a5d:500b:: with SMTP id e11mr17586532wrt.272.1588581749143; Mon, 04 May 2020 01:42:29 -0700 (PDT)
MIME-Version: 1.0
References: <CAAzbHvbCwoCnwCfGRFtP5aWzCH8WKcp5QCjH9t75ptAkDj0vVg@mail.gmail.com>
In-Reply-To: <CAAzbHvbCwoCnwCfGRFtP5aWzCH8WKcp5QCjH9t75ptAkDj0vVg@mail.gmail.com>
From: Ivaylo Petrov <ivaylo@ackl.io>
Date: Mon, 04 May 2020 10:42:03 +0200
Message-ID: <CAJFkdRxz-dohOXOrimB3eMdnSLjnwu3b=+HD1h1ZXrygzGcXRg@mail.gmail.com>
To: Klaus Hartke <hartke@projectcool.de>
Cc: "core@ietf.org WG" <core@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000dae08305a4ce82fa"
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/jfSsweNedub37-kHu1uOj8-GjnQ>
Subject: Re: [core] Review of draft-ietf-core-comi-09
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 04 May 2020 08:42:34 -0000

Hello Klaus,

I apologize for the delay and thank you for your review! It was really
useful for me and for the draft I believe. Please find my answers below
(prefixed with [IP]). Please note that the diff after handing your comments
is available at [1].

Best regards,
Ivaylo

[1]:
https://tools.ietf.org/rfcdiff?url1=https://tools.ietf.org/id/draft-ietf-core-comi.txt&url2=https://core-wg.github.io/comi/draft-ietf-core-comi.txt

On Mon, Apr 13, 2020 at 1:04 PM Klaus Hartke <hartke@projectcool.de> wrote:

> Section 2.4: The document seems to use the terms "content format" as a
> synonym for "content type". A content format is the combination of a
> content type (which is the combination of a media type with specific
> values for the media type's parameters) with a content coding. An
> example for a media type is "text/plain", for a content type
> "text/plain;charset=utf-8", and for a content format
> "text/plain;charset=utf-8" combined with "gzip". I think you mean
> content type, right?
>

[IP]: It seems to me that you are right, therefore I have changed content
format to content type in all places where such a change seemed necessary.
Please do not hesitate to let me know if I have missed any place or if I
have misunderstood you.

Section 2.4: In the table, all the media types incorrectly have a leading
> "/".
>
> Section 4: It's not okay to mandate or recommend specific paths like
> </c> and </s>. Not even with a lower-cased "recommended". It's fine to
> define a path structure after the "root path" of the application and
> use an example path in examples, but implementers should not be
> restricted or discouraged in any way to choose a different path (see
> BCP 190). The best choice is probably to use a long, not very nice
> looking path like </path/to/the/data/store/X9?k="eth0">, so that
> implementers immediately get the idea to pick a shorter path
> themselves :-)
>

[IP]: I believe I captured what was suggested here, but please check if
that is indeed the case.

Section 4: The document specifies the API in terms of the CoAP
> Uri-Query option a lot. The Uri-Query option is just the way how the
> query string of the request URI is encoded in CoAP, though. It would
> be better to specify the API in term of query strings and not to
> mention the Uri-Query option.
>
> Section 4.1: It's unclear if a client should send the query string
> <?k=0> or <?k="0"> (with quotes, as shown in the table) for a Boolean
> value.
>

[IP]: I believe now this is clear. It is now also clarified that 0 maps to
false and 1 to true (which might not be what a person using a lot of bash
would expect).

Section 4.1: It's unclear if the int2str function returns "291" (5
> characters) or "291" (3 characters, typographically set in quotes).
>
> Section 4.2.2: It's unclear if a client should send the query string
> <?d=t> or <?d= 't'> (with a space and single quotes, as shown in the
> indented paragraph).
>
Section 4.2.3.1: It's unclear why a client needs to send the query
> string <?k="eth0"> instead of <?k=eth0>. The table in section 4.1
> seems to say that a string `key` is written as `key`, not as `"key"`.
> Can a `key` contain `"` characters itself and, if yes, how are those
> escaped?
>

[IP]: It should be clear now that it is without the quotes (for the three
points).

Section 4.5: If I understand this correctly, this enables getting
> events by appending these to an internal "log file" and exposing the
> latest few entries of the log file as the resource </s>. This resource
> can be observed, so that if new entries are appended, the resource
> changes its state and the client gets notifications. Correct? It might
> be worth pointing out that this scheme does guarantee delivery of all
> entries in the log file to the client. It might also be a good idea to
> remind implementers of what happens when the size of the last few
> entries is greater than the MTU.
>
> Section 4.5: The last paragraph says "To check that the client is
> still alive, the server MUST send Confirmable Message periodically."
> That's what RFC 7641 already specifies. Please don't make normative
> statements that repeat (or contradict) what RFC 7641 says. :-)
>

[IP]: As you pointed out, this is clearly specified in RFC 7641, so I
removed it from this document.

Klaus
>
> _______________________________________________
> core mailing list
> core@ietf.org
> https://www.ietf.org/mailman/listinfo/core
>