Re: [vwrap] Parsing of invalid LLSD elements in XML
Carlo Wood <carlo@alinoe.com> Sat, 03 April 2010 12:07 UTC
Return-Path: <carlo@alinoe.com>
X-Original-To: vwrap@core3.amsl.com
Delivered-To: vwrap@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix)
with ESMTP id 8B9223A67E7 for <vwrap@core3.amsl.com>;
Sat, 3 Apr 2010 05:07:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.3
X-Spam-Level: **
X-Spam-Status: No, score=2.3 tagged_above=-999 required=5 tests=[BAYES_50=0.001,
DNS_FROM_OPENWHOIS=1.13, HELO_EQ_AT=0.424, HOST_EQ_AT=0.745]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com
[127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7sb47-fDcc0B for
<vwrap@core3.amsl.com>; Sat, 3 Apr 2010 05:07:56 -0700 (PDT)
Received: from viefep12-int.chello.at (viefep12-int.chello.at [62.179.121.32])
by core3.amsl.com (Postfix) with ESMTP id 42F913A67AF for <vwrap@ietf.org>;
Sat, 3 Apr 2010 05:07:53 -0700 (PDT)
Received: from edge04.upcmail.net ([192.168.13.239]) by viefep12-int.chello.at
(InterMail vM.8.01.02.02 201-2260-120-106-20100312) with ESMTP id
<20100403120751.IXV29373.viefep12-int.chello.at@edge04.upcmail.net>;
Sat, 3 Apr 2010 14:07:51 +0200
Received: from mail9.alinoe.com ([77.250.43.12]) by edge04.upcmail.net with
edge id 107o1e01R0FlQed0407p1D; Sat, 03 Apr 2010 14:07:51 +0200
X-SourceIP: 77.250.43.12
Received: from carlo by mail9.alinoe.com with local (Exim 4.71) (envelope-from
<carlo@alinoe.com>) id 1Ny28i-0000dK-5v; Sat, 03 Apr 2010 14:07:48 +0200
Date: Sat, 3 Apr 2010 14:07:48 +0200
From: Carlo Wood <carlo@alinoe.com>
To: Joshua Bell <josh@lindenlab.com>
Message-ID: <20100403120748.GA2095@alinoe.com>
References: <q2uf72742de1003311453y212ff98ay13d6f70d77565536@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <q2uf72742de1003311453y212ff98ay13d6f70d77565536@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
X-Cloudmark-Analysis: v=1.1 cv=SLkC287PFWo6d7eSEiSBB9255DBOWQ3bwOwHXJiyZoo=
c=1 sm=0 a=FxBtSNRhrsMA:10 a=38zWk6xDZSoA:10 a=8nJEP1OIZ-IA:10
a=48vgC7mUAAAA:8 a=BjFOTwK7AAAA:8 a=ScFr9y0wSRo_75KCotYA:9
a=P8zYZgAz_d0ByWR5d0UA:7 a=QfgihwmvK-QROpkgNsBWsqSKyfsA:4 a=wPNLvfGTeEIA:10
a=lZB815dzVvQA:10 a=bW3kdApBr58A:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117
Cc: vwrap@ietf.org
Subject: Re: [vwrap] Parsing of invalid LLSD elements in XML
X-BeenThere: vwrap@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Virtual World Region Agent Protocol - IETF working group
<vwrap.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/vwrap>,
<mailto:vwrap-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vwrap>
List-Post: <mailto:vwrap@ietf.org>
List-Help: <mailto:vwrap-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vwrap>,
<mailto:vwrap-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 03 Apr 2010 12:07:57 -0000
I vote for 1). There is no way the receive can start to guess what the message means in this case, and therefore the whole thing should be escalated immediately, so whatever is wrong can be fixed. On Wed, Mar 31, 2010 at 02:53:25PM -0700, Joshua Bell wrote: > Mark Lentczner and I were discussing this issue earlier today offline, and I > wanted to recap it to the list. > > draft-hamrick-vwrap-type-system-00 does not define what should happen when > trying to parse this LLSD XML fragment (pretend it has the right prologue and > hence is well-formed XML): > > <llsd> > <map> > <key>test</key> > <uuid>this is not a uuid</uuid> > </map> > </llsd> > > There are at least three reasonable outcomes: > (1) Reject the payload entirely - the entire message should be rejected > (2) Produces a map; value associated with key "test" is a UUID of > 00000000-0000-0000-0000-000000000000 - which would be the result of converting > the string "this is not a uuid" to a UUID > (3) Produces a map; value associated with key "test" is the Undefined value > > (The map is, strictly speaking unnecessary, to the example, but it clarifies > the context in which #3 occurs) > > This is not confined to UUIDs; similar issues occur with Date and Binary types > in the XML serialization. The JSON serialization appears "immune" to this spec > ambiguity because primitive types always end up as Boolean/String/Real/ > Undefined (in LLSD parlance); conversion to Integer/UUID/Date/URI/Binary can > only occur at the application level. The Binary serialization appears "immune" > to the spec ambiguity as well (possibly edge cases if a NaN or Infinity was > used for a Date?) > > Thoughts? > > _______________________________________________ > vwrap mailing list > vwrap@ietf.org > https://www.ietf.org/mailman/listinfo/vwrap -- Carlo Wood <carlo@alinoe.com>
- [vwrap] Parsing of invalid LLSD elements in XML Joshua Bell
- Re: [vwrap] Parsing of invalid LLSD elements in X… David W Levine
- Re: [vwrap] Parsing of invalid LLSD elements in X… Meadhbh Hamrick
- Re: [vwrap] Parsing of invalid LLSD elements in X… Meadhbh Hamrick
- Re: [vwrap] Parsing of invalid LLSD elements in X… Meadhbh Hamrick
- Re: [vwrap] Parsing of invalid LLSD elements in X… John Hurliman
- Re: [vwrap] Parsing of invalid LLSD elements in X… David W Levine
- Re: [vwrap] Parsing of invalid LLSD elements in X… Mark Lentczner
- Re: [vwrap] Parsing of invalid LLSD elements in X… Carlo Wood