Re: [apps-discuss] Question about URI template and expansion of an empty list
Erik Wilde <dret@berkeley.edu> Fri, 26 April 2013 17:20 UTC
Return-Path: <dret@berkeley.edu>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6CADE21F997D for <apps-discuss@ietfa.amsl.com>; Fri, 26 Apr 2013 10:20:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level:
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Pt7Hcx0MqRDM for <apps-discuss@ietfa.amsl.com>; Fri, 26 Apr 2013 10:20:38 -0700 (PDT)
Received: from cm04fe.IST.Berkeley.EDU (cm04fe.IST.Berkeley.EDU [169.229.218.145]) by ietfa.amsl.com (Postfix) with ESMTP id 6FA1021F9971 for <apps-discuss@ietf.org>; Fri, 26 Apr 2013 10:20:38 -0700 (PDT)
Received: from c-71-226-42-42.hsd1.az.comcast.net ([71.226.42.42] helo=dretair.local) by cm04fe.ist.berkeley.edu with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (auth plain:dret@berkeley.edu) (envelope-from <dret@berkeley.edu>) id 1UVmK2-00043n-E3; Fri, 26 Apr 2013 10:20:35 -0700
Message-ID: <517AB75F.7020904@berkeley.edu>
Date: Fri, 26 Apr 2013 10:20:31 -0700
From: Erik Wilde <dret@berkeley.edu>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130328 Thunderbird/17.0.5
MIME-Version: 1.0
To: "apps-discuss@ietf.org" <apps-discuss@ietf.org>
References: <CALcybBBXFDvAp1xpbi4=55Gq0QbfbTH7TV=1MTko7nNdtt-5WQ@mail.gmail.com> <CALcybBBcCTh8+RVWp5UW+2-s9EdKxdoeGdcq6+yGrGJk1nzP0w@mail.gmail.com> <51625870.8000906@berkeley.edu> <CA+-NybWfR47yScyTBi7BRpJgj5SnCxWY1rDV5KC8PuE+JEV90A@mail.gmail.com>
In-Reply-To: <CA+-NybWfR47yScyTBi7BRpJgj5SnCxWY1rDV5KC8PuE+JEV90A@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: Joe Gregorio <joe@bitworking.org>
Subject: Re: [apps-discuss] Question about URI template and expansion of an empty list
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Apr 2013 17:20:39 -0000
hello joe. thanks for the response! On 2013-04-17 07:03 , Joe Gregorio wrote: > On Mon, Apr 8, 2013 at 1:41 AM, Erik Wilde <dret@berkeley.edu> wrote: >> https://github.com/dret/uritemplate-test/blob/master/spec-examples-by-section.json >> (line 234) says it's "X", but i am really interested in the "why" >> explanation as well. http://tools.ietf.org/html/rfc6570#section-3.2.5 says >> that > The answer is in the text you quote: > "for each defined variable in the variable-list, append '.' to the > result string and then perform variable expansion" > The set of variables in the variable list is the empty set, so no '.' > is appended. > I agree that if this is confusing an addendum is in order. ... and just when i wanted to submit an erratum and searched for the best place where to put clarifying text, i ran into the last paragraph of http://tools.ietf.org/html/rfc6570#section-2.3 : "A variable defined as a list value is considered undefined if the list contains zero members. A variable defined as an associative array of (name, value) pairs is considered undefined if the array contains zero members or if all member names in the array are associated with undefined values." while still being a bit of an unintuitive definition for me, it seems as if this particular paragraph was never mentioned in previous discussions, and indeed clarifies that an empty array should be considered as an "undefined variable". for now, i'll assume that this settles things and will not file an erratum. but if people think (fracis? james?) that this still isn't good enough, then please speak up. thanks and cheers, dret. -- erik wilde | mailto:dret@berkeley.edu - tel:+1-510-2061079 | | UC Berkeley - School of Information (ISchool) | | http://dret.net/netdret http://twitter.com/dret |
- [apps-discuss] Question about URI template and ex… Francis Galiegue
- Re: [apps-discuss] Question about URI template an… Francis Galiegue
- Re: [apps-discuss] Question about URI template an… Erik Wilde
- Re: [apps-discuss] Question about URI template an… Murray S. Kucherawy
- Re: [apps-discuss] Question about URI template an… Francis Galiegue
- Re: [apps-discuss] Question about URI template an… James M Snell
- Re: [apps-discuss] Question about URI template an… Murray S. Kucherawy
- Re: [apps-discuss] Question about URI template an… James M Snell
- Re: [apps-discuss] Question about URI template an… Erik Wilde
- Re: [apps-discuss] Question about URI template an… Francis Galiegue
- Re: [apps-discuss] Question about URI template an… James M Snell
- Re: [apps-discuss] Question about URI template an… Erik Wilde
- Re: [apps-discuss] Question about URI template an… Murray S. Kucherawy
- Re: [apps-discuss] Question about URI template an… Francis Galiegue
- Re: [apps-discuss] Question about URI template an… Francis Galiegue
- Re: [apps-discuss] Question about URI template an… Francis Galiegue
- Re: [apps-discuss] Question about URI template an… Erik Wilde
- Re: [apps-discuss] Question about URI template an… Murray S. Kucherawy
- Re: [apps-discuss] Question about URI template an… James M Snell
- Re: [apps-discuss] Question about URI template an… Joe Gregorio
- Re: [apps-discuss] Question about URI template an… Francis Galiegue
- Re: [apps-discuss] Question about URI template an… Joe Gregorio
- Re: [apps-discuss] Question about URI template an… Erik Wilde
- Re: [apps-discuss] Question about URI template an… James M Snell