Re: [ogpx] type-system : binary elements in JSON serializations

Meadhbh Hamrick <ohmeadhbh@gmail.com> Mon, 29 March 2010 20:13 UTC

Return-Path: <ohmeadhbh@gmail.com>
X-Original-To: ogpx@core3.amsl.com
Delivered-To: ogpx@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 71E073A6925 for <ogpx@core3.amsl.com>; Mon, 29 Mar 2010 13:13:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.61
X-Spam-Level:
X-Spam-Status: No, score=-0.61 tagged_above=-999 required=5 tests=[AWL=0.859, BAYES_00=-2.599, DNS_FROM_OPENWHOIS=1.13]
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 PqlRq9jtTecy for <ogpx@core3.amsl.com>; Mon, 29 Mar 2010 13:13:14 -0700 (PDT)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by core3.amsl.com (Postfix) with ESMTP id C61E53A690D for <ogpx@ietf.org>; Mon, 29 Mar 2010 13:13:12 -0700 (PDT)
Received: by vws9 with SMTP id 9so214999vws.31 for <ogpx@ietf.org>; Mon, 29 Mar 2010 13:13:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:received:message-id:subject:to:cc:content-type; bh=xCpx5TMzb7mr5/4p6l/LW3umYgzy03oSyq0Fx9zZPfc=; b=i63F9OlkbaANRGrzNgLQ1bjXMagcYajpTHol4Z0MMIUhnhBZBSoi1gWo5ldhZCM6aN 3mQqmmv6YmgYidVQc2RaWXoVdCAZo0IfaO0kC4Equ6PAET/QPnZ2Kk5Ao/J103jf9pbK orS938vEHPZa/g4AUP92D7FShAgDRq6YdCr5E=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=a/lDxO3KAHZOWQ/Snwdx9MNV7TeoQ4ocx6SVcTP9hYZx6iT6dsr8DdaJykKrhLkKvF hngFNrId5KKGQj4CExKU41hS9wyQwPyHxJ5/LQ7l3ZVVFDYUAC5Azy94ErgW+/X24pUP cbCWJkqI3jMyVQi266VkGFKm2waSits1pZRCc=
MIME-Version: 1.0
Received: by 10.229.20.209 with HTTP; Mon, 29 Mar 2010 13:13:17 -0700 (PDT)
In-Reply-To: <62BFE5680C037E4DA0B0A08946C0933DCB5FB75C@rrsmsx506.amr.corp.intel.com>
References: <b325928b1003281033p28c92367x2be877cc348268da@mail.gmail.com> <62BFE5680C037E4DA0B0A08946C0933DCB5FB69D@rrsmsx506.amr.corp.intel.com> <OF525A1644.1F7FE877-ON852576F5.00641451-852576F5.00641932@us.ibm.com> <b325928b1003291124i47c4ca3bpa55724f57d4ad7d8@mail.gmail.com> <62BFE5680C037E4DA0B0A08946C0933DCB5FB75C@rrsmsx506.amr.corp.intel.com>
From: Meadhbh Hamrick <ohmeadhbh@gmail.com>
Date: Mon, 29 Mar 2010 13:13:17 -0700
Received: by 10.229.248.65 with SMTP id mf1mr1621035qcb.42.1269893617106; Mon, 29 Mar 2010 13:13:37 -0700 (PDT)
Message-ID: <b325928b1003291313h6204c04bs5bf55a03447e9844@mail.gmail.com>
To: "Hurliman, John" <john.hurliman@intel.com>
Content-Type: text/plain; charset="ISO-8859-1"
Cc: ogpx <ogpx@ietf.org>
Subject: Re: [ogpx] type-system : binary elements in JSON serializations
X-BeenThere: ogpx@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Virtual World Region Agent Protocol - IETF working group <ogpx.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ogpx>, <mailto:ogpx-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ogpx>
List-Post: <mailto:ogpx@ietf.org>
List-Help: <mailto:ogpx-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ogpx>, <mailto:ogpx-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Mar 2010 20:13:16 -0000

okay. so we could say that a valid BASE64 encoding would be converted
into a string of octets, but an invalid BASE64 encoding would return
the default binary.


--
meadhbh hamrick * it's pronounced "maeve"
@OhMeadhbh * http://meadhbh.org/ * OhMeadhbh@gmail.com



On Mon, Mar 29, 2010 at 12:19 PM, Hurliman, John
<john.hurliman@intel.com> wrote:
> I think the conversion should go both ways assuming the string is base64. A string of "hello world" would produce zero binary octets, but "aGVsbG8gd29ybGQ=" would produce 11 binary octets.
>
> John
>
>> -----Original Message-----
>> From: Meadhbh Hamrick [mailto:ohmeadhbh@gmail.com]
>> Sent: Monday, March 29, 2010 11:24 AM
>> To: David W Levine
>> Cc: Hurliman, John; ogpx; ogpx-bounces@ietf.org
>> Subject: Re: [ogpx] type-system : binary elements in JSON
>> serializations
>>
>> coolies. i'll implement it and open a trac ticket for it.
>>
>> also... do we want to have a string to binary conversion?
>> --
>> meadhbh hamrick * it's pronounced "maeve"
>> @OhMeadhbh * http://meadhbh.org/ * OhMeadhbh@gmail.com
>>
>>
>>
>> On Mon, Mar 29, 2010 at 11:13 AM, David W Levine <dwl@us.ibm.com>
>> wrote:
>> >
>> >
>> > ogpx-bounces@ietf.org wrote on 03/29/2010 02:05:48 PM:
>> >
>> >> [image removed]
>> >>
>> >> Re: [ogpx] type-system : binary elements in JSON serializations
>> >>
>> >> Hurliman, John
>> >>
>> >> to:
>> >>
>> >> Meadhbh Hamrick, ogpx
>> >>
>> >> 03/29/2010 02:06 PM
>> >>
>> >> Sent by:
>> >>
>> >> ogpx-bounces@ietf.org
>> >>
>> >> I think supporting conversion to and from string and binary at the
>> >> LLSD level is a good idea, and I don't see any downsides to this
>> approach.
>> >>
>> >> John
>> >>
>> > +1
>> >
>