Re: [VCARDDAV] Fwd: Last Call: <draft-daboo-et-al-icalendar-in-xml-08.txt> (xCal: The XML format for iCalendar) to Proposed Standard

Arnaud Quillaud <arnaudq@quillaud.org> Fri, 15 April 2011 12:41 UTC

Return-Path: <quillaud@gmail.com>
X-Original-To: vcarddav@ietfc.amsl.com
Delivered-To: vcarddav@ietfc.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfc.amsl.com (Postfix) with ESMTP id 597AAE06ED for <vcarddav@ietfc.amsl.com>; Fri, 15 Apr 2011 05:41:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([208.66.40.236]) by localhost (ietfc.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p3dm7Jnkvhoy for <vcarddav@ietfc.amsl.com>; Fri, 15 Apr 2011 05:41:57 -0700 (PDT)
Received: from mail-ww0-f44.google.com (mail-ww0-f44.google.com [74.125.82.44]) by ietfc.amsl.com (Postfix) with ESMTP id 01AAEE0681 for <vcarddav@ietf.org>; Fri, 15 Apr 2011 05:41:56 -0700 (PDT)
Received: by wwa36 with SMTP id 36so2122048wwa.13 for <vcarddav@ietf.org>; Fri, 15 Apr 2011 05:41:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:message-id:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=EB+2QKJz2k83yXBdQI2ms3/2r0NZQbOywsRZbPHnWaE=; b=eL7i+LijGX9zMMB6WGY81Rrf2l6NKvR3fmkN1w5UDzhNgUcaCuxm+N+9g5TO5zIlHT XZe890rEbuSl2RrHps80uNRwLwkyKmo01n3hqF7YbfLiAczuc2VRS+4uqqChkVGX+opw NJ4sDjLsiYkfS8pOpVLbgi4fHnwScM4RR2+Zs=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=gUtxIy+ghDG98Umf1ssr8KpjbyMUl2foqxmKnV3TR4xAlZH/YFQlIklyLgZsU1xb2f mzjd7c4+Vx6SODb/rQKUc3DWXode4AaUbLNX0OuMRfQnfzwyIioB/yUYd/ReVEAwIMi2 cgUecOW7m0GAorSbKPBPs8RVu6tEVFpTcXB60=
Received: by 10.227.150.101 with SMTP id x37mr2031487wbv.225.1302871316267; Fri, 15 Apr 2011 05:41:56 -0700 (PDT)
Received: from [192.168.0.60] (ron34-2-82-227-203-159.fbx.proxad.net [82.227.203.159]) by mx.google.com with ESMTPS id o6sm1597695wbo.20.2011.04.15.05.41.54 (version=SSLv3 cipher=OTHER); Fri, 15 Apr 2011 05:41:55 -0700 (PDT)
Sender: Arnaud Quillaud <quillaud@gmail.com>
Message-ID: <4DA83D11.5060103@quillaud.org>
Date: Fri, 15 Apr 2011 14:41:53 +0200
From: Arnaud Quillaud <arnaudq@quillaud.org>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 OracleBeehiveExtension/1.1.0.0pre29-Alpha Thunderbird/3.1.8
MIME-Version: 1.0
To: Filip Navara <filip.navara@gmail.com>
References: <4DA71969.9010600@stpeter.im> <BANLkTimOUPo-hN7wu7J3uyZkCxTdtSLahg@mail.gmail.com>
In-Reply-To: <BANLkTimOUPo-hN7wu7J3uyZkCxTdtSLahg@mail.gmail.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: CardDAV <vcarddav@ietf.org>
Subject: Re: [VCARDDAV] Fwd: Last Call: <draft-daboo-et-al-icalendar-in-xml-08.txt> (xCal: The XML format for iCalendar) to Proposed Standard
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: Fri, 15 Apr 2011 12:41:58 -0000

On 04/14/2011 06:21 PM, Filip Navara wrote:
> On Thu, Apr 14, 2011 at 5:57 PM, Peter Saint-Andre<stpeter@stpeter.im>  wrote:
>> Just FYI. This document is intended to be in sync with vcardxml
>> regarding XML structure, so folks here might want to review both
>> documents with that in mind...
> That's surely not the case, vcardxml uses different encoding for
> parameters as far as I can see. This was apparently deliberate change
> in vcardxml:
>
> "o  All parameters now use value elements.  This affects type, and pref."
>
> Aside from that there's another problem with the ENCODING parameter.
> iCalendar (RFC 5545) is very vague with the definition and usage of
> the ENCODING parameter and as such it is possible, albeit pretty
> useless, to create the following property:
>    "SEQUENCE;ENCODING=BASE64:MQ=="
We have

  seq = "SEQUENCE" seqparam ":" integer CRLF
        ; Default is "0"

        seqparam   = *(";" other-param)

where

other-param   = (iana-param / x-param)

      iana-param  = iana-token "=" param-value *("," param-value)
      ; Some other IANA-registered iCalendar parameter.

      x-param     = x-name "=" param-value *("," param-value)
      ; A non-standard, experimental parameter.


so I think the above is just invalid.

The encoding param is really just allowed on ATTACH as far as I can see.

Arnaud
> At least one of the leading iCalendar parsing libraries actually has
> such content in the .ics files in test suite.
>
> draft-daboo-et-al-icalendar-in-xml states the following:
>
> "As required by [RFC5545], the ENCODING paramater MUST be present and
> set to "BASE64", and the VALUE parameter must be present and set to
> "BINARY"."
>
> and
>
> "iCalendar uses a base64 encoding for binary data.  The base64
> encoding MUST remain when converted to XML."
>
> The problem is that this is in conflict with the vague definition in
> RFC5545, where ENCODING=BASE64 can be used for non-BINARY values.
>
> Best regards,
> Filip Navara
> _______________________________________________
> VCARDDAV mailing list
> VCARDDAV@ietf.org
> https://www.ietf.org/mailman/listinfo/vcarddav