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

Sean Leonard <dev+ietf@seantek.com> Wed, 06 July 2016 19:07 UTC

Return-Path: <dev+ietf@seantek.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 E589412D58A for <media-types@ietfa.amsl.com>; Wed, 6 Jul 2016 12:07:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001] autolearn=unavailable autolearn_force=no
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 Q1mLkkBPblT3 for <media-types@ietfa.amsl.com>; Wed, 6 Jul 2016 12:07:42 -0700 (PDT)
Received: from pechora4.lax.icann.org (pechora4.icann.org [IPv6:2620:0:2d0:201::1:74]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 49A7B12D576 for <media-types@ietf.org>; Wed, 6 Jul 2016 12:07:42 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by pechora4.lax.icann.org (8.13.8/8.13.8) with ESMTP id u66J7LDt006784 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for <media-types@iana.org>; Wed, 6 Jul 2016 19:07:41 GMT
Received: from [192.168.123.7] (unknown [75.83.2.34]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 61E32509B6; Wed, 6 Jul 2016 15:07:20 -0400 (EDT)
To: Andy Bierman <andy@yumaworks.com>, Martin Bjorklund <mbj@tail-f.com>
References: <d99b9905-6dcf-3f8c-1490-d3e6cd2e93df@seantek.com> <8f8db9b8-9917-4b26-25f6-ee0c19492bb9@seantek.com> <CABCOCHT+EREQ3RHV2sRuPN3SxSeaZem6Mi1AoeBf1NRFA2NsyA@mail.gmail.com> <20160701.103113.301947010745595267.mbj@tail-f.com> <CABCOCHR093usZOFufkJUraG=9qAOvSA2PQ_mvU+YHWs0OsgkBw@mail.gmail.com>
From: Sean Leonard <dev+ietf@seantek.com>
Message-ID: <25a8fc58-3f3e-72ee-6d8f-672b2ef53434@seantek.com>
Date: Wed, 06 Jul 2016 12:06:47 -0700
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <CABCOCHR093usZOFufkJUraG=9qAOvSA2PQ_mvU+YHWs0OsgkBw@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------D84EB749CE4BBD121E27DEAB"
X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.0 (pechora4.lax.icann.org [192.0.33.74]); Wed, 06 Jul 2016 19:07:42 +0000 (UTC)
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/8KCiDs3b5kEni-x49YEpM9MUeT4>
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: Wed, 06 Jul 2016 19:07:44 -0000

On 7/5/2016 9:57 AM, Andy Bierman wrote:
> [...]
>
> IMO it would be a bad idea to have media-specific filtering.
> YANG provides an abstraction of datastore contents which we want to be 
> independent
> of the various query response representations found in protocol messages.
>
> We are filtering on the datastore contents, not on the XML representation
> of individual query responses.
>
>
>
>     > So do we have to add text that a RESTCONF server MUST implement the
>     > "element"
>     > scheme?
>
>     If this indeed is to be interpreted as a requirement, I'd rather not
>     use the "+xml" name.
>
>
> Are there any objections to dropping the +xml?
>
> What about dropping +json as well?
>
> http://www.iana.org/assignments/media-type-structured-suffix/media-type-structured-suffix.xhtml
>
> This page implies our "fields" parameter MUST NOT overlap with XPointer.

I believe that +xml and +json should stay on.

I have not seen the XPointer issue actually trip up a registration. 
(However, the XPointer thing is kind of new, being in RFC 7303...) The 
+xml is important because it signals to intermediaries that they can do 
XML analysis. This strikes me as more important than the fragment stuff, 
and would in any event be a justification to override the "SHOULD NOT 
+xml" language. The media type reviewer should say something about this...

I guess the bottom line for me is: are applications actually going to 
use fragment identifiers--is there a commercial use case? Or is this 
just pontificating about stuff that won't actually get implemented?

If it's a real use case, do you want a uniform fragment identifier 
syntax across data syntaxes, so that #foo refers to the same semantic 
construct across +xml, +json, +cbor, etc.? And if so, why? (I get that 
"YANG provides an abstraction of datastore contents which we want to be 
independent of the various query response representations"; but, the 
YANG processors are representation-aware...so the mere fact that 
#xpointer-fragment-form and #json-fragment-form are different from each 
other, does not strike me as a big deal. The YANG processors know about 
XML vs. JSON so they have to do XML vs. JSON-specific things anyway.)

Sean