Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B6B549B3E for ; Mon, 12 Mar 2012 18:56:29 +0000 (UTC) Received: (qmail 50831 invoked by uid 500); 12 Mar 2012 18:56:29 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 50803 invoked by uid 500); 12 Mar 2012 18:56:29 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 50794 invoked by uid 99); 12 Mar 2012 18:56:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2012 18:56:29 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fil@adobe.com designates 64.18.1.39 as permitted sender) Received: from [64.18.1.39] (HELO exprod6og117.obsmtp.com) (64.18.1.39) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2012 18:56:22 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob117.postini.com ([64.18.5.12]) with SMTP ID DSNKT15GwP1TNrkFWUVQpqcznQe5z2x5qdpU@postini.com; Mon, 12 Mar 2012 11:56:01 PDT Received: from inner-relay-4.eur.adobe.com (inner-relay-4.adobe.com [193.104.215.14]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id q2CIrwJ0011470 for ; Mon, 12 Mar 2012 11:53:59 -0700 (PDT) Received: from nahub02.corp.adobe.com (nahub02.corp.adobe.com [10.8.189.98]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id q2CItwPl000762 for ; Mon, 12 Mar 2012 11:55:58 -0700 (PDT) Received: from nambxv01a.corp.adobe.com ([10.8.189.95]) by nahub02.corp.adobe.com ([10.8.189.98]) with mapi; Mon, 12 Mar 2012 11:55:57 -0700 From: Filip Maj To: "callback-dev@incubator.apache.org" Date: Mon, 12 Mar 2012 11:56:07 -0700 Subject: Re: Unified JS Contact object Thread-Topic: Unified JS Contact object Thread-Index: Ac0AgcIq+i55cPghTzyI3+TjEWatSg== Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.14.0.111121 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Let's make the change and I can test it out on Android on my end - just ping me. On 3/12/12 10:22 AM, "Becky Gibson" wrote: >The unified JS contact object initializes the contact object incorrectly. >Base on the June, 2011 and March, 2012 definition for the contact object, > parameters that are not defined should have the initial value of null: > >All Contact objects * >must* include all attributes supported by the implementation, regardless >of >whether these attributes have been assigned a null value or not. If a >supported attribute has not been assigned a value by the user or the >implementation, then this attribute *must* still be present in the >resulting Contact >object >and *must* have a value of null. > >The current implementation initializes all of the array fields to an empty >array rather than null if no value is provided. The iOS code relies on >the distinction between null and empty array during an update of a >contact. > If an array value is null, that parameter is ignored (not changed), if it >is an empty array and data exists, the stored date for that parameter is >removed. > >Not sure if changing this back to the spec will affect the other >platforms? > >-becky