Re: [media-types] [Netconf] request review of media type application/yang-data+xml

Andy Bierman <andy@yumaworks.com> Fri, 01 July 2016 00:53 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: media-types@ietfa.amsl.com
Delivered-To: media-types@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5E29212D0BC for <media-types@ietfa.amsl.com>; Thu, 30 Jun 2016 17:53:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.235
X-Spam-Level:
X-Spam-Status: No, score=-1.235 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.665] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.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 YRgmnytozEkP for <media-types@ietfa.amsl.com>; Thu, 30 Jun 2016 17:53:10 -0700 (PDT)
Received: from pechora3.lax.icann.org (pechora3.icann.org [IPv6:2620:0:2d0:201::1:73]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3445612D0B9 for <media-types@ietf.org>; Thu, 30 Jun 2016 17:53:05 -0700 (PDT)
Received: from mail-vk0-x22a.google.com (mail-vk0-x22a.google.com [IPv6:2607:f8b0:400c:c05::22a]) by pechora3.lax.icann.org (8.13.8/8.13.8) with ESMTP id u610qiP2018011 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL) for <media-types@iana.org>; Fri, 1 Jul 2016 00:53:04 GMT
Received: by mail-vk0-x22a.google.com with SMTP id k68so47170546vkb.0 for <media-types@iana.org>; Thu, 30 Jun 2016 17:53:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=0ub6sle6XlmbNaQnLZTeCVXNsFF1ZwTYL7DlQnn0wSI=; b=trxESyUHGHxjtxajTHzYZQQZy7tZe0zPkkisUX8XVzfutmt9Uk/D2xQLz1kKPocS0b KOviJ6lkd2fDRgArveTJBBM3uX6UQDZtB0TKcne4YdmUHoBbGcGDk91zrv8xR2EXIKCd Y+gIvtsuWOSoiFoBb3FjlJw8X37NjiA6dlTDouhAJNjNwpNaWfYN9sJJeaPE61ytEpnU M0+bPizVS2S/dw+N7jtIzztFfBxMPmZnsA0ZaRIcWKUZiciClxXwAdDNXmT1IIw76mPu r2wMc1ogy8zVJj38gs8wOQ8iqlu9vZuGWvraE/wSitRPIR3IH5yDaBSqoBhgRYSAx805 bE3g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=0ub6sle6XlmbNaQnLZTeCVXNsFF1ZwTYL7DlQnn0wSI=; b=dESoo5hf7daQ3n95bHxwaSH9DF1EzpTpLKdrKQobrFc6FSFA0MrZ+sOEQPsCpvw8dm Fs0KXpDrMdM0UdlWSVQ/6m7nzpTT4BAtzoSp8R6HD7QL0rMyYcCxC5hh9ya7/nTpuLaD mD/vIVKwuVDCrfD01BEqoArQCh8baeyfeTHHW+LOPgGxGXGFKBqzUWnc4fuZ4oe8BPZ8 cIGgonGc6/+ilZJ1cjOnrDJS98tx9uDcGS4Psl7kB9psZdxSgS6GZO1/L4kQkP/dcAQL UZW5TC8ADLehp2Bzn+YjT2lpaMgyVArC2w8pkdEM+qW3BzjuS/xEOsjPxlIHYb6U6ut/ N4qg==
X-Gm-Message-State: ALyK8tJeAf4F6BR86+0nw9CeZfpFYURrl6jas8ji/LWZG9Uf7+qoQCRQtlSgTEYP7/T4cusJLkSeDUhsWC4QRA==
X-Received: by 10.31.9.65 with SMTP id 62mr8158541vkj.89.1467334364043; Thu, 30 Jun 2016 17:52:44 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.103.20.2 with HTTP; Thu, 30 Jun 2016 17:52:43 -0700 (PDT)
In-Reply-To: <8f8db9b8-9917-4b26-25f6-ee0c19492bb9@seantek.com>
References: <CABCOCHQJXtyhpfAgUn94FJ0WWyLvvKjC9inHpVY7-34GMJd=Bw@mail.gmail.com> <d99b9905-6dcf-3f8c-1490-d3e6cd2e93df@seantek.com> <8f8db9b8-9917-4b26-25f6-ee0c19492bb9@seantek.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 30 Jun 2016 17:52:43 -0700
Message-ID: <CABCOCHT+EREQ3RHV2sRuPN3SxSeaZem6Mi1AoeBf1NRFA2NsyA@mail.gmail.com>
To: Sean Leonard <dev+ietf@seantek.com>
Content-Type: multipart/alternative; boundary="001a11440b648933c105368867f8"
X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.0 (pechora3.lax.icann.org [IPv6:2620:0:2d0:201::1:73]); Fri, 01 Jul 2016 00:53:05 +0000 (UTC)
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/TwDGFfo_OuVMsjtalI5eOxMSOrQ>
Cc: media-types@iana.org, Netconf <netconf@ietf.org>
Subject: Re: [media-types] [Netconf] request review of media type application/yang-data+xml
X-BeenThere: media-types@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "IANA mailing list for reviewing Media Type \(MIME Type, Content Type\) registration requests." <media-types.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/media-types>, <mailto:media-types-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/media-types/>
List-Post: <mailto:media-types@ietf.org>
List-Help: <mailto:media-types-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/media-types>, <mailto:media-types-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 01 Jul 2016 00:53:11 -0000

On Tue, Jun 28, 2016 at 8:17 PM, Sean Leonard <dev+ietf@seantek.com> wrote:



removing all text except the fragment identifier issue....

According to RFC 7303, sec. 5, any usage of +xml requires implementation of
the XPointerFramework
https://www.w3.org/TR/2003/REC-xptr-framework-20030325/

RESTCONF "fragments" are sub-trees within the YANG data structures.
These are accessed by the request URI path and the "fields" query parameter.
XPointer is rather complex and completely redundant for RESTCONF.

So do we have to add text that a RESTCONF server MUST implement the
"element"
scheme?






>
>
>    Fragment identifier considerations: The fragment field in the
>       request URI has no defined purpose.
>
>
> From the perspective of NETCONF this is probably correct. However, Section
> 4.11 of RFC 6838 says:
>
>    Media types are encouraged to adopt fragment identifier schemes that
>    are used with semantically similar media types.  In particular, media
>    types that use a named structured syntax with a registered "+suffix"
>    MUST follow whatever fragment identifier rules are given in the
>    structured syntax suffix registration.
>
>
> There are some things about +xml things:
>
> http://www.iana.org/assignments/media-type-structured-suffix/media-type-structured-suffix.xhtml
>
> RFC 7303.
>
> Look it up.
>
>



   The syntax and semantics of fragment identifiers for the XML media
   types defined in this specification are based on the
   [XPointerFramework
<https://tools.ietf.org/html/rfc7303#ref-XPointerFramework>] W3C
Recommendation.  It allows simple names and
   more complex constructions based on named schemes.  When the syntax
   of a fragment identifier part of any URI or Internationalized
   Resource Identifier (IRI) ([RFC3987
<https://tools.ietf.org/html/rfc3987>]) with a retrieved media type
   governed by this specification conforms to the syntax specified in
   [XPointerFramework
<https://tools.ietf.org/html/rfc7303#ref-XPointerFramework>],
conforming applications MUST interpret such
   fragment identifiers as designating whatever is specified by the
   [XPointerFramework
<https://tools.ietf.org/html/rfc7303#ref-XPointerFramework>] together
with any other specifications governing
   the XPointer schemes used in those identifiers that the applications
   support.  Conforming applications MUST support the 'element' scheme
   as defined in [XPointerElement
<https://tools.ietf.org/html/rfc7303#ref-XPointerElement>], but need
not support other schemes.







Registrations which use this '+xml' convention MUST also make
reference to [RFC7303 <http://www.iana.org/go/rfc7303>], specifically
Section 5, in specifying fragment identifier syntax and semantics, and
they MAY restrict the syntax to a specified subset of schemes, except
that they MUST NOT disallow barenames or 'element' scheme pointers.
They MAY further require support for other registered schemes. They
also MAY add additional syntax (which MUST NOT overlap with
[XPointerFramework
<http://www.w3.org/TR/2003/REC-xptr-framework-20030325/>] syntax)
together with associated semantics, and MAY add additional semantics
for barename XPointers which, as provided for in Section 5, will only
apply when [RFC7303 <http://www.iana.org/go/rfc7303>] does not define
an interpretation.

In practice these constraints imply that for a fragment identifier
addressed to an instance of a specific "xxx/yyy+xml" type, there are
three cases:

For fragment identifiers matching the syntax defined in
[XPointerFramework
<http://www.w3.org/TR/2003/REC-xptr-framework-20030325/>], where the
fragment identifier resolves per the rules specified there, then
process as specified there;

For fragment identifiers matching the syntax defined in
[XPointerFramework
<http://www.w3.org/TR/2003/REC-xptr-framework-20030325/>], where the
fragment identifier does _not_ resolve per the rules specified there,
then process as specified in "xxx/yyy+xml";

For fragment identifiers _not_ matching the syntax defined in
[XPointerFramework
<http://www.w3.org/TR/2003/REC-xptr-framework-20030325/>], then
process as specified in "xxx/ yyy+xml". A fragment identifier of the
form "xywh=160,120,320,240", as defined in [MediaFrags
<http://www.w3.org/TR/2012/REC-media-frags-20120925/>], which might be
used in a URI for an XML-encoded image, would fall in this category.
See Section 10, [RFC7303 <http://www.iana.org/go/rfc7303>].









> I don't have experience dealing with this, and I would not hold back the
> registration on that basis. The Expert Reviewer might.
>
>


Andy