
From iesg-secretary@ietf.org  Mon Jun  4 12:44:53 2012
Return-Path: <iesg-secretary@ietf.org>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5835811E80F0; Mon,  4 Jun 2012 12:44:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.507
X-Spam-Level: 
X-Spam-Status: No, score=-102.507 tagged_above=-999 required=5 tests=[AWL=0.092, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 QF5fKBudmr5W; Mon,  4 Jun 2012 12:44:52 -0700 (PDT)
Received: from ietfa.amsl.com (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A821B11E80B4; Mon,  4 Jun 2012 12:44:52 -0700 (PDT)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: The IESG <iesg-secretary@ietf.org>
To: IETF-Announce <ietf-announce@ietf.org>
X-Test-IDTracker: no
X-IETF-IDTracker: 4.02
Message-ID: <20120604194452.28225.20691.idtracker@ietfa.amsl.com>
Date: Mon, 04 Jun 2012 12:44:52 -0700
Cc: vcarddav@ietf.org
Subject: [VCARDDAV] Last Call: <draft-ietf-vcarddav-oma-cab-extensions-02.txt> (vCard	Format extension : represent vCard extensions defined by the	Open Mobile Alliance (OMA) Converged Address Book (CAB) group)	to Proposed Standard
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: ietf@ietf.org
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 04 Jun 2012 19:44:53 -0000

The IESG has received a request from the vCard and CardDAV WG (vcarddav)
to consider the following document:
- 'vCard Format extension : represent vCard extensions defined by the
   Open Mobile Alliance (OMA) Converged Address Book (CAB) group'
  <draft-ietf-vcarddav-oma-cab-extensions-02.txt> as Proposed Standard

The IESG plans to make a decision in the next few weeks, and solicits
final comments on this action. Please send substantive comments to the
ietf@ietf.org mailing lists by 2012-06-18. Exceptionally, comments may be
sent to iesg@ietf.org instead. In either case, please retain the
beginning of the Subject line to allow automated sorting.

Abstract


   This document defines extensions to the vCard data format for
   representing and exchanging certain contact information.  The
   properties covered here have been defined by the Open Mobile Alliance
   Converged Address Book group, in order to synchronize, using OMA Data
   Synchronization, contact fields that were not already defined in the
   base vCard 4.0 specification.




The file can be obtained via
http://datatracker.ietf.org/doc/draft-ietf-vcarddav-oma-cab-extensions/

IESG discussion can be tracked via
http://datatracker.ietf.org/doc/draft-ietf-vcarddav-oma-cab-extensions/ballot/


No IPR declarations have been submitted directly on this I-D.



From stpeter@stpeter.im  Wed Jun  6 18:07:23 2012
Return-Path: <stpeter@stpeter.im>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5931C11E80A5 for <vcarddav@ietfa.amsl.com>; Wed,  6 Jun 2012 18:07:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.599
X-Spam-Level: 
X-Spam-Status: No, score=-102.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 e5OdzvBLFbjE for <vcarddav@ietfa.amsl.com>; Wed,  6 Jun 2012 18:07:22 -0700 (PDT)
Received: from stpeter.im (mailhost.stpeter.im [207.210.219.225]) by ietfa.amsl.com (Postfix) with ESMTP id C10B211E8087 for <vcarddav@ietf.org>; Wed,  6 Jun 2012 18:07:22 -0700 (PDT)
Received: from [192.168.0.7] (unknown [216.17.179.239]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 9DABA400A4; Wed,  6 Jun 2012 19:24:13 -0600 (MDT)
Message-ID: <4FCFFECA.8010507@stpeter.im>
Date: Wed, 06 Jun 2012 19:07:22 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120601 Thunderbird/13.0
MIME-Version: 1.0
To: vcarddav@ietf.org
X-Enigmail-Version: 1.4.2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jun 2012 01:07:23 -0000

Dear VCARDDAV WG,

My colleague Raghu Bhat and I have submitted the initial version of a
JSON representation for vCard4, and would welcome your feedback.

http://www.ietf.org/id/draft-bhat-vcarddav-json-00.txt

Thanks!

Peter

-- 
Peter Saint-Andre
https://stpeter.im/




From jclarke@cisco.com  Wed Jun  6 22:28:13 2012
Return-Path: <jclarke@cisco.com>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F093D11E80E8 for <vcarddav@ietfa.amsl.com>; Wed,  6 Jun 2012 22:28:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_54=0.6]
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 f2KaY-FhNrWx for <vcarddav@ietfa.amsl.com>; Wed,  6 Jun 2012 22:28:13 -0700 (PDT)
Received: from av-tac-rtp.cisco.com (av-tac-rtp.cisco.com [64.102.19.209]) by ietfa.amsl.com (Postfix) with ESMTP id 489C911E80E9 for <vcarddav@ietf.org>; Wed,  6 Jun 2012 22:28:13 -0700 (PDT)
X-TACSUNS: Virus Scanned
Received: from rooster.cisco.com (localhost.cisco.com [127.0.0.1]) by av-tac-rtp.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id q575SCpJ011412; Thu, 7 Jun 2012 01:28:12 -0400 (EDT)
Received: from sjc-vpn7-1722.cisco.com (sjc-vpn7-1722.cisco.com [10.21.150.186]) by rooster.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id q575SBg7004675;  Thu, 7 Jun 2012 01:28:12 -0400 (EDT)
Message-ID: <4FD03BEB.5060402@cisco.com>
Date: Thu, 07 Jun 2012 01:28:11 -0400
From: Joe Marcus Clarke <jclarke@cisco.com>
Organization: Cisco Systems, Inc.
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: Peter Saint-Andre <stpeter@stpeter.im>
References: <4FCFFECA.8010507@stpeter.im>
In-Reply-To: <4FCFFECA.8010507@stpeter.im>
X-Enigmail-Version: 1.4.2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jun 2012 05:28:14 -0000

On 6/6/12 9:07 PM, Peter Saint-Andre wrote:
> Dear VCARDDAV WG,
> 
> My colleague Raghu Bhat and I have submitted the initial version of a
> JSON representation for vCard4, and would welcome your feedback.
> 
> http://www.ietf.org/id/draft-bhat-vcarddav-json-00.txt

Cool!  vCard+JSON will be nice when it comes to automation.

A few things.  I don't agree that the type can always be ascertained
from the media type of the file.  This assumes well-behaved servers.  I
would think there is value in including an umbrella class to specify
that this is a vcard.  Could you not embed this into some other JSON
structure where it would be good to know that the type of this object is
a vCard?

Figure 4: The JSON is not equivalent to the plain text vCard format.
The JSON is missing the version :-).

I think there should be an example of CLARK notation when it comes to
vCard+JSON extensibility.

Joe

-- 
Joe Marcus Clarke, CCIE #5384,         |          |
SCJP, SCSA, SCNA, SCSECA, VCP        |||||      |||||
Distinguished Support Engineer  ..:|||||||||::|||||||||:..
Phone: +1 (919) 392-2867         c i s c o  S y s t e m s
Email: jclarke@cisco.com

----------------------------------------------------------------------------

From ragbhat@cisco.com  Thu Jun  7 07:48:06 2012
Return-Path: <ragbhat@cisco.com>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E6CA321F886F for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 07:48:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.536
X-Spam-Level: 
X-Spam-Status: No, score=-6.536 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_54=0.6, MIME_QP_LONG_LINE=1.396, RCVD_IN_DNSWL_HI=-8, RCVD_NUMERIC_HELO=2.067]
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 qw8I0UTlpYRv for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 07:48:06 -0700 (PDT)
Received: from mtv-iport-3.cisco.com (mtv-iport-3.cisco.com [173.36.130.14]) by ietfa.amsl.com (Postfix) with ESMTP id 5555B21F859B for <vcarddav@ietf.org>; Thu,  7 Jun 2012 07:48:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=ragbhat@cisco.com; l=2261; q=dns/txt; s=iport; t=1339080483; x=1340290083; h=subject:references:content-transfer-encoding:from: in-reply-to:message-id:date:to:cc:mime-version; bh=8ui1VnN8HpLBWQxCxRJ7x9YvcUCZfjJESvhbn3HLBM8=; b=mYvI93fTA95Nh2hG7WeAhmhBaKM3mmKod4IQf68OXyrUgjj+SFOiRUH3 TiGuoMwrGdOdfiP/+2DrkcgiIVmOLZNsTlZ/nFaWwoXpHm6fAZHoR30Ef l1B5wOn51v6/KzURV1GKxMX0p7OeyIXFQu56g3Kbe5LojcEr+GcAQXTjo 0=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ApIFAA2+0E+rRDoH/2dsb2JhbABCA7QeAoEHghgBAQEDAQEBAQ8BJzQLBQkCAgEIGC4bDDABAQQTCRmHZAQMmGugAwSLGYJugj5gA4hAjF2OFCeBP4MAgT8
X-IronPort-AV: E=Sophos;i="4.75,731,1330905600"; d="scan'208";a="45470796"
Received: from mtv-core-2.cisco.com ([171.68.58.7]) by mtv-iport-3.cisco.com with ESMTP; 07 Jun 2012 14:48:03 +0000
Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by mtv-core-2.cisco.com (8.14.5/8.14.5) with ESMTP id q57Em2V5023170; Thu, 7 Jun 2012 14:48:03 GMT
Received: from xmb-sjc-21d.amer.cisco.com ([171.70.151.140]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.4675);  Thu, 7 Jun 2012 07:48:02 -0700
Received: from 171.70.151.140 ([171.70.151.140]) by xmb-sjc-21d.amer.cisco.com ([171.70.151.140]) with Microsoft Exchange Server HTTP-DAV ;  Thu,  7 Jun 2012 14:48:01 +0000
References: <4FCFFECA.8010507@stpeter.im> <4FD03BEB.5060402@cisco.com>
Content-Transfer-Encoding: quoted-printable
From: "Raghurama Bhat (ragbhat)" <ragbhat@cisco.com>
Thread-Topic: [VCARDDAV] JSON representation
Thread-Index: Ac1EvImTbdJmUaDdRUSD5IWqiE1rPw==
Content-Type: text/plain; charset="us-ascii"
In-Reply-To: <4FD03BEB.5060402@cisco.com>
Message-ID: <105AACDB-4ED9-4D2E-9042-05ECD57AE5D4@cisco.com>
Date: Thu, 7 Jun 2012 07:48:00 -0700
To: "Joe Marcus Clarke" <jclarke@cisco.com>
MIME-Version: 1.0 (1.0)
X-OriginalArrivalTime: 07 Jun 2012 14:48:02.0601 (UTC) FILETIME=[8A27B190:01CD44BC]
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jun 2012 14:48:07 -0000

Hi Joe,

Please see my comments below.

Thanks,

--Raghu

Sent from my iPad

On Jun 6, 2012, at 10:28 PM, "Joe Marcus Clarke" <jclarke@cisco.com> wrote:

> On 6/6/12 9:07 PM, Peter Saint-Andre wrote:
>> Dear VCARDDAV WG,
>>=20
>> My colleague Raghu Bhat and I have submitted the initial version of a
>> JSON representation for vCard4, and would welcome your feedback.
>>=20
>> http://www.ietf.org/id/draft-bhat-vcarddav-json-00.txt
>=20
> Cool!  vCard+JSON will be nice when it comes to automation.
>=20
> A few things.  I don't agree that the type can always be ascertained
> from the media type of the file.  This assumes well-behaved servers.  I
> would think there is value in including an umbrella class to specify
> that this is a vcard.  Could you not embed this into some other JSON
> structure where it would be good to know that the type of this object is
> a vCard?
[Raghu] You make a good point about well behaved servers. But here is our re=
asoning. 1. It is  rare that you call an API OR click on a link and you don'=
t know what response you get 2. Most often you will be using a language mapp=
ing to map this to a Java/Javascript/C++ Object. A level of indirection is g=
oing to be quite inconvenient.

When this is embedded in some other structure, it is going to be the value p=
art of a property/value pair. Property part would indicate what this object i=
s.

>=20
> Figure 4: The JSON is not equivalent to the plain text vCard format.
> The JSON is missing the version :-).

[Raghu] thanks for pointing out the error. Will fix it.
>=20
> I think there should be an example of CLARK notation when it comes to
> vCard+JSON extensibility.
[Raghu] Will look into that
>=20
> Joe
>=20
> --=20
> Joe Marcus Clarke, CCIE #5384,         |          |
> SCJP, SCSA, SCNA, SCSECA, VCP        |||||      |||||
> Distinguished Support Engineer  ..:|||||||||::|||||||||:..
> Phone: +1 (919) 392-2867         c i s c o  S y s t e m s
> Email: jclarke@cisco.com
>=20
> --------------------------------------------------------------------------=
--
> _______________________________________________
> VCARDDAV mailing list
> VCARDDAV@ietf.org
> https://www.ietf.org/mailman/listinfo/vcarddav

From cyrus@daboo.name  Thu Jun  7 07:52:40 2012
Return-Path: <cyrus@daboo.name>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3A28421F867F for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 07:52:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.599
X-Spam-Level: 
X-Spam-Status: No, score=-102.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 6lSm0GjsEtg5 for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 07:52:38 -0700 (PDT)
Received: from daboo.name (daboo.name [173.13.55.49]) by ietfa.amsl.com (Postfix) with ESMTP id 2E66221F87D4 for <vcarddav@ietf.org>; Thu,  7 Jun 2012 07:52:35 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by daboo.name (Postfix) with ESMTP id 8CDC328CB2FE; Thu,  7 Jun 2012 10:52:34 -0400 (EDT)
X-Virus-Scanned: amavisd-new at daboo.name
Received: from daboo.name ([127.0.0.1]) by localhost (daboo.name [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E9okGE6kDHl6; Thu,  7 Jun 2012 10:52:29 -0400 (EDT)
Received: from [10.0.1.8] (unknown [17.224.23.127]) by daboo.name (Postfix) with ESMTPSA id 4111728CB2F3; Thu,  7 Jun 2012 10:52:29 -0400 (EDT)
Date: Thu, 07 Jun 2012 07:52:29 -0700
From: Cyrus Daboo <cyrus@daboo.name>
To: Peter Saint-Andre <stpeter@stpeter.im>, vcarddav@ietf.org
Message-ID: <D340A1259E74CA7A7879FE29@cyrus.local>
In-Reply-To: <4FCFFECA.8010507@stpeter.im>
References: <4FCFFECA.8010507@stpeter.im>
X-Mailer: Mulberry/4.1.0a3 (Mac OS X)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; size=4895
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jun 2012 14:52:40 -0000

Hi Peter,

--On June 6, 2012 7:07:22 PM -0600 Peter Saint-Andre <stpeter@stpeter.im> 
wrote:

> My colleague Raghu Bhat and I have submitted the initial version of a
> JSON representation for vCard4, and would welcome your feedback.
>
> http://www.ietf.org/id/draft-bhat-vcarddav-json-00.txt

Folks at CalConnect have been working on a JSON format for iCalendar. Right 
now looks like we differ quite a lot on our thinking of how the format 
should work. Below is an example of what our current thinking is.

There are some important points here:

1) vCard vs iCalendar model: iCalendar is more complex in that it allows 
for embedded sub-components, so there is potentially an need for extra 
layers in the JSON model too.

2) Property cardinality issues: we discussed for quite a while how to 
handle the case of properties that can occur one or more times. The choice 
you have made, where the JSON value of such a property is either a string 
or a list was one we ruled out. That was partly based on feedback from some 
folks already using JSON who said the "irregular" nature of such a 
construct makes parsing harder - i.e. you need to write code to detect the 
difference between a string or a list. As a result we chose a model where 
properties always have a "regular" behavior - they contain just one value - 
and instead we allow for multiple properties (which leads to the next 
point).

3) Property names as JSON object names: since a JSON object cannot have the 
same object name used more than once, this lead us to "regularize" the 
property object model in JSON to use "name", "parameters" and "value" 
object names, with the value of the "name" object being that of the 
property name. We also used "component" instead of "name" to allow us to 
easily distinguish between a property and a sub-component.

4) Serialization speed: iCalendar objects can be large (e.g. a calendar 
subscription "feed"). We wanted it to be possible to incrementally 
serialize an iCalendar object into JSON. If we choose the model where 
properties with the same name are places in a single JSON object with a 
list value, we would be forced to potentially parse the entire iCalendar 
object before being able to start emitting any JSON (since properties can 
appear in any order, a multi-occurring property "X" could be the very first 
one and the very last one - we would be forced to wait for the very end of 
the iCalendar stream to see that the JSON "X" value needs to be a list). We 
have folks that need to be able to stream and serialize large iCalendar 
objects, so this is an important factor.

5) Naming issues: specifically there is no guarantee that a parameter name 
does not match a value type name. This is a problem that both xCard and 
xCal dealt with by encapsulating all parameters inside a <parameters> 
element. The same issue exists in JSON, hence the use of a "parameters" 
name in the property object, as opposed to "promoting" parameters to 
top-level items within the overall property JSON object. We also chose to 
encapsulate the values inside a "value" object in JSON. That was partly to 
help deal with the "regularization" issue - e.g. the DTSTART property can 
have either date-time or date value types. When trying to extract the value 
from JSON that requires the consumer to "test" to see which one is present.

Our plan, as always, is to bring this work to the IETF - we are planning to 
do that as soon as we can but other things have been keeping us busy. As 
always, we are looking for more input from real JSON experts on some of the 
issues outlined above and of course we are fully open to 
refining/redesigning the object model as consensus grows on what is 
correct. Hopefully we can get a draft out soon, but I did want to present 
some of our key thoughts now so that we can ensure some semblance of 
similarity between jCard and jCal.

{
  "component": "vcalendar",
  "contents": [
    {
      "name": "version",
      "value": {
        "text": "2.0"
      }
    },
    {
      "name": "calscale",
      "value": {
        "text": "GREGORIAN"
      }
    },
    {
      "name": "prodid",
      "value": {
        "text": "-//Example Inc.//Example Calendar//EN"
      }
    },
    {
      "component": "vevent",
      "contents": [
        {
          "name": "uid",
          "value": {
            "text": "4088E990AD89CB3DBB484909"
          }
        },
        {
          "name": "dtstart",
          "parameters": {
            "tzid": "US/Eastern"
          },
          "value": {
            "date-time": "2008-10-06T12:00:00"
          }
        },
        {
          "name": "dtstamp",
          "value": {
            "date-time": "2008-02-05T19:12:24Z"
          }
        },
        {
          "name": "summary",
          "value": {
            "text": "Planning meeting"
          }
        }
      ]
    }
  ]
}


-- 
Cyrus Daboo


From simon.perreault@viagenie.ca  Thu Jun  7 07:57:29 2012
Return-Path: <simon.perreault@viagenie.ca>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1AE8321F87FB for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 07:57:29 -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=[AWL=-0.300,  BAYES_00=-2.599, J_CHICKENPOX_54=0.6, NO_RELAYS=-0.001]
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 LPmPSoJMZe1j for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 07:57:28 -0700 (PDT)
Received: from jazz.viagenie.ca (unknown [IPv6:2620:0:230:8000:226:55ff:fe57:14db]) by ietfa.amsl.com (Postfix) with ESMTP id D208021F86EC for <vcarddav@ietf.org>; Thu,  7 Jun 2012 07:57:18 -0700 (PDT)
Received: from ringo.viagenie.ca (unknown [IPv6:2620:0:230:c064:b4da:23a8:649d:b10c]) by jazz.viagenie.ca (Postfix) with ESMTPSA id 51FC24150E for <vcarddav@ietf.org>; Thu,  7 Jun 2012 10:57:18 -0400 (EDT)
Message-ID: <4FD0C14D.1010406@viagenie.ca>
Date: Thu, 07 Jun 2012 10:57:17 -0400
From: Simon Perreault <simon.perreault@viagenie.ca>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1
MIME-Version: 1.0
To: vcarddav@ietf.org
References: <4FCFFECA.8010507@stpeter.im>
In-Reply-To: <4FCFFECA.8010507@stpeter.im>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jun 2012 14:57:29 -0000

On 2012-06-06 21:07, Peter Saint-Andre wrote:
> My colleague Raghu Bhat and I have submitted the initial version of a
> JSON representation for vCard4, and would welcome your feedback.
>
> http://www.ietf.org/id/draft-bhat-vcarddav-json-00.txt

Cool!

Let me say first that it's a bit strange seeing a draft with my personal 
info sprinkled all over it. ;)

Here's some feedback...

Overall I think this is great. The most important issues I see (detailed 
below) are the clash between parameter and value type namespaces, and 
the representation of groups. IMHO what you have is acceptable, it just 
needs more precise text and justification.

In xCard we have a Relax NG schema defining exactly the format. There's 
no equivalent in your draft. This looseness makes me concerned about 
interoperability. Would it be possible to have a schema for JSON? Maybe 
ABNF?

> A JavaScript Object Notation (JSON) Representation for vCard
>                 draft-bhat-vcarddav-json-00

We already have vCard and xCard. Suggestion: call this jCard.

>        "gender": { "sex" : "M" },

This is super ugly. I know that's how it is in xCard, but xCard is what 
it is and is super ugly in various other ways. It would be nice if we 
could have simply:

"gender": "M"

>        "org": {
>            "type": "work",
>            "text": "Viagenie"
>        },

Shouldn't this be

        "org": {
            "type": "work",
            "text": ["Viagenie"]
        },

?

I hope not. What you have is fine. But it needs justification.

> For example, the "FN" property
>    is mapped to the fn property.

vCard properties are case-insensitive, so there is no mapping here. You 
might say instead that the JSON representation prefers lowercase 
property names.

> Value contains a text string that
>    corresponds to the vCard property's value.

What about integers? Floats? Booleans? Can they be expressed with native 
JavaScript types or do they need to be stringified?

>        "tel": {
>        "type": [ "voice", "video" ],
>        "uri": "tel:+1-555-555-555"
>        }

This assumes that the parameter namespace is disjoint from the value 
type namespace. This is true for now, but is not required by vCard 4. 
Maybe add an IANA consideration to the effect that in the future 
parameter names and value type names must not clash?

> properties with cardinality of
>    more than one are converted to a JSON array object

This means that property order is not guaranteed to be preserved when 
round-tripping JSON <-> vCard. I think it's acceptable, but it should be 
pointed out.

Also, do JSON dictionaries preserve key order? If not, that's another 
reason why property order wouldn't be preserved.

> The group construct
>    (Section 3.2 in [RFC6350]) is represented with the JSON object of the
>    same name.  For example:
>
>    {
>        "version" : "4.0"
>        "contact": {
>            "fn": "...",
>            "email": "..."
>        },
>        "media" : {
>            "photo": "..."
>        },
>        "categories": "..."
>    }
>
>              Figure 3: Mapping of lists and structured values
>
>    ... is equivalent to:
>
>    BEGIN:VCARD
>    VERSION:4.0
>    contact.FN=...
>    contact.EMAIL=...
>    media.PHOTO=...
>    CATEGORIES=...
>    END:VCARD
>
>                      Figure 4: Plain vCard equivalent

Ouch. What happens if I have a group named "version"?

> If there is no VALUE parameter
>    specified, it is treated as equivalent to VALUE=text.

Proposal: instead of "text" unconditionally, make it default to the 
default value type of the property. So that you could simply write:

"bday": "--0203"

>    BEGIN:VCARD
>    VERSION:4.0
>    EMAIL;VALUE=text;type=work:simon.perreault@viagenie.ca
>    GEO;VALUE=uri;type=work:geo:46.766336,-71.28955
>    BDATE;VALUE=date:--0203
>    END:VCARD
>
>                      Figure 6: Plain vCard equivalent

s/BDATE/BDAY/

Also, the FN property is mandatory.

Simon
-- 
DTN made easy, lean, and smart --> http://postellation.viagenie.ca
NAT64/DNS64 open-source        --> http://ecdysis.viagenie.ca
STUN/TURN server               --> http://numb.viagenie.ca

From jclarke@cisco.com  Thu Jun  7 08:31:36 2012
Return-Path: <jclarke@cisco.com>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6358521F86D5 for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 08:31:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.299
X-Spam-Level: 
X-Spam-Status: No, score=-2.299 tagged_above=-999 required=5 tests=[AWL=0.300,  BAYES_00=-2.599]
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 dEDxgPqJc5FU for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 08:31:35 -0700 (PDT)
Received: from av-tac-rtp.cisco.com (av-tac-rtp.cisco.com [64.102.19.209]) by ietfa.amsl.com (Postfix) with ESMTP id 6631721F86D3 for <vcarddav@ietf.org>; Thu,  7 Jun 2012 08:31:35 -0700 (PDT)
X-TACSUNS: Virus Scanned
Received: from rooster.cisco.com (localhost.cisco.com [127.0.0.1]) by av-tac-rtp.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id q57FVTQw007141; Thu, 7 Jun 2012 11:31:29 -0400 (EDT)
Received: from sjc-vpn7-759.cisco.com (sjc-vpn7-759.cisco.com [10.21.146.247]) by rooster.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id q57FVSIr018253; Thu, 7 Jun 2012 11:31:29 -0400 (EDT)
Message-ID: <4FD0C950.5000705@cisco.com>
Date: Thu, 07 Jun 2012 11:31:28 -0400
From: Joe Marcus Clarke <jclarke@cisco.com>
Organization: Cisco Systems, Inc.
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: "Raghurama Bhat (ragbhat)" <ragbhat@cisco.com>
References: <4FCFFECA.8010507@stpeter.im> <4FD03BEB.5060402@cisco.com> <105AACDB-4ED9-4D2E-9042-05ECD57AE5D4@cisco.com>
In-Reply-To: <105AACDB-4ED9-4D2E-9042-05ECD57AE5D4@cisco.com>
X-Enigmail-Version: 1.4.2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jun 2012 15:31:36 -0000

On 6/7/12 10:48 AM, Raghurama Bhat (ragbhat) wrote:
> [Raghu] You make a good point about well behaved servers. But here is our reasoning. 1. It is  rare that you call an API OR click on a link and you don't know what response you get 2. Most often you will be using a language mapping to map this to a Java/Javascript/C++ Object. A level of indirection is going to be quite inconvenient.

What if the server returns a JSON error object or a jCard depending on
whether or not an error occurred, but didn't set the the content-type
correctly?  Sure, this is recoverable in the code, but if there was a
guaranteed vcard container, one could check for that.

> 
> When this is embedded in some other structure, it is going to be the value part of a property/value pair. Property part would indicate what this object is.

Unless it's a generic like "object" : { }, which would leave it up to
the code to cast to the correct specific type.

Joe

-- 
Joe Marcus Clarke, CCIE #5384,         |          |
SCJP, SCSA, SCNA, SCSECA, VCP        |||||      |||||
Distinguished Support Engineer  ..:|||||||||::|||||||||:..
Phone: +1 (919) 392-2867         c i s c o  S y s t e m s
Email: jclarke@cisco.com

----------------------------------------------------------------------------

From julian.reschke@gmx.de  Thu Jun  7 08:43:16 2012
Return-Path: <julian.reschke@gmx.de>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E7D1C11E80B6 for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 08:43:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.011
X-Spam-Level: 
X-Spam-Status: No, score=-104.011 tagged_above=-999 required=5 tests=[AWL=-1.412, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 Af+I2Dazqt7b for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 08:43:15 -0700 (PDT)
Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by ietfa.amsl.com (Postfix) with SMTP id A5A2911E8089 for <vcarddav@ietf.org>; Thu,  7 Jun 2012 08:43:14 -0700 (PDT)
Received: (qmail invoked by alias); 07 Jun 2012 15:43:13 -0000
Received: from p5DD972CB.dip.t-dialin.net (EHLO [192.168.178.36]) [93.217.114.203] by mail.gmx.net (mp031) with SMTP; 07 Jun 2012 17:43:13 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1/NE6AD5OvNj42S06cDM2t0oA1menmpcr+Yf5ICsB VzfOwCB3XBejFY
Message-ID: <4FD0CBFC.9020508@gmx.de>
Date: Thu, 07 Jun 2012 17:42:52 +0200
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120604 Thunderbird/13.0
MIME-Version: 1.0
To: Simon Perreault <simon.perreault@viagenie.ca>
References: <4FCFFECA.8010507@stpeter.im> <4FD0C14D.1010406@viagenie.ca>
In-Reply-To: <4FD0C14D.1010406@viagenie.ca>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jun 2012 15:43:16 -0000

On 2012-06-07 16:57, Simon Perreault wrote:
> ...
> Also, do JSON dictionaries preserve key order? If not, that's another
> reason why property order wouldn't be preserved.
> ...

No.

Best regards, Julian

From stpeter@stpeter.im  Thu Jun  7 08:53:36 2012
Return-Path: <stpeter@stpeter.im>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B943021F8701 for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 08:53:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.794
X-Spam-Level: 
X-Spam-Status: No, score=-102.794 tagged_above=-999 required=5 tests=[AWL=-0.195, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 rKjsgcM9kd1V for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 08:53:34 -0700 (PDT)
Received: from stpeter.im (mailhost.stpeter.im [207.210.219.225]) by ietfa.amsl.com (Postfix) with ESMTP id 443E221F86F4 for <vcarddav@ietf.org>; Thu,  7 Jun 2012 08:53:34 -0700 (PDT)
Received: from [64.101.72.115] (unknown [64.101.72.115]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 2D3A1400A4; Thu,  7 Jun 2012 10:10:27 -0600 (MDT)
Message-ID: <4FD0CE7C.2000308@stpeter.im>
Date: Thu, 07 Jun 2012 09:53:32 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120601 Thunderbird/13.0
MIME-Version: 1.0
To: Joe Marcus Clarke <jclarke@cisco.com>
References: <4FCFFECA.8010507@stpeter.im> <4FD03BEB.5060402@cisco.com> <105AACDB-4ED9-4D2E-9042-05ECD57AE5D4@cisco.com> <4FD0C950.5000705@cisco.com>
In-Reply-To: <4FD0C950.5000705@cisco.com>
X-Enigmail-Version: 1.4.2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jun 2012 15:53:37 -0000

On 6/7/12 9:31 AM, Joe Marcus Clarke wrote:
> On 6/7/12 10:48 AM, Raghurama Bhat (ragbhat) wrote:
>> [Raghu] You make a good point about well behaved servers. But here
>> is our reasoning. 1. It is  rare that you call an API OR click on a
>> link and you don't know what response you get 2. Most often you
>> will be using a language mapping to map this to a
>> Java/Javascript/C++ Object. A level of indirection is going to be
>> quite inconvenient.
> 
> What if the server returns a JSON error object or a jCard depending
> on whether or not an error occurred, but didn't set the the
> content-type correctly?  Sure, this is recoverable in the code, but
> if there was a guaranteed vcard container, one could check for that.
> 
>> 
>> When this is embedded in some other structure, it is going to be
>> the value part of a property/value pair. Property part would
>> indicate what this object is.
> 
> Unless it's a generic like "object" : { }, which would leave it up
> to the code to cast to the correct specific type.

Hi Joe,

In an earlier iteration we had a "wrapper" indicating that the data is a
JSON-encoded vCard but Raghu convinced me it wasn't necessary. I don't
think it would be harmful in include that, and I see your point about
generic structures like "object". I'll give it further thought.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/





From stpeter@stpeter.im  Thu Jun  7 09:10:44 2012
Return-Path: <stpeter@stpeter.im>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5D63F11E8107 for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 09:10:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.49
X-Spam-Level: 
X-Spam-Status: No, score=-102.49 tagged_above=-999 required=5 tests=[AWL=-0.491, BAYES_00=-2.599, J_CHICKENPOX_54=0.6, USER_IN_WHITELIST=-100]
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 pMevvFwckiKa for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 09:10:43 -0700 (PDT)
Received: from stpeter.im (mailhost.stpeter.im [207.210.219.225]) by ietfa.amsl.com (Postfix) with ESMTP id 7F04711E80D2 for <vcarddav@ietf.org>; Thu,  7 Jun 2012 09:10:42 -0700 (PDT)
Received: from [64.101.72.115] (unknown [64.101.72.115]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 543D9400A4; Thu,  7 Jun 2012 10:27:35 -0600 (MDT)
Message-ID: <4FD0D27F.5070706@stpeter.im>
Date: Thu, 07 Jun 2012 10:10:39 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120601 Thunderbird/13.0
MIME-Version: 1.0
To: Simon Perreault <simon.perreault@viagenie.ca>
References: <4FCFFECA.8010507@stpeter.im> <4FD0C14D.1010406@viagenie.ca>
In-Reply-To: <4FD0C14D.1010406@viagenie.ca>
X-Enigmail-Version: 1.4.2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jun 2012 16:10:44 -0000

Hi Simon, thanks for your feedback. Comments inline.

On 6/7/12 8:57 AM, Simon Perreault wrote:
> On 2012-06-06 21:07, Peter Saint-Andre wrote:
>> My colleague Raghu Bhat and I have submitted the initial version of a
>> JSON representation for vCard4, and would welcome your feedback.
>>
>> http://www.ietf.org/id/draft-bhat-vcarddav-json-00.txt
> 
> Cool!
> 
> Let me say first that it's a bit strange seeing a draft with my personal
> info sprinkled all over it. ;)

We thought it would be valuable to show the same data as in the other
representations.

> Here's some feedback...
> 
> Overall I think this is great. The most important issues I see (detailed
> below) are the clash between parameter and value type namespaces, and
> the representation of groups. IMHO what you have is acceptable, it just
> needs more precise text and justification.
> 
> In xCard we have a Relax NG schema defining exactly the format. There's
> no equivalent in your draft. This looseness makes me concerned about
> interoperability. Would it be possible to have a schema for JSON? Maybe
> ABNF?

Raghu wanted to add a JSON schema in -00 but I convinced him to wait
until -01. :)  We would follow this expired I-D:

http://datatracker.ietf.org/doc/draft-zyp-json-schema/

>> A JavaScript Object Notation (JSON) Representation for vCard
>>                 draft-bhat-vcarddav-json-00
> 
> We already have vCard and xCard. Suggestion: call this jCard.

Yes, that's what we have for the file extension in the media type
registration. Works for me more generally.

>>        "gender": { "sex" : "M" },
> 
> This is super ugly. I know that's how it is in xCard, but xCard is what
> it is and is super ugly in various other ways. It would be nice if we
> could have simply:
> 
> "gender": "M"

I like the simplicity, but I wonder if we're losing information. Would
you suggest that we do the same thing for all properties? For example:

"bday": "--0203"

"anniversary": "20090808T1430-0500"

>>        "org": {
>>            "type": "work",
>>            "text": "Viagenie"
>>        },
> 
> Shouldn't this be
> 
>        "org": {
>            "type": "work",
>            "text": ["Viagenie"]
>        },
> 
> ?
> 
> I hope not. What you have is fine. But it needs justification.

Why would use an array (an ordered collection of values) when there is
only one value? We were aiming for simplicity.

>> For example, the "FN" property
>>    is mapped to the fn property.
> 
> vCard properties are case-insensitive, so there is no mapping here. You
> might say instead that the JSON representation prefers lowercase
> property names.

Good point.

>> Value contains a text string that
>>    corresponds to the vCard property's value.
> 
> What about integers? Floats? Booleans? Can they be expressed with native
> JavaScript types or do they need to be stringified?

IMHO it would be good to express them with native types.

>>        "tel": {
>>        "type": [ "voice", "video" ],
>>        "uri": "tel:+1-555-555-555"
>>        }
> 
> This assumes that the parameter namespace is disjoint from the value
> type namespace. This is true for now, but is not required by vCard 4.

I had not understood that from the vCard4 spec.

> Maybe add an IANA consideration to the effect that in the future
> parameter names and value type names must not clash?

Wouldn't that belong in rfc6350bis?

>> properties with cardinality of
>>    more than one are converted to a JSON array object
> 
> This means that property order is not guaranteed to be preserved when
> round-tripping JSON <-> vCard. I think it's acceptable, but it should be
> pointed out.
> 
> Also, do JSON dictionaries preserve key order? If not, that's another
> reason why property order wouldn't be preserved.

As Julian pointed out, order isn't preserved. We'll add a note about
this in the text.

>> The group construct
>>    (Section 3.2 in [RFC6350]) is represented with the JSON object of the
>>    same name.  For example:
>>
>>    {
>>        "version" : "4.0"
>>        "contact": {
>>            "fn": "...",
>>            "email": "..."
>>        },
>>        "media" : {
>>            "photo": "..."
>>        },
>>        "categories": "..."
>>    }
>>
>>              Figure 3: Mapping of lists and structured values
>>
>>    ... is equivalent to:
>>
>>    BEGIN:VCARD
>>    VERSION:4.0
>>    contact.FN=...
>>    contact.EMAIL=...
>>    media.PHOTO=...
>>    CATEGORIES=...
>>    END:VCARD
>>
>>                      Figure 4: Plain vCard equivalent
> 
> Ouch. What happens if I have a group named "version"?

Ouch. Don't do that. :)

But seriously, this requires more thought. At least on my part.

>> If there is no VALUE parameter
>>    specified, it is treated as equivalent to VALUE=text.
> 
> Proposal: instead of "text" unconditionally, make it default to the
> default value type of the property. So that you could simply write:
> 
> "bday": "--0203"

Yes, that's better (see above).

>>    BEGIN:VCARD
>>    VERSION:4.0
>>    EMAIL;VALUE=text;type=work:simon.perreault@viagenie.ca
>>    GEO;VALUE=uri;type=work:geo:46.766336,-71.28955
>>    BDATE;VALUE=date:--0203
>>    END:VCARD
>>
>>                      Figure 6: Plain vCard equivalent
> 
> s/BDATE/BDAY/
> 
> Also, the FN property is mandatory.

True. We'll fix that.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/





From stpeter@stpeter.im  Thu Jun  7 09:18:03 2012
Return-Path: <stpeter@stpeter.im>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 41EBD11E810C for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 09:18:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.78
X-Spam-Level: 
X-Spam-Status: No, score=-102.78 tagged_above=-999 required=5 tests=[AWL=-0.181, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 ymLlYNAQJoIu for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 09:18:02 -0700 (PDT)
Received: from stpeter.im (mailhost.stpeter.im [207.210.219.225]) by ietfa.amsl.com (Postfix) with ESMTP id 9750311E8085 for <vcarddav@ietf.org>; Thu,  7 Jun 2012 09:18:02 -0700 (PDT)
Received: from [64.101.72.115] (unknown [64.101.72.115]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id A51A0400A4; Thu,  7 Jun 2012 10:34:55 -0600 (MDT)
Message-ID: <4FD0D438.3060703@stpeter.im>
Date: Thu, 07 Jun 2012 10:18:00 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120601 Thunderbird/13.0
MIME-Version: 1.0
To: Cyrus Daboo <cyrus@daboo.name>
References: <4FCFFECA.8010507@stpeter.im> <D340A1259E74CA7A7879FE29@cyrus.local>
In-Reply-To: <D340A1259E74CA7A7879FE29@cyrus.local>
X-Enigmail-Version: 1.4.2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jun 2012 16:18:03 -0000

On 6/7/12 8:52 AM, Cyrus Daboo wrote:
> Hi Peter,
> 
> --On June 6, 2012 7:07:22 PM -0600 Peter Saint-Andre
> <stpeter@stpeter.im> wrote:
> 
>> My colleague Raghu Bhat and I have submitted the initial version of a
>> JSON representation for vCard4, and would welcome your feedback.
>>
>> http://www.ietf.org/id/draft-bhat-vcarddav-json-00.txt
> 
> Folks at CalConnect have been working on a JSON format for iCalendar.
> Right now looks like we differ quite a lot on our thinking of how the
> format should work. Below is an example of what our current thinking is.

Hi Cyrus,

I can see why you pursued that "regularization" strategy. I don't quite
agree with it yet, but I understand your perspective. I'll reply again
once I've had a chance to chat with my co-author.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/





From cyrus@daboo.name  Thu Jun  7 09:20:21 2012
Return-Path: <cyrus@daboo.name>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0DEC411E810F for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 09:20:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.599
X-Spam-Level: 
X-Spam-Status: No, score=-102.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 GH-klRUEvkv7 for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 09:20:20 -0700 (PDT)
Received: from daboo.name (daboo.name [173.13.55.49]) by ietfa.amsl.com (Postfix) with ESMTP id 6659611E810C for <vcarddav@ietf.org>; Thu,  7 Jun 2012 09:20:20 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by daboo.name (Postfix) with ESMTP id E7E6A28CC82A; Thu,  7 Jun 2012 12:20:19 -0400 (EDT)
X-Virus-Scanned: amavisd-new at daboo.name
Received: from daboo.name ([127.0.0.1]) by localhost (daboo.name [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HGMagWbfADwi; Thu,  7 Jun 2012 12:20:18 -0400 (EDT)
Received: from [10.0.1.8] (unknown [17.224.23.127]) by daboo.name (Postfix) with ESMTPSA id 4A11828CC81D; Thu,  7 Jun 2012 12:20:17 -0400 (EDT)
Date: Thu, 07 Jun 2012 09:20:26 -0700
From: Cyrus Daboo <cyrus@daboo.name>
To: Peter Saint-Andre <stpeter@stpeter.im>, Simon Perreault <simon.perreault@viagenie.ca>
Message-ID: <C409641A30353CA2B81B07DC@cyrus.local>
In-Reply-To: <4FD0D27F.5070706@stpeter.im>
References: <4FCFFECA.8010507@stpeter.im> <4FD0C14D.1010406@viagenie.ca> <4FD0D27F.5070706@stpeter.im>
X-Mailer: Mulberry/4.1.0a3 (Mac OS X)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; size=1260
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jun 2012 16:20:21 -0000

Hi Peter,

--On June 7, 2012 10:10:39 AM -0600 Peter Saint-Andre <stpeter@stpeter.im> 
wrote:

>> I hope not. What you have is fine. But it needs justification.
>
> Why would use an array (an ordered collection of values) when there is
> only one value? We were aiming for simplicity.

So this is one case where I would argue for a "regular" syntax - namely one 
that does not need to special case each property. i.e. the a JSON generator 
should not have to care what the cardinality of particular properties are - 
they should just write out each one, whether or not they occur multiple 
times. Having to special case cardinality leads to the need to build such 
rules into the generator for every "known" property and then "guess" what 
might be appropriate for new properties not yet registered or newly 
registered yet not accounted for. That will pose a major issue for 
extensibility. I would argue that a "regular" syntax is simpler than what 
you have now (with the trade off that it is more "verbose"). I think it 
will would greatly improve quality of code/interoperability to avoid 
special casing properties etc

That said, some properties will need to be special cased - namely 
structured ones - but those are more manageable.


-- 
Cyrus Daboo


From simon.perreault@viagenie.ca  Thu Jun  7 09:47:09 2012
Return-Path: <simon.perreault@viagenie.ca>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F1BD721F8776 for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 09:47:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.27
X-Spam-Level: 
X-Spam-Status: No, score=-2.27 tagged_above=-999 required=5 tests=[AWL=-0.270,  BAYES_00=-2.599, J_CHICKENPOX_61=0.6, NO_RELAYS=-0.001]
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 e2phqSZdY1jk for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 09:47:08 -0700 (PDT)
Received: from jazz.viagenie.ca (unknown [IPv6:2620:0:230:8000:226:55ff:fe57:14db]) by ietfa.amsl.com (Postfix) with ESMTP id AA6A921F86FD for <vcarddav@ietf.org>; Thu,  7 Jun 2012 09:47:01 -0700 (PDT)
Received: from ringo.viagenie.ca (unknown [IPv6:2620:0:230:c064:b4da:23a8:649d:b10c]) by jazz.viagenie.ca (Postfix) with ESMTPSA id 154B64162B; Thu,  7 Jun 2012 12:47:01 -0400 (EDT)
Message-ID: <4FD0DB04.6040604@viagenie.ca>
Date: Thu, 07 Jun 2012 12:47:00 -0400
From: Simon Perreault <simon.perreault@viagenie.ca>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1
MIME-Version: 1.0
To: Peter Saint-Andre <stpeter@stpeter.im>
References: <4FCFFECA.8010507@stpeter.im> <4FD0C14D.1010406@viagenie.ca> <4FD0D27F.5070706@stpeter.im>
In-Reply-To: <4FD0D27F.5070706@stpeter.im>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jun 2012 16:47:09 -0000

On 2012-06-07 12:10, Peter Saint-Andre wrote:
>>>         "gender": { "sex" : "M" },
>>
>> This is super ugly. I know that's how it is in xCard, but xCard is what
>> it is and is super ugly in various other ways. It would be nice if we
>> could have simply:
>>
>> "gender": "M"
>
> I like the simplicity, but I wonder if we're losing information. Would
> you suggest that we do the same thing for all properties? For example:
>
> "bday": "--0203"
>
> "anniversary": "20090808T1430-0500"

bday and anniversary are different from gender. They are single 
date-and-or-time values by default. Whereas gender is a compound property.

The gender examples from vCard could be expressed like this:

      GENDER:M
      GENDER:F
      GENDER:M;Fellow
      GENDER:F;grrrl
      GENDER:O;intersex
      GENDER:;it's complicated

"gender": "M"
"gender": "F"
"gender": ["M", "Fellow"]
"gender": ["F", "grrrl"]
"gender": ["O", "intersex"]
"gender": ["", "it's complicated"]

or even possibly:
"gender": "it's complicated"

You can see I'm not arguing for regularity...

>>>         "org": {
>>>             "type": "work",
>>>             "text": "Viagenie"
>>>         },
>>
>> Shouldn't this be
>>
>>         "org": {
>>             "type": "work",
>>             "text": ["Viagenie"]
>>         },
>>
>> ?
>>
>> I hope not. What you have is fine. But it needs justification.
>
> Why would use an array (an ordered collection of values) when there is
> only one value? We were aiming for simplicity.

I guess regularity would dictate using an array even for a single value 
because there is the possibility of multiple values...

>> Maybe add an IANA consideration to the effect that in the future
>> parameter names and value type names must not clash?
>
> Wouldn't that belong in rfc6350bis?

Yes, but if jCard depends on it then maybe it would be quicker to just 
add it to jCard.

Simon
-- 
DTN made easy, lean, and smart --> http://postellation.viagenie.ca
NAT64/DNS64 open-source        --> http://ecdysis.viagenie.ca
STUN/TURN server               --> http://numb.viagenie.ca

From ragbhat@cisco.com  Thu Jun  7 12:07:40 2012
Return-Path: <ragbhat@cisco.com>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 24BDB21F8731 for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 12:07:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.268
X-Spam-Level: 
X-Spam-Status: No, score=-8.268 tagged_above=-999 required=5 tests=[AWL=1.732,  BAYES_00=-2.599, J_CHICKENPOX_61=0.6, RCVD_IN_DNSWL_HI=-8]
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 7KGvyOP3hoRW for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 12:07:39 -0700 (PDT)
Received: from mtv-iport-1.cisco.com (mtv-iport-1.cisco.com [173.36.130.12]) by ietfa.amsl.com (Postfix) with ESMTP id 5FC2F21F872E for <vcarddav@ietf.org>; Thu,  7 Jun 2012 12:07:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=ragbhat@cisco.com; l=3427; q=dns/txt; s=iport; t=1339096059; x=1340305659; h=mime-version:content-transfer-encoding:subject:date: message-id:in-reply-to:references:from:to:cc; bh=rwexom6Y9CKjjOfxEPINMPMS8X3T3sKyLW8Jc2sYIs4=; b=Z1gMI8vfcUzH9/zZrYkaEdcxj0odwi6k4gYgXh/rKz9Q5eaPU+LdGqYK k2VjTFpjDgW7CjX/fcTTPOSH1gpp1HtVPt3Z3Rh7zUpHzrGCs5fY5QvxY DYyW11Bv01FudkylrGmaldaTu50MSqNQVO48Siczo3vRR/o6CoWX4JbT2 Y=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AgAFAJL70E+rRDoG/2dsb2JhbABFtCuBB4IYAQEBAwEBAQEPARQJCjQLBQcEAgEIEQQBAQEKBhcBBgEmHwkIAQEEARIIGodkBAELmS+XUIgpix2FLGADiECNb40CgWaDAA
X-IronPort-AV: E=Sophos;i="4.75,732,1330905600"; d="scan'208";a="44964359"
Received: from mtv-core-1.cisco.com ([171.68.58.6]) by mtv-iport-1.cisco.com with ESMTP; 07 Jun 2012 19:07:39 +0000
Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by mtv-core-1.cisco.com (8.14.5/8.14.5) with ESMTP id q57J7d18004018; Thu, 7 Jun 2012 19:07:39 GMT
Received: from xmb-sjc-21d.amer.cisco.com ([171.70.151.140]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.4675);  Thu, 7 Jun 2012 12:07:38 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Thu, 7 Jun 2012 12:07:37 -0700
Message-ID: <93E73285DA3584449E2CD5E9414E16C3038555B4@xmb-sjc-21d.amer.cisco.com>
In-Reply-To: <4FD0DB04.6040604@viagenie.ca>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [VCARDDAV] JSON representation
Thread-Index: Ac1EzTC1wpaWqzYdSHKr9dwurQk2rQAEfwBw
References: <4FCFFECA.8010507@stpeter.im> <4FD0C14D.1010406@viagenie.ca><4FD0D27F.5070706@stpeter.im> <4FD0DB04.6040604@viagenie.ca>
From: "Raghurama Bhat (ragbhat)" <ragbhat@cisco.com>
To: "Simon Perreault" <simon.perreault@viagenie.ca>, "Peter Saint-Andre" <stpeter@stpeter.im>
X-OriginalArrivalTime: 07 Jun 2012 19:07:38.0910 (UTC) FILETIME=[CE5BD3E0:01CD44E0]
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jun 2012 19:07:40 -0000

------------------------------------------------------------------------
-----------------------------------------
The gender examples from vCard could be expressed like this:
     GENDER:M
      GENDER:F
      GENDER:M;Fellow
      GENDER:F;grrrl
      GENDER:O;intersex
      GENDER:;it's complicated

"gender": "M"
"gender": "F"
"gender": ["M", "Fellow"]
"gender": ["F", "grrrl"]
"gender": ["O", "intersex"]
"gender": ["", "it's complicated"]
------------------------------------------------------------------------
-----------------------------------------
I like the simplicity for the simple case, but aren't we losing some
information in cases 3-6 above? You would not know which one is the
value and which one is the parameter unless you rely on order.  I don't
believe JSON converters are required to preserve order.

Thanks,

--Raghu

-----Original Message-----
From: vcarddav-bounces@ietf.org [mailto:vcarddav-bounces@ietf.org] On
Behalf Of Simon Perreault
Sent: Thursday, June 07, 2012 9:47 AM
To: Peter Saint-Andre
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation

On 2012-06-07 12:10, Peter Saint-Andre wrote:
>>>         "gender": { "sex" : "M" },
>>
>> This is super ugly. I know that's how it is in xCard, but xCard is=20
>> what it is and is super ugly in various other ways. It would be nice=20
>> if we could have simply:
>>
>> "gender": "M"
>
> I like the simplicity, but I wonder if we're losing information. Would

> you suggest that we do the same thing for all properties? For example:
>
> "bday": "--0203"
>
> "anniversary": "20090808T1430-0500"

bday and anniversary are different from gender. They are single
date-and-or-time values by default. Whereas gender is a compound
property.

The gender examples from vCard could be expressed like this:

      GENDER:M
      GENDER:F
      GENDER:M;Fellow
      GENDER:F;grrrl
      GENDER:O;intersex
      GENDER:;it's complicated

"gender": "M"
"gender": "F"
"gender": ["M", "Fellow"]
"gender": ["F", "grrrl"]
"gender": ["O", "intersex"]
"gender": ["", "it's complicated"]

or even possibly:
"gender": "it's complicated"

You can see I'm not arguing for regularity...

>>>         "org": {
>>>             "type": "work",
>>>             "text": "Viagenie"
>>>         },
>>
>> Shouldn't this be
>>
>>         "org": {
>>             "type": "work",
>>             "text": ["Viagenie"]
>>         },
>>
>> ?
>>
>> I hope not. What you have is fine. But it needs justification.
>
> Why would use an array (an ordered collection of values) when there is

> only one value? We were aiming for simplicity.

I guess regularity would dictate using an array even for a single value
because there is the possibility of multiple values...

>> Maybe add an IANA consideration to the effect that in the future=20
>> parameter names and value type names must not clash?
>
> Wouldn't that belong in rfc6350bis?

Yes, but if jCard depends on it then maybe it would be quicker to just
add it to jCard.

Simon
--
DTN made easy, lean, and smart --> http://postellation.viagenie.ca
NAT64/DNS64 open-source        --> http://ecdysis.viagenie.ca
STUN/TURN server               --> http://numb.viagenie.ca
_______________________________________________
VCARDDAV mailing list
VCARDDAV@ietf.org
https://www.ietf.org/mailman/listinfo/vcarddav

From simon.perreault@viagenie.ca  Thu Jun  7 12:12:28 2012
Return-Path: <simon.perreault@viagenie.ca>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DA6B311E809D for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 12:12:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.245
X-Spam-Level: 
X-Spam-Status: No, score=-2.245 tagged_above=-999 required=5 tests=[AWL=-0.245, BAYES_00=-2.599, J_CHICKENPOX_61=0.6, NO_RELAYS=-0.001]
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 AD7MvO3GNkCw for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 12:12:28 -0700 (PDT)
Received: from jazz.viagenie.ca (unknown [IPv6:2620:0:230:8000:226:55ff:fe57:14db]) by ietfa.amsl.com (Postfix) with ESMTP id 3903A11E8072 for <vcarddav@ietf.org>; Thu,  7 Jun 2012 12:12:28 -0700 (PDT)
Received: from ringo.viagenie.ca (unknown [IPv6:2620:0:230:c064:b4da:23a8:649d:b10c]) by jazz.viagenie.ca (Postfix) with ESMTPSA id 9911842663; Thu,  7 Jun 2012 15:12:27 -0400 (EDT)
Message-ID: <4FD0FD1B.9000300@viagenie.ca>
Date: Thu, 07 Jun 2012 15:12:27 -0400
From: Simon Perreault <simon.perreault@viagenie.ca>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1
MIME-Version: 1.0
To: "Raghurama Bhat (ragbhat)" <ragbhat@cisco.com>
References: <4FCFFECA.8010507@stpeter.im> <4FD0C14D.1010406@viagenie.ca><4FD0D27F.5070706@stpeter.im> <4FD0DB04.6040604@viagenie.ca> <93E73285DA3584449E2CD5E9414E16C3038555B4@xmb-sjc-21d.amer.cisco.com>
In-Reply-To: <93E73285DA3584449E2CD5E9414E16C3038555B4@xmb-sjc-21d.amer.cisco.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jun 2012 19:12:29 -0000

On 2012-06-07 15:07, Raghurama Bhat (ragbhat) wrote:
> ------------------------------------------------------------------------
> -----------------------------------------
> The gender examples from vCard could be expressed like this:
>       GENDER:M
>        GENDER:F
>        GENDER:M;Fellow
>        GENDER:F;grrrl
>        GENDER:O;intersex
>        GENDER:;it's complicated
>
> "gender": "M"
> "gender": "F"
> "gender": ["M", "Fellow"]
> "gender": ["F", "grrrl"]
> "gender": ["O", "intersex"]
> "gender": ["", "it's complicated"]
> ------------------------------------------------------------------------
> -----------------------------------------
> I like the simplicity for the simple case, but aren't we losing some
> information in cases 3-6 above? You would not know which one is the
> value and which one is the parameter unless you rely on order.  I don't
> believe JSON converters are required to preserve order.

I'm not sure I'm following you. You mean JSON lists may be arbitrarily 
reordered? If this is the case then there may be many more problems...

Simon
-- 
DTN made easy, lean, and smart --> http://postellation.viagenie.ca
NAT64/DNS64 open-source        --> http://ecdysis.viagenie.ca
STUN/TURN server               --> http://numb.viagenie.ca

From ragbhat@cisco.com  Thu Jun  7 12:14:39 2012
Return-Path: <ragbhat@cisco.com>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2C33C11E80A3 for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 12:14:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.133
X-Spam-Level: 
X-Spam-Status: No, score=-9.133 tagged_above=-999 required=5 tests=[AWL=0.866,  BAYES_00=-2.599, J_CHICKENPOX_61=0.6, RCVD_IN_DNSWL_HI=-8]
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 x57I2z8R02DV for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 12:14:38 -0700 (PDT)
Received: from mtv-iport-1.cisco.com (mtv-iport-1.cisco.com [173.36.130.12]) by ietfa.amsl.com (Postfix) with ESMTP id 94CF011E809D for <vcarddav@ietf.org>; Thu,  7 Jun 2012 12:14:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=ragbhat@cisco.com; l=1673; q=dns/txt; s=iport; t=1339096478; x=1340306078; h=mime-version:content-transfer-encoding:subject:date: message-id:in-reply-to:references:from:to:cc; bh=RnGvNJwluKWR1EToTLBW9xltUO7OmUtXfWc4hL+gTek=; b=DhshsCMhm9IrMl0pPe4xaQZOst28LEizrqEBE+kXvvNwydNxgNedt0XR Y2I3yTAUup8D67K2ARP/CjdUM13F7sVRP1UkjWtyn6bkZT001iuS9XhlK +iplLb2cUWSji5z4yX1a/W/FDJ5wzQ23WxKkAcC1U6NwUuUFZu2GH0b5S Y=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av8EAGb80E+rRDoH/2dsb2JhbABFtCuBB4IYAQEBBBIBFAkKPwwEAgEIEQQBAQEKBhcBBgFFCQgBAQQTCBqHaJk8l1CIKYsdhSxgA4hAjW+NAoFmgwA
X-IronPort-AV: E=Sophos;i="4.75,732,1330905600"; d="scan'208";a="44965295"
Received: from mtv-core-2.cisco.com ([171.68.58.7]) by mtv-iport-1.cisco.com with ESMTP; 07 Jun 2012 19:14:35 +0000
Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by mtv-core-2.cisco.com (8.14.5/8.14.5) with ESMTP id q57JEZiZ030378; Thu, 7 Jun 2012 19:14:35 GMT
Received: from xmb-sjc-21d.amer.cisco.com ([171.70.151.140]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.4675);  Thu, 7 Jun 2012 12:14:35 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Thu, 7 Jun 2012 12:14:32 -0700
Message-ID: <93E73285DA3584449E2CD5E9414E16C3038555C0@xmb-sjc-21d.amer.cisco.com>
In-Reply-To: <4FD0FD1B.9000300@viagenie.ca>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [VCARDDAV] JSON representation
Thread-Index: Ac1E4YDAiCcl+/KQRw2lNUd5AG9LVwAACtZQ
References: <4FCFFECA.8010507@stpeter.im> <4FD0C14D.1010406@viagenie.ca><4FD0D27F.5070706@stpeter.im> <4FD0DB04.6040604@viagenie.ca> <93E73285DA3584449E2CD5E9414E16C3038555B4@xmb-sjc-21d.amer.cisco.com> <4FD0FD1B.9000300@viagenie.ca>
From: "Raghurama Bhat (ragbhat)" <ragbhat@cisco.com>
To: "Simon Perreault" <simon.perreault@viagenie.ca>
X-OriginalArrivalTime: 07 Jun 2012 19:14:35.0100 (UTC) FILETIME=[C66D61C0:01CD44E1]
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jun 2012 19:14:39 -0000

Yes. That is what I mean. You cannot rely on element order in JSON
arrays to be preserved

--Raghu

-----Original Message-----
From: Simon Perreault [mailto:simon.perreault@viagenie.ca]=20
Sent: Thursday, June 07, 2012 12:12 PM
To: Raghurama Bhat (ragbhat)
Cc: Peter Saint-Andre; vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation

On 2012-06-07 15:07, Raghurama Bhat (ragbhat) wrote:
> ----------------------------------------------------------------------
> --
> -----------------------------------------
> The gender examples from vCard could be expressed like this:
>       GENDER:M
>        GENDER:F
>        GENDER:M;Fellow
>        GENDER:F;grrrl
>        GENDER:O;intersex
>        GENDER:;it's complicated
>
> "gender": "M"
> "gender": "F"
> "gender": ["M", "Fellow"]
> "gender": ["F", "grrrl"]
> "gender": ["O", "intersex"]
> "gender": ["", "it's complicated"]
> ----------------------------------------------------------------------
> --
> -----------------------------------------
> I like the simplicity for the simple case, but aren't we losing some=20
> information in cases 3-6 above? You would not know which one is the=20
> value and which one is the parameter unless you rely on order.  I=20
> don't believe JSON converters are required to preserve order.

I'm not sure I'm following you. You mean JSON lists may be arbitrarily
reordered? If this is the case then there may be many more problems...

Simon
--
DTN made easy, lean, and smart --> http://postellation.viagenie.ca
NAT64/DNS64 open-source        --> http://ecdysis.viagenie.ca
STUN/TURN server               --> http://numb.viagenie.ca

From julian.reschke@gmx.de  Thu Jun  7 12:19:15 2012
Return-Path: <julian.reschke@gmx.de>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 24C9D11E8139 for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 12:19:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.313
X-Spam-Level: 
X-Spam-Status: No, score=-104.313 tagged_above=-999 required=5 tests=[AWL=-1.714, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 VjPKObOKUCfs for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 12:19:14 -0700 (PDT)
Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by ietfa.amsl.com (Postfix) with SMTP id E3B6A11E8107 for <vcarddav@ietf.org>; Thu,  7 Jun 2012 12:19:13 -0700 (PDT)
Received: (qmail invoked by alias); 07 Jun 2012 19:19:12 -0000
Received: from p5DD972CB.dip.t-dialin.net (EHLO [192.168.178.36]) [93.217.114.203] by mail.gmx.net (mp037) with SMTP; 07 Jun 2012 21:19:12 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1/BqGRbT3rB7J+8NDPKwpsfwGFZHbeKcMEhPXMdcQ ycSg4VJSd1mFHA
Message-ID: <4FD0FE89.9000908@gmx.de>
Date: Thu, 07 Jun 2012 21:18:33 +0200
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120604 Thunderbird/13.0
MIME-Version: 1.0
To: "Raghurama Bhat (ragbhat)" <ragbhat@cisco.com>
References: <4FCFFECA.8010507@stpeter.im> <4FD0C14D.1010406@viagenie.ca><4FD0D27F.5070706@stpeter.im> <4FD0DB04.6040604@viagenie.ca> <93E73285DA3584449E2CD5E9414E16C3038555B4@xmb-sjc-21d.amer.cisco.com> <4FD0FD1B.9000300@viagenie.ca> <93E73285DA3584449E2CD5E9414E16C3038555C0@xmb-sjc-21d.amer.cisco.com>
In-Reply-To: <93E73285DA3584449E2CD5E9414E16C3038555C0@xmb-sjc-21d.amer.cisco.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jun 2012 19:19:15 -0000

On 2012-06-07 21:14, Raghurama Bhat (ragbhat) wrote:
> Yes. That is what I mean. You cannot rely on element order in JSON
> arrays to be preserved
> ...

Sorry?

I think you are confusing array members with object members.


From simon.perreault@viagenie.ca  Thu Jun  7 12:19:40 2012
Return-Path: <simon.perreault@viagenie.ca>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7BC7611E8107 for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 12:19:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.525
X-Spam-Level: 
X-Spam-Status: No, score=-2.525 tagged_above=-999 required=5 tests=[AWL=0.075,  BAYES_00=-2.599, NO_RELAYS=-0.001]
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 E+taBioNoQjT for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 12:19:39 -0700 (PDT)
Received: from jazz.viagenie.ca (unknown [IPv6:2620:0:230:8000:226:55ff:fe57:14db]) by ietfa.amsl.com (Postfix) with ESMTP id CB21511E80B0 for <vcarddav@ietf.org>; Thu,  7 Jun 2012 12:19:39 -0700 (PDT)
Received: from ringo.viagenie.ca (unknown [IPv6:2620:0:230:c064:b4da:23a8:649d:b10c]) by jazz.viagenie.ca (Postfix) with ESMTPSA id 30EA24162B; Thu,  7 Jun 2012 15:19:39 -0400 (EDT)
Message-ID: <4FD0FECA.7000309@viagenie.ca>
Date: Thu, 07 Jun 2012 15:19:38 -0400
From: Simon Perreault <simon.perreault@viagenie.ca>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1
MIME-Version: 1.0
To: "Raghurama Bhat (ragbhat)" <ragbhat@cisco.com>
References: <4FCFFECA.8010507@stpeter.im> <4FD0C14D.1010406@viagenie.ca><4FD0D27F.5070706@stpeter.im> <4FD0DB04.6040604@viagenie.ca> <93E73285DA3584449E2CD5E9414E16C3038555B4@xmb-sjc-21d.amer.cisco.com> <4FD0FD1B.9000300@viagenie.ca> <93E73285DA3584449E2CD5E9414E16C3038555C0@xmb-sjc-21d.amer.cisco.com>
In-Reply-To: <93E73285DA3584449E2CD5E9414E16C3038555C0@xmb-sjc-21d.amer.cisco.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jun 2012 19:19:40 -0000

On 2012-06-07 15:14, Raghurama Bhat (ragbhat) wrote:
> You cannot rely on element order in JSON
> arrays to be preserved

Are you really sure?

http://stackoverflow.com/questions/7214293/is-the-order-of-elements-in-a-json-list-maintained

Simon
-- 
DTN made easy, lean, and smart --> http://postellation.viagenie.ca
NAT64/DNS64 open-source        --> http://ecdysis.viagenie.ca
STUN/TURN server               --> http://numb.viagenie.ca

From stpeter@stpeter.im  Thu Jun  7 12:19:54 2012
Return-Path: <stpeter@stpeter.im>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2FCB721F8594 for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 12:19:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.549
X-Spam-Level: 
X-Spam-Status: No, score=-102.549 tagged_above=-999 required=5 tests=[AWL=-0.550, BAYES_00=-2.599, J_CHICKENPOX_61=0.6, USER_IN_WHITELIST=-100]
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 0Ua-0o4jHKa1 for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 12:19:53 -0700 (PDT)
Received: from stpeter.im (mailhost.stpeter.im [207.210.219.225]) by ietfa.amsl.com (Postfix) with ESMTP id 7FC2C21F852C for <vcarddav@ietf.org>; Thu,  7 Jun 2012 12:19:53 -0700 (PDT)
Received: from [64.101.72.115] (unknown [64.101.72.115]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 863274010C; Thu,  7 Jun 2012 13:36:46 -0600 (MDT)
Message-ID: <4FD0FED7.7010109@stpeter.im>
Date: Thu, 07 Jun 2012 13:19:51 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120601 Thunderbird/13.0
MIME-Version: 1.0
To: Simon Perreault <simon.perreault@viagenie.ca>
References: <4FCFFECA.8010507@stpeter.im> <4FD0C14D.1010406@viagenie.ca> <4FD0D27F.5070706@stpeter.im> <4FD0DB04.6040604@viagenie.ca>
In-Reply-To: <4FD0DB04.6040604@viagenie.ca>
X-Enigmail-Version: 1.4.2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jun 2012 19:19:54 -0000

On 6/7/12 10:47 AM, Simon Perreault wrote:
> On 2012-06-07 12:10, Peter Saint-Andre wrote:
>>>>         "gender": { "sex" : "M" },
>>>
>>> This is super ugly. I know that's how it is in xCard, but xCard is what
>>> it is and is super ugly in various other ways. It would be nice if we
>>> could have simply:
>>>
>>> "gender": "M"
>>
>> I like the simplicity, but I wonder if we're losing information. Would
>> you suggest that we do the same thing for all properties? For example:
>>
>> "bday": "--0203"
>>
>> "anniversary": "20090808T1430-0500"
> 
> bday and anniversary are different from gender. They are single
> date-and-or-time values by default. Whereas gender is a compound property.
> 
> The gender examples from vCard could be expressed like this:
> 
>      GENDER:M
>      GENDER:F
>      GENDER:M;Fellow
>      GENDER:F;grrrl
>      GENDER:O;intersex
>      GENDER:;it's complicated
> 
> "gender": "M"
> "gender": "F"
> "gender": ["M", "Fellow"]
> "gender": ["F", "grrrl"]
> "gender": ["O", "intersex"]
> "gender": ["", "it's complicated"]
> 
> or even possibly:
> "gender": "it's complicated"
> 
> You can see I'm not arguing for regularity...
> 
>>>>         "org": {
>>>>             "type": "work",
>>>>             "text": "Viagenie"
>>>>         },
>>>
>>> Shouldn't this be
>>>
>>>         "org": {
>>>             "type": "work",
>>>             "text": ["Viagenie"]
>>>         },
>>>
>>> ?
>>>
>>> I hope not. What you have is fine. But it needs justification.
>>
>> Why would use an array (an ordered collection of values) when there is
>> only one value? We were aiming for simplicity.
> 
> I guess regularity would dictate using an array even for a single value
> because there is the possibility of multiple values...

Yes, it would.

>>> Maybe add an IANA consideration to the effect that in the future
>>> parameter names and value type names must not clash?
>>
>> Wouldn't that belong in rfc6350bis?
> 
> Yes, but if jCard depends on it then maybe it would be quicker to just
> add it to jCard.

Well, if we're asking IANA to change its registration procedures for
vCard parameter names and value type names, then that belongs in
6350bis. If we're making a note regarding criteria that expert reviewers
and the IESG might want to take into account, then it seems acceptable
to do that in the jCard spec (perhaps flagging it as something that
needs to be addressed more officially in 6350bis).

Peter

-- 
Peter Saint-Andre
https://stpeter.im/





From simon.perreault@viagenie.ca  Thu Jun  7 12:21:21 2012
Return-Path: <simon.perreault@viagenie.ca>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D3AB911E80EF for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 12:21:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.531
X-Spam-Level: 
X-Spam-Status: No, score=-2.531 tagged_above=-999 required=5 tests=[AWL=0.069,  BAYES_00=-2.599, NO_RELAYS=-0.001]
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 bgjoay+DdJQb for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 12:21:21 -0700 (PDT)
Received: from jazz.viagenie.ca (unknown [IPv6:2620:0:230:8000:226:55ff:fe57:14db]) by ietfa.amsl.com (Postfix) with ESMTP id AD2A121F8594 for <vcarddav@ietf.org>; Thu,  7 Jun 2012 12:21:20 -0700 (PDT)
Received: from ringo.viagenie.ca (unknown [IPv6:2620:0:230:c064:b4da:23a8:649d:b10c]) by jazz.viagenie.ca (Postfix) with ESMTPSA id 0593D4162B; Thu,  7 Jun 2012 15:21:19 -0400 (EDT)
Message-ID: <4FD0FF2F.3060204@viagenie.ca>
Date: Thu, 07 Jun 2012 15:21:19 -0400
From: Simon Perreault <simon.perreault@viagenie.ca>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1
MIME-Version: 1.0
To: Peter Saint-Andre <stpeter@stpeter.im>
References: <4FCFFECA.8010507@stpeter.im> <4FD0C14D.1010406@viagenie.ca> <4FD0D27F.5070706@stpeter.im> <4FD0DB04.6040604@viagenie.ca> <4FD0FED7.7010109@stpeter.im>
In-Reply-To: <4FD0FED7.7010109@stpeter.im>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jun 2012 19:21:22 -0000

On 2012-06-07 15:19, Peter Saint-Andre wrote:
>>>> Maybe add an IANA consideration to the effect that in the future
>>>> parameter names and value type names must not clash?
>>>
>>> Wouldn't that belong in rfc6350bis?
>>
>> Yes, but if jCard depends on it then maybe it would be quicker to just
>> add it to jCard.
>
> Well, if we're asking IANA to change its registration procedures for
> vCard parameter names and value type names, then that belongs in
> 6350bis. If we're making a note regarding criteria that expert reviewers
> and the IESG might want to take into account, then it seems acceptable
> to do that in the jCard spec (perhaps flagging it as something that
> needs to be addressed more officially in 6350bis).

Works for me!

Simon
-- 
DTN made easy, lean, and smart --> http://postellation.viagenie.ca
NAT64/DNS64 open-source        --> http://ecdysis.viagenie.ca
STUN/TURN server               --> http://numb.viagenie.ca

From ragbhat@cisco.com  Thu Jun  7 12:28:20 2012
Return-Path: <ragbhat@cisco.com>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9A60B21F86FE for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 12:28:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.722
X-Spam-Level: 
X-Spam-Status: No, score=-9.722 tagged_above=-999 required=5 tests=[AWL=0.877,  BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
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 FmnTeA5HWeKn for <vcarddav@ietfa.amsl.com>; Thu,  7 Jun 2012 12:28:19 -0700 (PDT)
Received: from mtv-iport-1.cisco.com (mtv-iport-1.cisco.com [173.36.130.12]) by ietfa.amsl.com (Postfix) with ESMTP id E98A721F851B for <vcarddav@ietf.org>; Thu,  7 Jun 2012 12:28:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=ragbhat@cisco.com; l=867; q=dns/txt; s=iport; t=1339097299; x=1340306899; h=mime-version:content-transfer-encoding:subject:date: message-id:in-reply-to:references:from:to:cc; bh=Q9F2cIRPUr/WDI3s+DrigpDTMPCTmumRorCd3pzI90U=; b=DfpqHYFE4C6RHU0tPmUUqbE5ES8Jb5jDUziAWxyS9QAlfcUv3KMIxsSX uNl+w0CK7aATk9OQtS7NLKFdyl7XPSHn4/5XgpWfWFei8Maq+MrSsO2HO JkLRGC2S9NfeSoRLXR3/Zolp7rWrkUkxoMS6LpADNkIdROF9HZ3/mqi0A w=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av8EADwA0U+rRDoI/2dsb2JhbABFtC+BB4IYAQEBBBIBFAkKPwwEAgEIEQQBAQEKBhcBBgFFCQgBAQQTCBqHaAyZJp92ix2FIGADiECNb40CgWaDAA
X-IronPort-AV: E=Sophos;i="4.75,732,1330905600"; d="scan'208";a="44966860"
Received: from mtv-core-3.cisco.com ([171.68.58.8]) by mtv-iport-1.cisco.com with ESMTP; 07 Jun 2012 19:28:19 +0000
Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by mtv-core-3.cisco.com (8.14.5/8.14.5) with ESMTP id q57JSItS018580; Thu, 7 Jun 2012 19:28:19 GMT
Received: from xmb-sjc-21d.amer.cisco.com ([171.70.151.140]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.4675);  Thu, 7 Jun 2012 12:28:17 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Thu, 7 Jun 2012 12:28:15 -0700
Message-ID: <93E73285DA3584449E2CD5E9414E16C3038555DE@xmb-sjc-21d.amer.cisco.com>
In-Reply-To: <4FD0FECA.7000309@viagenie.ca>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [VCARDDAV] JSON representation
Thread-Index: Ac1E4n/I7bhXvQ6FTxeBd5lb09Qy2wAAQBcA
References: <4FCFFECA.8010507@stpeter.im> <4FD0C14D.1010406@viagenie.ca><4FD0D27F.5070706@stpeter.im> <4FD0DB04.6040604@viagenie.ca> <93E73285DA3584449E2CD5E9414E16C3038555B4@xmb-sjc-21d.amer.cisco.com> <4FD0FD1B.9000300@viagenie.ca> <93E73285DA3584449E2CD5E9414E16C3038555C0@xmb-sjc-21d.amer.cisco.com> <4FD0FECA.7000309@viagenie.ca>
From: "Raghurama Bhat (ragbhat)" <ragbhat@cisco.com>
To: "Simon Perreault" <simon.perreault@viagenie.ca>
X-OriginalArrivalTime: 07 Jun 2012 19:28:17.0918 (UTC) FILETIME=[B0DD71E0:01CD44E3]
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jun 2012 19:28:20 -0000

Ok. I take back what I said. If we want to rely on order (Which I am not
too sure is the right thing to do), JSON spec will allow us to do so.

Thanks,

--Raghu

-----Original Message-----
From: Simon Perreault [mailto:simon.perreault@viagenie.ca]=20
Sent: Thursday, June 07, 2012 12:20 PM
To: Raghurama Bhat (ragbhat)
Cc: Peter Saint-Andre; vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation

On 2012-06-07 15:14, Raghurama Bhat (ragbhat) wrote:
> You cannot rely on element order in JSON arrays to be preserved

Are you really sure?

http://stackoverflow.com/questions/7214293/is-the-order-of-elements-in-a
-json-list-maintained

Simon
--
DTN made easy, lean, and smart --> http://postellation.viagenie.ca
NAT64/DNS64 open-source        --> http://ecdysis.viagenie.ca
STUN/TURN server               --> http://numb.viagenie.ca

From simon.perreault@viagenie.ca  Mon Jun 11 11:33:18 2012
Return-Path: <simon.perreault@viagenie.ca>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3460621F8592 for <vcarddav@ietfa.amsl.com>; Mon, 11 Jun 2012 11:33:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, NO_RELAYS=-0.001]
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 NiLZuBEoPlAR for <vcarddav@ietfa.amsl.com>; Mon, 11 Jun 2012 11:33:17 -0700 (PDT)
Received: from jazz.viagenie.ca (unknown [IPv6:2620:0:230:8000:226:55ff:fe57:14db]) by ietfa.amsl.com (Postfix) with ESMTP id 8AAD921F856D for <vcarddav@ietf.org>; Mon, 11 Jun 2012 11:33:17 -0700 (PDT)
Received: from ringo.viagenie.ca (unknown [IPv6:2620:0:230:c064:84e5:4ccb:c690:6774]) by jazz.viagenie.ca (Postfix) with ESMTPSA id CE464425D7; Mon, 11 Jun 2012 14:33:16 -0400 (EDT)
Message-ID: <4FD639EC.9080502@viagenie.ca>
Date: Mon, 11 Jun 2012 14:33:16 -0400
From: Simon Perreault <simon.perreault@viagenie.ca>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1
MIME-Version: 1.0
To: Joe Hildebrand <jhildebr@cisco.com>
References: <CBFB92B0.2C8C5%jhildebr@cisco.com>
In-Reply-To: <CBFB92B0.2C8C5%jhildebr@cisco.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Jun 2012 18:33:18 -0000

On 2012-06-11 14:18, Joe Hildebrand wrote:
> I'm ok with relying on order in the places where vCard relies on order.  I
> detest it as a protocol design decision, but it makes the interop much
> easier, such that we don't have to come up with field names where none
> exist.

The bigger issue IMHO is: should we insist that JSON preserve the order 
of properties? If we don't care about ordering, we may use a dictionary 
as the root data structure, as proposed in the draft. Otherwise, 
something more complex would be needed.

RFC6350 doesn't say anything about order, except that VERSION must come 
first. Any well-behaved vCard consumer needs to be able to handle any 
ordering. So if round-tripping between vCard and JSON wouldn't preserve 
order, we would still have the same vCard as far as RFC6350 is concerned.

As a aside, an RFC6350bis should say that ordering of properties and 
parameters is not to be relied on for any purpose.

Simon
-- 
DTN made easy, lean, and smart --> http://postellation.viagenie.ca
NAT64/DNS64 open-source        --> http://ecdysis.viagenie.ca
STUN/TURN server               --> http://numb.viagenie.ca

From jhildebr@cisco.com  Mon Jun 11 11:18:59 2012
Return-Path: <jhildebr@cisco.com>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B64AB21F84B3 for <vcarddav@ietfa.amsl.com>; Mon, 11 Jun 2012 11:18:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.532
X-Spam-Level: 
X-Spam-Status: No, score=-8.532 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, RCVD_NUMERIC_HELO=2.067]
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 V5izc8lV2dr2 for <vcarddav@ietfa.amsl.com>; Mon, 11 Jun 2012 11:18:58 -0700 (PDT)
Received: from rcdn-iport-2.cisco.com (rcdn-iport-2.cisco.com [173.37.86.73]) by ietfa.amsl.com (Postfix) with ESMTP id AD9F021F84AC for <vcarddav@ietf.org>; Mon, 11 Jun 2012 11:18:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=jhildebr@cisco.com; l=1385; q=dns/txt; s=iport; t=1339438738; x=1340648338; h=date:subject:from:to:cc:message-id:in-reply-to: mime-version:content-transfer-encoding; bh=cxLD4NXEpR42AGLhUCC5eMIIdiqdmEjZ12375Y7AisE=; b=EY61qPhkAfw4ixZ3XYaEGDFneewC4cG/4GtEmcUcbNf66P8fT74onvjC vU+1k5LQ0uPg1XW+YwiWsyKNzQ/IIsZHahaFLt0Fv9NqksoBp/w509QtQ dKwvfHSuANhzS9LhKRLFqyoufIH6eajt27P5rcc3daCXfhMd7lBHx839y w=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvUFAGk21k+tJXG+/2dsb2JhbABFtRYCgQeCGAEBAQMBAQEBDwEUEwIBMQsFBwYBCA4DBAEBAScuHwkIAQEEAQ0FIodkBQuYXJ9fiySFaQOIQIxegRKNA4Fmgn8
X-IronPort-AV: E=Sophos;i="4.75,751,1330905600"; d="scan'208";a="91412884"
Received: from rcdn-core2-3.cisco.com ([173.37.113.190]) by rcdn-iport-2.cisco.com with ESMTP; 11 Jun 2012 18:18:58 +0000
Received: from xbh-rcd-301.cisco.com (xbh-rcd-301.cisco.com [72.163.63.8]) by rcdn-core2-3.cisco.com (8.14.5/8.14.5) with ESMTP id q5BIIwbw006546;  Mon, 11 Jun 2012 18:18:58 GMT
Received: from xmb-rcd-313.cisco.com ([72.163.63.28]) by xbh-rcd-301.cisco.com with Microsoft SMTPSVC(6.0.3790.4675);  Mon, 11 Jun 2012 13:18:57 -0500
Received: from 64.101.74.200 ([64.101.74.200]) by XMB-RCD-313.cisco.com ([72.163.63.28]) with Microsoft Exchange Server HTTP-DAV ;  Mon, 11 Jun 2012 18:18:57 +0000
User-Agent: Microsoft-Entourage/12.33.0.120411
Date: Mon, 11 Jun 2012 12:18:56 -0600
From: Joe Hildebrand <jhildebr@cisco.com>
To: Raghurama Bhat <ragbhat@cisco.com>, Simon Perreault <simon.perreault@viagenie.ca>
Message-ID: <CBFB92B0.2C8C5%jhildebr@cisco.com>
Thread-Topic: [VCARDDAV] JSON representation
Thread-Index: Ac1E4n/I7bhXvQ6FTxeBd5lb09Qy2wAAQBcAAMbKa1k=
In-Reply-To: <93E73285DA3584449E2CD5E9414E16C3038555DE@xmb-sjc-21d.amer.cisco.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
X-OriginalArrivalTime: 11 Jun 2012 18:18:57.0803 (UTC) FILETIME=[AAE545B0:01CD47FE]
X-Mailman-Approved-At: Mon, 11 Jun 2012 11:33:47 -0700
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Jun 2012 18:18:59 -0000

I'm ok with relying on order in the places where vCard relies on order.  I
detest it as a protocol design decision, but it makes the interop much
easier, such that we don't have to come up with field names where none
exist.


On 6/7/12 1:28 PM, "Raghurama Bhat" <ragbhat@cisco.com> wrote:

> Ok. I take back what I said. If we want to rely on order (Which I am not
> too sure is the right thing to do), JSON spec will allow us to do so.
> 
> Thanks,
> 
> --Raghu
> 
> -----Original Message-----
> From: Simon Perreault [mailto:simon.perreault@viagenie.ca]
> Sent: Thursday, June 07, 2012 12:20 PM
> To: Raghurama Bhat (ragbhat)
> Cc: Peter Saint-Andre; vcarddav@ietf.org
> Subject: Re: [VCARDDAV] JSON representation
> 
> On 2012-06-07 15:14, Raghurama Bhat (ragbhat) wrote:
>> You cannot rely on element order in JSON arrays to be preserved
> 
> Are you really sure?
> 
> http://stackoverflow.com/questions/7214293/is-the-order-of-elements-in-a
> -json-list-maintained
> 
> Simon
> --
> DTN made easy, lean, and smart --> http://postellation.viagenie.ca
> NAT64/DNS64 open-source        --> http://ecdysis.viagenie.ca
> STUN/TURN server               --> http://numb.viagenie.ca
> _______________________________________________
> VCARDDAV mailing list
> VCARDDAV@ietf.org
> https://www.ietf.org/mailman/listinfo/vcarddav

-- 
Joe Hildebrand


From jhildebr@cisco.com  Mon Jun 11 11:35:53 2012
Return-Path: <jhildebr@cisco.com>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EC92E21F849A for <vcarddav@ietfa.amsl.com>; Mon, 11 Jun 2012 11:35:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.532
X-Spam-Level: 
X-Spam-Status: No, score=-8.532 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, RCVD_NUMERIC_HELO=2.067]
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 aqO+DgbNDiR1 for <vcarddav@ietfa.amsl.com>; Mon, 11 Jun 2012 11:35:53 -0700 (PDT)
Received: from rcdn-iport-8.cisco.com (rcdn-iport-8.cisco.com [173.37.86.79]) by ietfa.amsl.com (Postfix) with ESMTP id 713FB21F848A for <vcarddav@ietf.org>; Mon, 11 Jun 2012 11:35:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=jhildebr@cisco.com; l=1251; q=dns/txt; s=iport; t=1339439753; x=1340649353; h=date:subject:from:to:cc:message-id:in-reply-to: mime-version:content-transfer-encoding; bh=t72oClv83N40bLkmN2WxLJo20jMV59KBKakTNDWkxkk=; b=fRKY4IEyo1cJ29ZIiZr2aq2to0T/4ONA8vbRegRLto0Dldu0+gmB7njL bXnc5B3iQxytaKVkCPcRga4WOnP4JwSY01l0dHfGe5UAjhcFtmDp5kAxj +xhl49aBkdcjGaLeEKostllaR0cniF1LTkEzKSrBkF7ewmtiVES4m6Nk4 Q=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AgMGAFI51k+tJXHB/2dsb2JhbABFihOrAwKBB4IYAQEBAwESAScCATwFDQEIGIEFAQEEDgUih2QFmGifYZENA4hAjF6OFYFmgn8
X-IronPort-AV: E=Sophos;i="4.75,751,1330905600"; d="scan'208";a="91449353"
Received: from rcdn-core2-6.cisco.com ([173.37.113.193]) by rcdn-iport-8.cisco.com with ESMTP; 11 Jun 2012 18:35:53 +0000
Received: from xbh-rcd-201.cisco.com (xbh-rcd-201.cisco.com [72.163.62.200]) by rcdn-core2-6.cisco.com (8.14.5/8.14.5) with ESMTP id q5BIZqVu022361;  Mon, 11 Jun 2012 18:35:52 GMT
Received: from xmb-rcd-313.cisco.com ([72.163.63.28]) by xbh-rcd-201.cisco.com with Microsoft SMTPSVC(6.0.3790.4675);  Mon, 11 Jun 2012 13:35:52 -0500
Received: from 64.101.74.200 ([64.101.74.200]) by XMB-RCD-313.cisco.com ([72.163.63.28]) with Microsoft Exchange Server HTTP-DAV ;  Mon, 11 Jun 2012 18:35:52 +0000
User-Agent: Microsoft-Entourage/12.33.0.120411
Date: Mon, 11 Jun 2012 12:35:51 -0600
From: Joe Hildebrand <jhildebr@cisco.com>
To: Simon Perreault <simon.perreault@viagenie.ca>
Message-ID: <CBFB96A7.2C8CD%jhildebr@cisco.com>
Thread-Topic: [VCARDDAV] JSON representation
Thread-Index: Ac1IAQbOyvPZLfOFpkimrLMHhaDztA==
In-Reply-To: <4FD639EC.9080502@viagenie.ca>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
X-OriginalArrivalTime: 11 Jun 2012 18:35:52.0769 (UTC) FILETIME=[07DCCB10:01CD4801]
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Jun 2012 18:35:54 -0000

I don't care about the order of properties.  The streaming use cases of
CardDAV don't really apply, except, perhaps, for a collection of vCards.


On 6/11/12 12:33 PM, "Simon Perreault" <simon.perreault@viagenie.ca> wrote:

> On 2012-06-11 14:18, Joe Hildebrand wrote:
>> I'm ok with relying on order in the places where vCard relies on order.  I
>> detest it as a protocol design decision, but it makes the interop much
>> easier, such that we don't have to come up with field names where none
>> exist.
> 
> The bigger issue IMHO is: should we insist that JSON preserve the order
> of properties? If we don't care about ordering, we may use a dictionary
> as the root data structure, as proposed in the draft. Otherwise,
> something more complex would be needed.
> 
> RFC6350 doesn't say anything about order, except that VERSION must come
> first. Any well-behaved vCard consumer needs to be able to handle any
> ordering. So if round-tripping between vCard and JSON wouldn't preserve
> order, we would still have the same vCard as far as RFC6350 is concerned.
> 
> As a aside, an RFC6350bis should say that ordering of properties and
> parameters is not to be relied on for any purpose.
> 
> Simon

-- 
Joe Hildebrand


From ragbhat@cisco.com  Mon Jun 11 11:39:22 2012
Return-Path: <ragbhat@cisco.com>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A399B21F857F for <vcarddav@ietfa.amsl.com>; Mon, 11 Jun 2012 11:39:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
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 SOeSdGoh8i2g for <vcarddav@ietfa.amsl.com>; Mon, 11 Jun 2012 11:39:22 -0700 (PDT)
Received: from mtv-iport-3.cisco.com (mtv-iport-3.cisco.com [173.36.130.14]) by ietfa.amsl.com (Postfix) with ESMTP id 0893421F856D for <vcarddav@ietf.org>; Mon, 11 Jun 2012 11:39:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=ragbhat@cisco.com; l=1893; q=dns/txt; s=iport; t=1339439962; x=1340649562; h=mime-version:content-transfer-encoding:subject:date: message-id:in-reply-to:references:from:to:cc; bh=Nd8vALZpDBM/Kjyc1mBsOaQfgUYlqcsQnHa1B61OOPo=; b=ibsvj+NLi1TFkAfBFSQ2dN8mlUWhPHJYVekVQ5xa8Ar5HsMtIHPKaN+f bV1ULqJuvu4dl5PB1bRPgRJadxTBmPL1ldGHEtoDdFLeArxpvrUxXorEI qd0TWkH4dPL2BrUk0NS0czJPH4E9bVTjfEk60mR4eBIfKLnDM53Ow539r w=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av8EAPA51k+rRDoJ/2dsb2JhbABFtRiBB4IYAQEBAwESAR0KPwUHBAIBCBEEAQEBCgYYBgFOCAEBBAESCBqHZASYbZ9hiySFCWADiECac4FmgwA
X-IronPort-AV: E=Sophos;i="4.75,751,1330905600"; d="scan'208";a="45930725"
Received: from mtv-core-4.cisco.com ([171.68.58.9]) by mtv-iport-3.cisco.com with ESMTP; 11 Jun 2012 18:39:21 +0000
Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by mtv-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id q5BIdKKb013194; Mon, 11 Jun 2012 18:39:20 GMT
Received: from xmb-sjc-21d.amer.cisco.com ([171.70.151.140]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.4675);  Mon, 11 Jun 2012 11:39:20 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Mon, 11 Jun 2012 11:39:19 -0700
Message-ID: <93E73285DA3584449E2CD5E9414E16C303855FB9@xmb-sjc-21d.amer.cisco.com>
In-Reply-To: <CBFB96A7.2C8CD%jhildebr@cisco.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [VCARDDAV] JSON representation
Thread-Index: Ac1IAQbOyvPZLfOFpkimrLMHhaDztAAADsVg
References: <4FD639EC.9080502@viagenie.ca> <CBFB96A7.2C8CD%jhildebr@cisco.com>
From: "Raghurama Bhat (ragbhat)" <ragbhat@cisco.com>
To: "Joe Hildebrand (jhildebr)" <jhildebr@cisco.com>, "Simon Perreault" <simon.perreault@viagenie.ca>
X-OriginalArrivalTime: 11 Jun 2012 18:39:20.0735 (UTC) FILETIME=[83D1E2F0:01CD4801]
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Jun 2012 18:39:22 -0000

In this case, vCard relies on Order but xCard does not.  (I am talking
about Gender value and parameter, not properties in general)
Personally, I think the self-describing nature of xCard is better for
JSON mapping to align with. I don't  see what the interop issue is. Full
conversion can be supported in both directions without any loss of
information.

Thanks,

--Raghu

-----Original Message-----
From: Joe Hildebrand (jhildebr)=20
Sent: Monday, June 11, 2012 11:36 AM
To: Simon Perreault
Cc: Raghurama Bhat (ragbhat); vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation

I don't care about the order of properties.  The streaming use cases of
CardDAV don't really apply, except, perhaps, for a collection of vCards.


On 6/11/12 12:33 PM, "Simon Perreault" <simon.perreault@viagenie.ca>
wrote:

> On 2012-06-11 14:18, Joe Hildebrand wrote:
>> I'm ok with relying on order in the places where vCard relies on=20
>> order.  I detest it as a protocol design decision, but it makes the=20
>> interop much easier, such that we don't have to come up with field=20
>> names where none exist.
>=20
> The bigger issue IMHO is: should we insist that JSON preserve the=20
> order of properties? If we don't care about ordering, we may use a=20
> dictionary as the root data structure, as proposed in the draft.=20
> Otherwise, something more complex would be needed.
>=20
> RFC6350 doesn't say anything about order, except that VERSION must=20
> come first. Any well-behaved vCard consumer needs to be able to handle

> any ordering. So if round-tripping between vCard and JSON wouldn't=20
> preserve order, we would still have the same vCard as far as RFC6350
is concerned.
>=20
> As a aside, an RFC6350bis should say that ordering of properties and=20
> parameters is not to be relied on for any purpose.
>=20
> Simon

--
Joe Hildebrand


From simon.perreault@viagenie.ca  Mon Jun 11 11:52:03 2012
Return-Path: <simon.perreault@viagenie.ca>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2C62A21F861B for <vcarddav@ietfa.amsl.com>; Mon, 11 Jun 2012 11:52:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, NO_RELAYS=-0.001]
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 Y7WaB1RtNpje for <vcarddav@ietfa.amsl.com>; Mon, 11 Jun 2012 11:52:02 -0700 (PDT)
Received: from jazz.viagenie.ca (unknown [IPv6:2620:0:230:8000:226:55ff:fe57:14db]) by ietfa.amsl.com (Postfix) with ESMTP id 268EC21F8617 for <vcarddav@ietf.org>; Mon, 11 Jun 2012 11:52:02 -0700 (PDT)
Received: from ringo.viagenie.ca (unknown [IPv6:2620:0:230:c064:84e5:4ccb:c690:6774]) by jazz.viagenie.ca (Postfix) with ESMTPSA id 79A8F425D7; Mon, 11 Jun 2012 14:52:01 -0400 (EDT)
Message-ID: <4FD63E50.9080405@viagenie.ca>
Date: Mon, 11 Jun 2012 14:52:00 -0400
From: Simon Perreault <simon.perreault@viagenie.ca>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1
MIME-Version: 1.0
To: "Raghurama Bhat (ragbhat)" <ragbhat@cisco.com>
References: <4FD639EC.9080502@viagenie.ca> <CBFB96A7.2C8CD%jhildebr@cisco.com> <93E73285DA3584449E2CD5E9414E16C303855FB9@xmb-sjc-21d.amer.cisco.com>
In-Reply-To: <93E73285DA3584449E2CD5E9414E16C303855FB9@xmb-sjc-21d.amer.cisco.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: vcarddav@ietf.org, "Joe Hildebrand \(jhildebr\)" <jhildebr@cisco.com>
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Jun 2012 18:52:03 -0000

On 2012-06-11 14:39, Raghurama Bhat (ragbhat) wrote:
> In this case, vCard relies on Order but xCard does not.  (I am talking
> about Gender value and parameter, not properties in general)

You're talking about "component" order.

Yes, vCard relies on order to parse components. xCard doesn't since it 
uses different XML tags.

> Personally, I think the self-describing nature of xCard is better for
> JSON mapping to align with. I don't  see what the interop issue is. Full
> conversion can be supported in both directions without any loss of
> information.

As long as you can reproduce the same component ordering in vCard, 
there's no issue here.

Simon
-- 
DTN made easy, lean, and smart --> http://postellation.viagenie.ca
NAT64/DNS64 open-source        --> http://ecdysis.viagenie.ca
STUN/TURN server               --> http://numb.viagenie.ca

From renato@iannella.it  Sat Jun 16 20:46:01 2012
Return-Path: <renato@iannella.it>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9846D11E8073 for <vcarddav@ietfa.amsl.com>; Sat, 16 Jun 2012 20:46:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3.277
X-Spam-Level: ***
X-Spam-Status: No, score=3.277 tagged_above=-999 required=5 tests=[BAYES_50=0.001, HELO_EQ_IT=0.635, HOST_EQ_IT=1.245, MIME_QP_LONG_LINE=1.396]
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 ATJUKiYxGnxP for <vcarddav@ietfa.amsl.com>; Sat, 16 Jun 2012 20:46:00 -0700 (PDT)
Received: from authsmtp.register.it (authsmtp07.register.it [81.88.48.57]) by ietfa.amsl.com (Postfix) with ESMTP id 8A40511E8072 for <vcarddav@ietf.org>; Sat, 16 Jun 2012 20:45:59 -0700 (PDT)
Received: (qmail 27848 invoked from network); 17 Jun 2012 03:45:57 -0000
Received: from unknown (HELO ?192.168.1.3?) (smtp@iannella.it@211.31.16.178) by authsmtp.register.it with ESMTPA; 17 Jun 2012 03:45:57 -0000
From: Renato Iannella <renato@iannella.it>
Content-Type: text/plain; charset=us-ascii
X-Mailer: iPhone Mail (9B206)
Message-Id: <2E924EFC-7169-48D2-A3FB-02765C07423A@iannella.it>
Date: Sun, 17 Jun 2012 13:45:53 +1000
To: "vcarddav@ietf.org" <vcarddav@ietf.org>
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (1.0)
Subject: [VCARDDAV] xCard cardinality
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 17 Jun 2012 03:46:01 -0000

A colleague has indicated that the RelaxNG cardinality may be in correct in t=
he xCard spec. Specifically, all the elements of ADR (eg pobox etc) and N (e=
g prefix etc) have "+" (oneOrMore) cardinality ?

Cheers...Renato=

From internet-drafts@ietf.org  Mon Jun 18 07:20:46 2012
Return-Path: <internet-drafts@ietf.org>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D1AB021F86D5; Mon, 18 Jun 2012 07:20:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.403
X-Spam-Level: 
X-Spam-Status: No, score=-102.403 tagged_above=-999 required=5 tests=[AWL=0.196, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 mPVKMOeA3af4; Mon, 18 Jun 2012 07:20:46 -0700 (PDT)
Received: from ietfa.amsl.com (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E8D1B21F86CF; Mon, 18 Jun 2012 07:20:45 -0700 (PDT)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
From: internet-drafts@ietf.org
To: i-d-announce@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 4.20
Message-ID: <20120618142045.2054.29156.idtracker@ietfa.amsl.com>
Date: Mon, 18 Jun 2012 07:20:45 -0700
Cc: vcarddav@ietf.org
Subject: [VCARDDAV] I-D Action: draft-ietf-vcarddav-oma-cab-extensions-03.txt
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 18 Jun 2012 14:20:47 -0000

A New Internet-Draft is available from the on-line Internet-Drafts director=
ies.
 This draft is a work item of the vCard and CardDAV Working Group of the IE=
TF.

	Title           : vCard Format extension : represent vCard extensions defi=
ned by the Open Mobile Alliance (OMA) Converged Address Book (CAB) group
	Author(s)       : Dany Cauchie
                          Barry Leiba
                          Kepeng Li
	Filename        : draft-ietf-vcarddav-oma-cab-extensions-03.txt
	Pages           : 12
	Date            : 2012-06-18

Abstract:
   This document defines extensions to the vCard data format for
   representing and exchanging certain contact information.  The
   properties covered here have been defined by the Open Mobile Alliance
   Converged Address Book group, in order to synchronize, using OMA Data
   Synchronization, contact fields that were not already defined in the
   base vCard 4.0 specification.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-ietf-vcarddav-oma-cab-extensions

There's also a htmlized version available at:
http://tools.ietf.org/html/draft-ietf-vcarddav-oma-cab-extensions-03

A diff from previous version is available at:
http://tools.ietf.org/rfcdiff?url2=3Ddraft-ietf-vcarddav-oma-cab-extensions=
-03


Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/


From simon.perreault@viagenie.ca  Mon Jun 18 07:27:41 2012
Return-Path: <simon.perreault@viagenie.ca>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 75F8221F8692 for <vcarddav@ietfa.amsl.com>; Mon, 18 Jun 2012 07:27:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, NO_RELAYS=-0.001]
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 Ww1JbnLjJg3D for <vcarddav@ietfa.amsl.com>; Mon, 18 Jun 2012 07:27:40 -0700 (PDT)
Received: from jazz.viagenie.ca (unknown [IPv6:2620:0:230:8000:226:55ff:fe57:14db]) by ietfa.amsl.com (Postfix) with ESMTP id C94BC21F8658 for <vcarddav@ietf.org>; Mon, 18 Jun 2012 07:27:40 -0700 (PDT)
Received: from ringo.viagenie.ca (unknown [IPv6:2620:0:230:c064:ec6c:4066:6efd:d9f4]) by jazz.viagenie.ca (Postfix) with ESMTPSA id 3F22A412F6 for <vcarddav@ietf.org>; Mon, 18 Jun 2012 10:27:40 -0400 (EDT)
Message-ID: <4FDF3ADB.7070005@viagenie.ca>
Date: Mon, 18 Jun 2012 10:27:39 -0400
From: Simon Perreault <simon.perreault@viagenie.ca>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1
MIME-Version: 1.0
To: vcarddav@ietf.org
References: <2E924EFC-7169-48D2-A3FB-02765C07423A@iannella.it>
In-Reply-To: <2E924EFC-7169-48D2-A3FB-02765C07423A@iannella.it>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [VCARDDAV] xCard cardinality
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 18 Jun 2012 14:27:41 -0000

On 2012-06-16 23:45, Renato Iannella wrote:
> A colleague has indicated that the RelaxNG cardinality may be in
> correct in the xCard spec. Specifically, all the elements of ADR (eg
> pobox etc) and N (eg prefix etc) have "+" (oneOrMore) cardinality ?

The RFC is correct. In plain text vCard, each component is a 
comma-separated list, so that each component can have multiple values. 
Just like the N property.

      ADR-value = ADR-component-pobox ";" ADR-component-ext ";"
                  ADR-component-street ";" ADR-component-locality ";"
                  ADR-component-region ";" ADR-component-code ";"
                  ADR-component-country
      ADR-component-pobox    = list-component
      ADR-component-ext      = list-component
      ADR-component-street   = list-component
      ADR-component-locality = list-component
      ADR-component-region   = list-component
      ADR-component-code     = list-component
      ADR-component-country  = list-component

Simon
-- 
DTN made easy, lean, and smart --> http://postellation.viagenie.ca
NAT64/DNS64 open-source        --> http://ecdysis.viagenie.ca
STUN/TURN server               --> http://numb.viagenie.ca

From renato@iannella.it  Mon Jun 18 18:48:47 2012
Return-Path: <renato@iannella.it>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B23C411E80DB for <vcarddav@ietfa.amsl.com>; Mon, 18 Jun 2012 18:48:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.977
X-Spam-Level: *
X-Spam-Status: No, score=1.977 tagged_above=-999 required=5 tests=[AWL=1.300,  BAYES_00=-2.599, HELO_EQ_IT=0.635, HOST_EQ_IT=1.245, MIME_QP_LONG_LINE=1.396]
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 a4Ibi4-5H3pZ for <vcarddav@ietfa.amsl.com>; Mon, 18 Jun 2012 18:48:47 -0700 (PDT)
Received: from authsmtp.register.it (authsmtp07.register.it [81.88.48.57]) by ietfa.amsl.com (Postfix) with ESMTP id 8CB6A11E80D0 for <vcarddav@ietf.org>; Mon, 18 Jun 2012 18:48:45 -0700 (PDT)
Received: (qmail 2281 invoked from network); 19 Jun 2012 01:48:43 -0000
Received: from unknown (HELO ?192.168.1.3?) (smtp@iannella.it@211.31.16.178) by authsmtp.register.it with ESMTPA; 19 Jun 2012 01:48:43 -0000
References: <2E924EFC-7169-48D2-A3FB-02765C07423A@iannella.it> <4FDF3ADB.7070005@viagenie.ca>
In-Reply-To: <4FDF3ADB.7070005@viagenie.ca>
Mime-Version: 1.0 (1.0)
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=us-ascii
Message-Id: <6C454453-54C4-422D-ADFC-CB208DA9F965@iannella.it>
X-Mailer: iPhone Mail (9B206)
From: Renato Iannella <renato@iannella.it>
Date: Tue, 19 Jun 2012 11:48:39 +1000
To: Simon Perreault <simon.perreault@viagenie.ca>
Cc: "vcarddav@ietf.org" <vcarddav@ietf.org>
Subject: Re: [VCARDDAV] xCard cardinality
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 19 Jun 2012 01:48:47 -0000

So in an <adr> element we can have:
 <country>Australia</country>
<country>Canada</country

?
Cheers...Renato

On 19/06/2012, at 12:27 AM, Simon Perreault <simon.perreault@viagenie.ca> wr=
ote:

> On 2012-06-16 23:45, Renato Iannella wrote:
>> A colleague has indicated that the RelaxNG cardinality may be in
>> correct in the xCard spec. Specifically, all the elements of ADR (eg
>> pobox etc) and N (eg prefix etc) have "+" (oneOrMore) cardinality ?
>=20
> The RFC is correct. In plain text vCard, each component is a comma-separat=
ed list, so that each component can have multiple values. Just like the N pr=
operty.
>=20
>     ADR-value =3D ADR-component-pobox ";" ADR-component-ext ";"
>                 ADR-component-street ";" ADR-component-locality ";"
>                 ADR-component-region ";" ADR-component-code ";"
>                 ADR-component-country
>     ADR-component-pobox    =3D list-component
>     ADR-component-ext      =3D list-component
>     ADR-component-street   =3D list-component
>     ADR-component-locality =3D list-component
>     ADR-component-region   =3D list-component
>     ADR-component-code     =3D list-component
>     ADR-component-country  =3D list-component
>=20
> Simon
> --=20
> DTN made easy, lean, and smart --> http://postellation.viagenie.ca
> NAT64/DNS64 open-source        --> http://ecdysis.viagenie.ca
> STUN/TURN server               --> http://numb.viagenie.ca
> _______________________________________________
> VCARDDAV mailing list
> VCARDDAV@ietf.org
> https://www.ietf.org/mailman/listinfo/vcarddav

From renato@iannella.it  Mon Jun 18 18:54:07 2012
Return-Path: <renato@iannella.it>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6368C11E80CB for <vcarddav@ietfa.amsl.com>; Mon, 18 Jun 2012 18:54:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.627
X-Spam-Level: **
X-Spam-Status: No, score=2.627 tagged_above=-999 required=5 tests=[AWL=-0.650,  BAYES_50=0.001, HELO_EQ_IT=0.635, HOST_EQ_IT=1.245, MIME_QP_LONG_LINE=1.396]
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 S8NJG1CoQC0A for <vcarddav@ietfa.amsl.com>; Mon, 18 Jun 2012 18:54:07 -0700 (PDT)
Received: from authsmtp.register.it (authsmtp09.register.it [81.88.48.59]) by ietfa.amsl.com (Postfix) with ESMTP id AA68A11E80BB for <vcarddav@ietf.org>; Mon, 18 Jun 2012 18:54:06 -0700 (PDT)
Received: (qmail 31588 invoked from network); 19 Jun 2012 01:54:04 -0000
Received: from unknown (HELO ?192.168.1.3?) (smtp@iannella.it@211.31.16.178) by authsmtp.register.it with ESMTPA; 19 Jun 2012 01:54:04 -0000
References: <2E924EFC-7169-48D2-A3FB-02765C07423A@iannella.it> <4FDF3ADB.7070005@viagenie.ca>
From: Renato Iannella <renato@iannella.it>
Content-Type: text/plain; charset=us-ascii
X-Mailer: iPhone Mail (9B206)
In-Reply-To: <4FDF3ADB.7070005@viagenie.ca>
Message-Id: <2A0E0BB7-66D0-4430-A680-AA93AEAC5A07@iannella.it>
Date: Tue, 19 Jun 2012 11:54:02 +1000
To: vcarddav@ietf.org
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (1.0)
Subject: [VCARDDAV] Additional names
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 19 Jun 2012 01:54:07 -0000

We don't define "additional names" (apart from the english definition of the=
 word). Is it fair to say these are "middle" names (ie anything between give=
n and family names?)

Cheers...Renato=

From simon.perreault@viagenie.ca  Tue Jun 19 05:40:31 2012
Return-Path: <simon.perreault@viagenie.ca>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 262AA21F8541 for <vcarddav@ietfa.amsl.com>; Tue, 19 Jun 2012 05:40:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, NO_RELAYS=-0.001]
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 5AzIVjH6d0ua for <vcarddav@ietfa.amsl.com>; Tue, 19 Jun 2012 05:40:30 -0700 (PDT)
Received: from jazz.viagenie.ca (unknown [IPv6:2620:0:230:8000:226:55ff:fe57:14db]) by ietfa.amsl.com (Postfix) with ESMTP id 7C90E21F8446 for <vcarddav@ietf.org>; Tue, 19 Jun 2012 05:40:30 -0700 (PDT)
Received: from ringo.viagenie.ca (unknown [IPv6:2620:0:230:c064:8055:8e79:d19d:5713]) by jazz.viagenie.ca (Postfix) with ESMTPSA id 698574161B; Tue, 19 Jun 2012 08:40:29 -0400 (EDT)
Message-ID: <4FE0733C.4070002@viagenie.ca>
Date: Tue, 19 Jun 2012 08:40:28 -0400
From: Simon Perreault <simon.perreault@viagenie.ca>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1
MIME-Version: 1.0
To: Renato Iannella <renato@iannella.it>
References: <2E924EFC-7169-48D2-A3FB-02765C07423A@iannella.it> <4FDF3ADB.7070005@viagenie.ca> <6C454453-54C4-422D-ADFC-CB208DA9F965@iannella.it>
In-Reply-To: <6C454453-54C4-422D-ADFC-CB208DA9F965@iannella.it>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: "vcarddav@ietf.org" <vcarddav@ietf.org>
Subject: Re: [VCARDDAV] xCard cardinality
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 19 Jun 2012 12:40:31 -0000

On 2012-06-18 21:48, Renato Iannella wrote:
> So in an<adr>  element we can have:
>   <country>Australia</country>
> <country>Canada</country

Yes, both in xCard and vCard. I didn't say it made sense.

       The text components are separated by the SEMICOLON character
       (U+003B).  Where it makes semantic sense, individual text
       components can include multiple text values (e.g., a "street"
       component with multiple lines) separated by the COMMA character
       (U+002C).

That excerpt is from vCard 4, but the same text was also present in 
vCard 3. IMHO it should be revised. For a street component with multiple 
lines, the right thing to do would be to encode newlines as "\n", as for 
any other property. I don't see any reason why multiple values need to 
be allowed for any ADR component.

Simon
-- 
DTN made easy, lean, and smart --> http://postellation.viagenie.ca
NAT64/DNS64 open-source        --> http://ecdysis.viagenie.ca
STUN/TURN server               --> http://numb.viagenie.ca

From simon.perreault@viagenie.ca  Tue Jun 19 06:42:44 2012
Return-Path: <simon.perreault@viagenie.ca>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 27F4921F8594 for <vcarddav@ietfa.amsl.com>; Tue, 19 Jun 2012 06:42:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, NO_RELAYS=-0.001]
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 aiPsCg+-jFBn for <vcarddav@ietfa.amsl.com>; Tue, 19 Jun 2012 06:42:43 -0700 (PDT)
Received: from jazz.viagenie.ca (unknown [IPv6:2620:0:230:8000:226:55ff:fe57:14db]) by ietfa.amsl.com (Postfix) with ESMTP id 8733821F856C for <vcarddav@ietf.org>; Tue, 19 Jun 2012 06:42:43 -0700 (PDT)
Received: from ringo.viagenie.ca (unknown [IPv6:2620:0:230:c064:8055:8e79:d19d:5713]) by jazz.viagenie.ca (Postfix) with ESMTPSA id A4227400AB; Tue, 19 Jun 2012 09:42:42 -0400 (EDT)
Message-ID: <4FE081D2.5000704@viagenie.ca>
Date: Tue, 19 Jun 2012 09:42:42 -0400
From: Simon Perreault <simon.perreault@viagenie.ca>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1
MIME-Version: 1.0
To: Renato Iannella <renato@iannella.it>
References: <2E924EFC-7169-48D2-A3FB-02765C07423A@iannella.it> <4FDF3ADB.7070005@viagenie.ca> <2A0E0BB7-66D0-4430-A680-AA93AEAC5A07@iannella.it>
In-Reply-To: <2A0E0BB7-66D0-4430-A680-AA93AEAC5A07@iannella.it>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] Additional names
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 19 Jun 2012 13:42:44 -0000

On 2012-06-18 21:54, Renato Iannella wrote:
> We don't define "additional names" (apart from the english definition
> of the word). Is it fair to say these are "middle" names (ie anything
> between given and family names?)

In English, I think so.

I'm looking at X.520 and it seems we have diverged quite a bit from it. 
*sigh*

Simon
-- 
DTN made easy, lean, and smart --> http://postellation.viagenie.ca
NAT64/DNS64 open-source        --> http://ecdysis.viagenie.ca
STUN/TURN server               --> http://numb.viagenie.ca

From cyrus@daboo.name  Tue Jun 19 19:56:25 2012
Return-Path: <cyrus@daboo.name>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5CF1B11E80A3; Tue, 19 Jun 2012 19:56:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.599
X-Spam-Level: 
X-Spam-Status: No, score=-102.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 d37ma9f0MWvq; Tue, 19 Jun 2012 19:56:24 -0700 (PDT)
Received: from daboo.name (daboo.name [173.13.55.49]) by ietfa.amsl.com (Postfix) with ESMTP id 79EC711E808E; Tue, 19 Jun 2012 19:56:24 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by daboo.name (Postfix) with ESMTP id C204829B2621; Tue, 19 Jun 2012 22:56:23 -0400 (EDT)
X-Virus-Scanned: amavisd-new at daboo.name
Received: from daboo.name ([127.0.0.1]) by localhost (daboo.name [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JVqqm6ylMM+m; Tue, 19 Jun 2012 22:56:22 -0400 (EDT)
Received: from [10.0.1.8] (unknown [173.13.55.49]) by daboo.name (Postfix) with ESMTPSA id 4D91C29B2616; Tue, 19 Jun 2012 22:56:22 -0400 (EDT)
Date: Tue, 19 Jun 2012 22:56:34 -0400
From: Cyrus Daboo <cyrus@daboo.name>
To: vcarddav@ietf.org, Calsify <calsify@ietf.org>
Message-ID: <50174924F12AC68AE58D5384@cyrus.local>
X-Mailer: Mulberry/4.1.0a3 (Mac OS X)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; size=1664
Subject: [VCARDDAV] Escaping dquote in a parameter value
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Jun 2012 02:56:25 -0000

Hi,
As I am sure most people are aware, a double-quote character is forbidden 
to appear in a parameter value in both vCard and iCalendar. Yet there is a 
need to preserve double-quotes in a parameter value. So I am going to 
propose an extension to the specifications whereby a new escape mechanism 
is introduced solely for the purpose of allowing d-quote in a parameter 
value in a backwards compatible manner.

My proposal is to use ^ (0x5e) as an escape character, with only the 
following two sequences allowed:

^^ - represents a single ^ character
^' - represents a single d-quote character

I ruled out use of \ because some parsers erroneously eat that, and it 
would also be tempting to use \" which is definitely not possible because 
the dquote cannot appear.

I also ruled out & (XML/HTML entity style) and % (URI style) style escaping 
as being too general - we don't need to escape arbitrary characters - only 
dquote. Also, I think & and % are already in common use in parameter values 
that have URIs, so would end up being escaped themselves a lot more. I 
suspect ^ is one of the least used characters and so the need to escape the 
escape character is less.

Obviously there would need to be some backwards compatibility statement in 
regard to what to do with existing values with a single ^. I would suggest 
any combination that is not one of the above two, should be left alone when 
parsing. But when generating, it would be escaped as ^^.

There are probably some other ascii symbols that are infrequently used too, 
that we could pick if there are strong arguments against ^, but for now I 
am happy with ^.

Thoughts?

-- 
Cyrus Daboo


From cyrus@daboo.name  Wed Jun 20 06:53:40 2012
Return-Path: <cyrus@daboo.name>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CA38721F85FB; Wed, 20 Jun 2012 06:53:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.901
X-Spam-Level: 
X-Spam-Status: No, score=-101.901 tagged_above=-999 required=5 tests=[AWL=0.698, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 gCu81Sph813s; Wed, 20 Jun 2012 06:53:40 -0700 (PDT)
Received: from daboo.name (daboo.name [173.13.55.49]) by ietfa.amsl.com (Postfix) with ESMTP id 387A421F8634; Wed, 20 Jun 2012 06:53:40 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by daboo.name (Postfix) with ESMTP id 3498729B7ED1; Wed, 20 Jun 2012 09:53:38 -0400 (EDT)
X-Virus-Scanned: amavisd-new at daboo.name
Received: from daboo.name ([127.0.0.1]) by localhost (daboo.name [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EFzT85bx3EAy; Wed, 20 Jun 2012 09:53:31 -0400 (EDT)
Received: from caldav.corp.apple.com (unknown [17.45.162.46]) by daboo.name (Postfix) with ESMTPSA id 17FA629B7EBF; Wed, 20 Jun 2012 09:53:30 -0400 (EDT)
Date: Wed, 20 Jun 2012 09:53:28 -0400
From: Cyrus Daboo <cyrus@daboo.name>
To: Jack <jack@jackpot.uk.net>
Message-ID: <A1C922200A67743844DDA5CD@caldav.corp.apple.com>
In-Reply-To: <4FE1742C.1030806@jackpot.uk.net>
References: <50174924F12AC68AE58D5384@cyrus.local> <4FE1742C.1030806@jackpot.uk.net>
X-Mailer: Mulberry/4.1.0a3 (Mac OS X)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; size=1723
Cc: Calsify <calsify@ietf.org>, vcarddav@ietf.org
Subject: Re: [VCARDDAV] [calsify] Escaping dquote in a parameter value
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Jun 2012 13:53:40 -0000

Hi Jack,

--On June 20, 2012 7:56:44 AM +0100 Jack <jack@jackpot.uk.net> wrote:

>> I ruled out use of \ because some parsers erroneously eat that, and
>> it would also be tempting to use \" which is definitely not possible
>>  because the dquote cannot appear.
>
> However "\" is already specified in RFC2445 as the escape character in
> TEXT (4.3.11).
>
> That section specifies that a DQUOTE is not to appear in a TEXT; but it
> also specifies that a ";" shall not appear in a TEXT, and then goes on
> to specify that a ";" must be escaped thus: "\;". So I read it as saying
> (as clearly as anything is said in that document) that a DQUOTE should
> be escaped thus: "\"".

First please use RFC5545 as your reference not RFC2445.

Second, the syntax for a parameter value, as opposed to a property value, 
is different. Here is the 5545 syntax:

     param-value   = paramtext / quoted-string

     paramtext     = *SAFE-CHAR

     quoted-string = DQUOTE *QSAFE-CHAR DQUOTE

     QSAFE-CHAR    = WSP / %x21 / %x23-7E / NON-US-ASCII
     ; Any character except CONTROL and DQUOTE

     SAFE-CHAR     = WSP / %x21 / %x23-2B / %x2D-39 / %x3C-7E
                   / NON-US-ASCII
     ; Any character except CONTROL, DQUOTE, ";", ":", ","

So a DQUOTE is not allowed in either paramtext or quoted-string, and there 
is no affordance for any kind of escape character.

It is also true that CONTROL characters are not allowed. Now that I think 
of it, there have been situations I have come across where line feeds at 
least were needed in a parameter value. That suggest that perhaps my 
proposed ^ escape mechanism should be broadened to allow some specific 
CONTROLs, e.g.:

^n  - LF
^r  - CR
^t  - HTAB



-- 
Cyrus Daboo


From simon.perreault@viagenie.ca  Wed Jun 20 06:58:03 2012
Return-Path: <simon.perreault@viagenie.ca>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BC6C921F8767; Wed, 20 Jun 2012 06:58:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, NO_RELAYS=-0.001]
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 Z1GRMhX8R++e; Wed, 20 Jun 2012 06:58:02 -0700 (PDT)
Received: from jazz.viagenie.ca (unknown [IPv6:2620:0:230:8000:226:55ff:fe57:14db]) by ietfa.amsl.com (Postfix) with ESMTP id D0EE421F8766; Wed, 20 Jun 2012 06:58:02 -0700 (PDT)
Received: from ringo.viagenie.ca (unknown [IPv6:2620:0:230:c064:415f:5dee:c87f:84f]) by jazz.viagenie.ca (Postfix) with ESMTPSA id 2920C415BD; Wed, 20 Jun 2012 09:58:02 -0400 (EDT)
Message-ID: <4FE1D6E9.8020303@viagenie.ca>
Date: Wed, 20 Jun 2012 09:58:01 -0400
From: Simon Perreault <simon.perreault@viagenie.ca>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1
MIME-Version: 1.0
To: Cyrus Daboo <cyrus@daboo.name>
References: <50174924F12AC68AE58D5384@cyrus.local>
In-Reply-To: <50174924F12AC68AE58D5384@cyrus.local>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: Calsify <calsify@ietf.org>, vcarddav@ietf.org
Subject: Re: [VCARDDAV] Escaping dquote in a parameter value
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Jun 2012 13:58:03 -0000

Interesting. I follow your reasoning and agree with your conclusion.

Have you actually come across a parameter value that needed to contain a 
dquote?

Simon

On 2012-06-19 22:56, Cyrus Daboo wrote:
> Hi,
> As I am sure most people are aware, a double-quote character is
> forbidden to appear in a parameter value in both vCard and iCalendar.
> Yet there is a need to preserve double-quotes in a parameter value. So I
> am going to propose an extension to the specifications whereby a new
> escape mechanism is introduced solely for the purpose of allowing
> d-quote in a parameter value in a backwards compatible manner.
>
> My proposal is to use ^ (0x5e) as an escape character, with only the
> following two sequences allowed:
>
> ^^ - represents a single ^ character
> ^' - represents a single d-quote character
>
> I ruled out use of \ because some parsers erroneously eat that, and it
> would also be tempting to use \" which is definitely not possible
> because the dquote cannot appear.
>
> I also ruled out & (XML/HTML entity style) and % (URI style) style
> escaping as being too general - we don't need to escape arbitrary
> characters - only dquote. Also, I think & and % are already in common
> use in parameter values that have URIs, so would end up being escaped
> themselves a lot more. I suspect ^ is one of the least used characters
> and so the need to escape the escape character is less.
>
> Obviously there would need to be some backwards compatibility statement
> in regard to what to do with existing values with a single ^. I would
> suggest any combination that is not one of the above two, should be left
> alone when parsing. But when generating, it would be escaped as ^^.
>
> There are probably some other ascii symbols that are infrequently used
> too, that we could pick if there are strong arguments against ^, but for
> now I am happy with ^.
>
> Thoughts?
>


-- 
DTN made easy, lean, and smart --> http://postellation.viagenie.ca
NAT64/DNS64 open-source        --> http://ecdysis.viagenie.ca
STUN/TURN server               --> http://numb.viagenie.ca

From jack@jackpot.uk.net  Tue Jun 19 23:56:55 2012
Return-Path: <jack@jackpot.uk.net>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8389C21F86E4; Tue, 19 Jun 2012 23:56:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
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 C3Ba4GQ8FIJN; Tue, 19 Jun 2012 23:56:55 -0700 (PDT)
Received: from saraha.jackpot.uk.net (saraha.jackpot.uk.net [87.194.213.229]) by ietfa.amsl.com (Postfix) with ESMTP id DE74121F86DE; Tue, 19 Jun 2012 23:56:54 -0700 (PDT)
Received: from [192.168.1.10] (unknown [192.168.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jack) by saraha.jackpot.uk.net (Postfix) with ESMTPSA id 28EF2A9004F; Wed, 20 Jun 2012 07:56:52 +0100 (BST)
Message-ID: <4FE1742C.1030806@jackpot.uk.net>
Date: Wed, 20 Jun 2012 07:56:44 +0100
From: Jack <jack@jackpot.uk.net>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
MIME-Version: 1.0
To: Cyrus Daboo <cyrus@daboo.name>
References: <50174924F12AC68AE58D5384@cyrus.local>
In-Reply-To: <50174924F12AC68AE58D5384@cyrus.local>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Mailman-Approved-At: Wed, 20 Jun 2012 06:59:39 -0700
Cc: Calsify <calsify@ietf.org>, vcarddav@ietf.org
Subject: Re: [VCARDDAV] [calsify] Escaping dquote in a parameter value
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Jun 2012 06:56:55 -0000

On 20/06/2012 03:56, Cyrus Daboo wrote:
> Hi, As I am sure most people are aware, a double-quote character is
> forbidden to appear in a parameter value in both vCard and iCalendar.
>  Yet there is a need to preserve double-quotes in a parameter value.
> So I am going to propose an extension to the specifications whereby a
> new escape mechanism is introduced solely for the purpose of allowing
>  d-quote in a parameter value in a backwards compatible manner.
>
> My proposal is to use ^ (0x5e) as an escape character, with only the
>  following two sequences allowed:
>
> ^^ - represents a single ^ character ^' - represents a single d-quote
> character
>
> I ruled out use of \ because some parsers erroneously eat that, and
> it would also be tempting to use \" which is definitely not possible
>  because the dquote cannot appear.

However "\" is already specified in RFC2445 as the escape character in
TEXT (4.3.11).

That section specifies that a DQUOTE is not to appear in a TEXT; but it
also specifies that a ";" shall not appear in a TEXT, and then goes on
to specify that a ";" must be escaped thus: "\;". So I read it as saying
(as clearly as anything is said in that document) that a DQUOTE should
be escaped thus: "\"".

-- 
Jack.

From cyrus@daboo.name  Wed Jun 20 07:22:16 2012
Return-Path: <cyrus@daboo.name>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7BBED21F875A; Wed, 20 Jun 2012 07:22:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.25
X-Spam-Level: 
X-Spam-Status: No, score=-102.25 tagged_above=-999 required=5 tests=[AWL=0.349, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 WZDRxUswfeSj; Wed, 20 Jun 2012 07:22:16 -0700 (PDT)
Received: from daboo.name (daboo.name [173.13.55.49]) by ietfa.amsl.com (Postfix) with ESMTP id 8994521F86DB; Wed, 20 Jun 2012 07:22:15 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by daboo.name (Postfix) with ESMTP id 2DD2A29B8609; Wed, 20 Jun 2012 10:22:15 -0400 (EDT)
X-Virus-Scanned: amavisd-new at daboo.name
Received: from daboo.name ([127.0.0.1]) by localhost (daboo.name [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wlHzmlUJRD3d; Wed, 20 Jun 2012 10:22:14 -0400 (EDT)
Received: from caldav.corp.apple.com (unknown [17.45.162.46]) by daboo.name (Postfix) with ESMTPSA id 3BB1229B85FE; Wed, 20 Jun 2012 10:22:13 -0400 (EDT)
Date: Wed, 20 Jun 2012 10:22:10 -0400
From: Cyrus Daboo <cyrus@daboo.name>
To: Simon Perreault <simon.perreault@viagenie.ca>
Message-ID: <1ECDAFD01B81379A9A532D86@caldav.corp.apple.com>
In-Reply-To: <4FE1D6E9.8020303@viagenie.ca>
References: <50174924F12AC68AE58D5384@cyrus.local> <4FE1D6E9.8020303@viagenie.ca>
X-Mailer: Mulberry/4.1.0a3 (Mac OS X)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; size=1225
Cc: Calsify <calsify@ietf.org>, vcarddav@ietf.org
Subject: Re: [VCARDDAV] Escaping dquote in a parameter value
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Jun 2012 14:22:17 -0000

Hi Simon,

--On June 20, 2012 9:58:01 AM -0400 Simon Perreault 
<simon.perreault@viagenie.ca> wrote:

> Interesting. I follow your reasoning and agree with your conclusion.
>
> Have you actually come across a parameter value that needed to contain a
> dquote?

yes, there are some cases where it is handy to include additional 
parameters on existing properties. e.g., consider IMPP which is specified 
as a URI for an IM service:

IMPP:xmpp:alice@example.com

Often times, people use arbitrary "display names" (handles) in their IM 
clients, and it would be handy to have those listed in the vcard via a 
parameter on the IMPP property. However, there is no restriction on using a 
DQUOTE in such display names, so we need to allow for DQUOTEs in the 
parameter value.

A similar issue exists for the (now defunct) SOCIALPROFILE property, which 
I still have an interest in using and reviving.

In iCalendar, a good example is the CN parameter (Common Name). Some 
systems allow users to configure their own names so they can add "phrases" 
in the middle, e.g. 'Cyrus "Mulberry Dude" Daboo'. Or perhaps a room or 
resource has a "quoted" title in its name too. So again, there is a need to 
support DQUOTE.

-- 
Cyrus Daboo

