Re: [mile] Artart last call review of draft-ietf-mile-rolie-10

Martin Thomson <martin.thomson@gmail.com> Mon, 06 November 2017 00:58 UTC

Return-Path: <martin.thomson@gmail.com>
X-Original-To: mile@ietfa.amsl.com
Delivered-To: mile@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DE89513FBF6; Sun, 5 Nov 2017 16:58:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-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 fWAuIc7OKra7; Sun, 5 Nov 2017 16:58:13 -0800 (PST)
Received: from mail-ot0-x232.google.com (mail-ot0-x232.google.com [IPv6:2607:f8b0:4003:c0f::232]) (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 BDFD413FBF1; Sun, 5 Nov 2017 16:58:13 -0800 (PST)
Received: by mail-ot0-x232.google.com with SMTP id u41so6984653otf.12; Sun, 05 Nov 2017 16:58:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=n+UCX01FGWG85R0CwjCySLTlVnjMM1408toOltdpRQo=; b=rqln3r9Nny2pIJWCykdlJnWZc3ViN6Nh02IJkHYsuX9ev+UuEYNAzvhvMq2O4+oztd sU0SBoeAKv5vXmwMf8a0EQc7ntbKyRXho0Q2UGFTOhHqZAYUbTjRKqaMJWUZbDkbXSJN kdAojtt8OXq0qQPAQL2tEplRIiKITcDVqGTSzQsnOB0cznZZVwor97nI4YK6UfdmL2+G 1aHEUFg0GPPtuMtjy1I+JxyRYiXUs/7EGgX6wgBQDB9Ap/+/8bC9mXUZYVaNoWEdURYs s59q9Jd7MWh6kCrf5t3EqjugrwJeY2n3cexIByQi2EtnA4ito12RqPB2shfYaiu5EnzR wPNA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=n+UCX01FGWG85R0CwjCySLTlVnjMM1408toOltdpRQo=; b=XHvNRpSxvKxjSeC+myy9qcVEL5VzdQw3yMsSddUbRKs30zNNb7+pbjltSPm3UaSh3d 9ZHHPpglFSeUakZ9tliooCXtHB+JZsC7Qhkm7q1OakobwexGolwBe5L8IMb9S+vxHwSf BooayfQYKZ7YSN62q6POqoCXNo2tIVPn4XycWpEXQNCHP0K5kO6xo7fyc34bjgdrVD/+ J7FmBX2ZdsSrpEXEz5rIql4xaoPgzcedFoQ3soc00RHVXXWGRSMrgwRACv6WP8xEFpI0 +BPM9M0wn9VwnkVxgVg/AHtRmbuafy3fwvyuiURq7OlHccH0qiAr1gp7kOw/E6/dQg3r V+Cw==
X-Gm-Message-State: AJaThX5kuXcfnX3OyszNtIDl4A5m3SoK9oD4L4DlH5ZM9cM4wmVdBOb7 ZPW+lEKn7/omqxB36+aCp3oL/WgadNcqXaBcvPg=
X-Google-Smtp-Source: ABhQp+TPRAo3gzl2dN/ldSa+cx6MoQqT0OVt6POibQ8XR8nucj6Kc7n/4RM9l0XhEe9pje7G7yHTMkrxpYILFxLgXV0=
X-Received: by 10.157.47.199 with SMTP id b7mr3157026otd.377.1509929893077; Sun, 05 Nov 2017 16:58:13 -0800 (PST)
MIME-Version: 1.0
Received: by 10.157.15.155 with HTTP; Sun, 5 Nov 2017 16:58:12 -0800 (PST)
In-Reply-To: <MWHPR09MB11979FC6BD45C13589C99AA5F05D0@MWHPR09MB1197.namprd09.prod.outlook.com>
References: <150752570618.18384.5615358468704377459@ietfa.amsl.com> <DM5PR09MB13070FC0B54EB6DB8C707EE7F0420@DM5PR09MB1307.namprd09.prod.outlook.com> <CABkgnnX5NVZgYtOWYMgD5yEOmdnk2GEZuyR2OLNDwbTO-BytAw@mail.gmail.com> <CABkgnnWhtGJG9Td4-9Rhv--F9pTCdnOAiRBtXL8hW8LJoOugkQ@mail.gmail.com> <MWHPR09MB11979FC6BD45C13589C99AA5F05D0@MWHPR09MB1197.namprd09.prod.outlook.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Mon, 06 Nov 2017 11:58:12 +1100
Message-ID: <CABkgnnVucswghLsXi8h7tJC-gNhkPS6Ykdtb-dxv1MzKnquf9w@mail.gmail.com>
To: "Banghart, Stephen A. (Fed)" <stephen.banghart@nist.gov>
Cc: "mile@ietf.org" <mile@ietf.org>, "draft-ietf-mile-rolie.all@ietf.org" <draft-ietf-mile-rolie.all@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/mile/bEUJrS9rNcTIDz-KvPAgCzVr5Eo>
Subject: Re: [mile] Artart last call review of draft-ietf-mile-rolie-10
X-BeenThere: mile@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Managed Incident Lightweight Exchange, IODEF extensions and RID exchanges" <mile.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mile>, <mailto:mile-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mile/>
List-Post: <mailto:mile@ietf.org>
List-Help: <mailto:mile-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mile>, <mailto:mile-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 06 Nov 2017 00:58:16 -0000

On Sat, Nov 4, 2017 at 2:52 AM, Banghart, Stephen A. (Fed)
<stephen.banghart@nist.gov> wrote:
> Martin,
>
> Could you clarify which XML issues you mean? The rolie:format / rolie:property elements or something else?
>
> rolie:format is necessary beyond media types for differentiating between formats that don't have their own media type, and for making clear the difference between a "media type" and a "format". Media types provide information about the serialization of content, but don't actually define the model of the content. Schemas can be used to help the parser understand the content, rolie:format provides a means to describe both the model and the schema of the content. We could solve this by providing some modified media type, but this would require just as much specification as our current solution. As an example, how would we best specify to a consumer that the content element links to an IODEF document? It's media type is XML, but there remains information that can only be gleaned  by downloading the entire content file.

You describe the exact purpose of a media type.  The advantage of
media types being that the type is available in more places than just
a ROLIE Feed.  For instance, you can use content negotiation in HTTP
to ensure that you get something you can consume.

I'm not saying that this is more or less specification, it's just that
you get more value from a media type than you do with this sort of
mechanism.  Even if it means minting a few more media types.

Furthermore, identifying a schema is usually inadequate to describe
the relevant parts of an XML format.  There are many generic container
formats in XML for which listing the top-level schema is pointless.
ROLIE itself suffers from this because it uses Atom.  It's not even
possible to list schemas, because that loses critical information
about what elements are used in what contexts.  In order to properly
capture the full transitive closure of formats, you need something
considerably richer (I once thought that this worth doing/possible,
but that idea was quickly abandoned without really testing it fully:
https://tools.ietf.org/html/draft-thomson-simple-expressing-xml-support-00).

> rolie:property has a couple of advantages over defining the key-value pairs in XML. Defining new elements in XML is expensive. In the ROLIE core document we define 4 new properties, which would yield 4 new elements in the schema. In our Software Descriptor we define another software specific property, and we may add more as we iterate the draft. There are two other extensions in development that may add new properties as well. rolie:property provides a means to easily define new properties without generating a huge number of new elements.

I disagree on the XML - the amount of effort you put in to define your
XML properties is pretty minimal: a namespace and schema, plus
semantics of each of the fields.  You gain the ability to properly
constrain the grammar (for example, you could use xs:dateTime for
content-updated-date instead of prose).  You have demonstrated how
easy that can be in this document (by defining rolie:property itself).

I've dealt with extensible fields like this in the past (see RFC
6848), and it's no more difficult to pair up ns+localname and simple
value than it is to pair up URN and simple value.

As proposed, you also have a new registry for these fields, which is
strictly more costly.

p.s., I thought you were going to remove
"urn:ietf:params:rolie:property:local", but it is still in -13.  That
would of course be moot if you did as I suggest.

> Would it be useful to clarify this further in the specification, or do you still have technical concerns?