Re: [Lager] Stephen Farrell's Discuss on draft-ietf-lager-specification-11: (with DISCUSS and COMMENT)

Stephen Farrell <stephen.farrell@cs.tcd.ie> Sat, 23 April 2016 11:58 UTC

Return-Path: <stephen.farrell@cs.tcd.ie>
X-Original-To: lager@ietfa.amsl.com
Delivered-To: lager@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C434F12D179; Sat, 23 Apr 2016 04:58:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.297
X-Spam-Level:
X-Spam-Status: No, score=-5.297 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.996, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cs.tcd.ie
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 R9_GBZfEg21W; Sat, 23 Apr 2016 04:58:13 -0700 (PDT)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2274F12D568; Sat, 23 Apr 2016 04:58:12 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id 08074BE3F; Sat, 23 Apr 2016 12:58:10 +0100 (IST)
X-Virus-Scanned: Debian amavisd-new at scss.tcd.ie
Received: from mercury.scss.tcd.ie ([127.0.0.1]) by localhost (mercury.scss.tcd.ie [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DGWBD1tZGQpB; Sat, 23 Apr 2016 12:58:08 +0100 (IST)
Received: from [10.87.49.100] (unknown [86.46.28.69]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id DEE91BE3E; Sat, 23 Apr 2016 12:58:07 +0100 (IST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.tcd.ie; s=mail; t=1461412688; bh=j/JwUYBDj4j+VEbuWDu8WmntmgOUXhu8I4YZ9Pj85NY=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=S6136YFjEyJcS7gWqVVFV6wlK7p5iwZYaH+Dnzbhu2T1SFSq8Lvp8IHSmQxUyaz8L BmzktrXWJQXZtTJvWNkiCuwyDDCJ0tE1uZJ65NBksbh6cYzjw9Aq9JllTiSoPenmNJ a1hrc7XltSNId4RpAputOh9+0tWSkolib3noOCOc=
To: Alexey Melnikov <aamelnikov@fastmail.fm>
References: <20160421102401.19578.54300.idtracker@ietfa.amsl.com> <1461412191.851961.587365345.53A5CC4C@webmail.messagingengine.com>
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
Openpgp: id=D66EA7906F0B897FB2E97D582F3C8736805F8DA2; url=
Message-ID: <571B634F.9070600@cs.tcd.ie>
Date: Sat, 23 Apr 2016 12:58:07 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
MIME-Version: 1.0
In-Reply-To: <1461412191.851961.587365345.53A5CC4C@webmail.messagingengine.com>
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-256"; boundary="------------ms070203030808050205000307"
Archived-At: <http://mailarchive.ietf.org/arch/msg/lager/LXQeVgVS0aiD8dr2XCJevkv6sNY>
Cc: audric.schiltknecht@viagenie.ca, draft-ietf-lager-specification@ietf.org, The IESG <iesg@ietf.org>, lager@ietf.org
Subject: Re: [Lager] Stephen Farrell's Discuss on draft-ietf-lager-specification-11: (with DISCUSS and COMMENT)
X-BeenThere: lager@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Label Generation Rules <lager.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lager>, <mailto:lager-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lager/>
List-Post: <mailto:lager@ietf.org>
List-Help: <mailto:lager-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lager>, <mailto:lager-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 23 Apr 2016 11:58:16 -0000


On 23/04/16 12:49, Alexey Melnikov wrote:
> Hi Stephen,
> I think I will need help from the WG on more subtantial issues, but I
> will quickly reply to a couple of your DISCUSS points (WG should feel
> free to correct me if I am wrong):
> 
> On Thu, Apr 21, 2016, at 11:24 AM, Stephen Farrell wrote:
>> Stephen Farrell has entered the following ballot position for
>> draft-ietf-lager-specification-11: Discuss
> 
>  [snip]
> 
>> This spec is tackling a hard problem, (machines doing what
>> humans do to classify identifiers), and as a result there are
>> some tricky bits here. That inherently hard problem has thrown
>> up a few things I'd like to discuss (though the 1st one is
>> easy:-)...
>>
>> (1) section 5: this says code points MUST be 4 hex digits.
>> What is s/w supposed to do if it sees only 2 hex digits?
>> Should it ignore the range or char element or fail to process
>> the entire LGR document?
> 
> I don't mind clarifying this, but in general it means that the whole
> document is syntactically invalid and thus must be ignored. 

That's a fine answer.

> 
> I don't think it is very common for IETF documents to specify error
> handling when a MUST is violated, but of course it is not prohibited.

Well, in this case the error might only affect checking some labels
and not others, so I guess folks may be tempted to use the rest of
the LGR if the spec doesn't say to fail to load the LGR on such errors.

> 
>> I think the same issue applies to
>> other uses of 2119 language as well, (e.g. "MUST be treated as
>> an error at the end of p19), so I'd recommend you state some
>> kind of general rule if you can.
>>
> 
>  [snip]
> 
>> (3) 6.3.4: While recursion is said to be disallowed, the "for
>> which the complete definition has not been seen" is pretty odd
>> for an XML specification, as it means that you need a full
>> ordering for the elements in the document (or at least within
>> the <rules> element).  That means if some editor decodes from
>> disk and then encodes to disk, you need to be sure that the
>> order is preserved or else you break the "has been seen"
>> constraint. (And if you do that, then you're allowing rules to
>> mutually refer to one another, which brings us back to discuss
>> point 2.) 7.4 maybe has a similar issue. I think for this you
>> could simply state up front that these XML documents MUST NOT
>> be re-ordered during editing. (Or else add some kind of
>> attribute to help with ordering which seems ickky.)
> 
> Correct me if I am wrong, but I haven't seen any XML generator that
> reorders XML elements, unless they understand XML schema for a
> particular XML document. So by default order of XML elements withing
> parent elements is fixed, so I don't think this is an issue.

I'm happy to be corrected, but this was a big (and painful) deal
for xmldsig, so I'm not sure why it'd not be an equal PITA here;-)

Cheers,
S.

> 
> Best Regards,
> Alexey
>