Re: [VCARDDAV] [Technical Errata Reported] RFC6350 (3100)

"Javier Godoy" <rjgodoy@fich.unl.edu.ar> Mon, 30 January 2012 21:56 UTC

Return-Path: <rjgodoy@fich.unl.edu.ar>
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 49D1711E80D3 for <vcarddav@ietfa.amsl.com>; Mon, 30 Jan 2012 13:56:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.054
X-Spam-Level:
X-Spam-Status: No, score=-3.054 tagged_above=-999 required=5 tests=[AWL=-1.945, BAYES_05=-1.11, STOX_REPLY_TYPE=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 jDsHC6nwyi7X for <vcarddav@ietfa.amsl.com>; Mon, 30 Jan 2012 13:56:42 -0800 (PST)
Received: from fich.unl.edu.ar (fich.unl.edu.ar [190.122.240.170]) by ietfa.amsl.com (Postfix) with ESMTP id 7474E11E80CD for <vcarddav@ietf.org>; Mon, 30 Jan 2012 13:56:41 -0800 (PST)
Received: from localhost ([127.0.0.1]) by fich.unl.edu.ar (using TLSv1/SSLv3 with cipher RC4-MD5 (128 bits)); Mon, 30 Jan 2012 18:56:29 -0300
Message-ID: <14E42CB21F0E477CA6DA0AC8E1E1A40D@Javier2>
From: Javier Godoy <rjgodoy@fich.unl.edu.ar>
To: Simon Perreault <simon.perreault@viagenie.ca>, RFC Errata System <rfc-editor@rfc-editor.org>
References: <20120130182941.6F376B1E002@rfc-editor.org> <4F26E44D.6060807@viagenie.ca>
Date: Mon, 30 Jan 2012 18:55:22 -0300
MIME-Version: 1.0
Content-Type: text/plain; format="flowed"; charset="iso-8859-1"; reply-type="original"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
Cc: Pete Resnick <presnick@qualcomm.com>, vcarddav@ietf.org
Subject: Re: [VCARDDAV] [Technical Errata Reported] RFC6350 (3100)
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, 30 Jan 2012 21:56:43 -0000

On 2012-01-30 15:41, Simon Perreault wrote:

> On 2012-01-30 13:29, RFC Errata System wrote:
>> Original Text
>> -------------
>> type-param = "TYPE=" type-value *("," type-value)
>>
>> Corrected Text
>> --------------
>> type-param =  "TYPE=" type-value *("," type-value)
>> type-param =/ "TYPE=" DQUOTE type-value *("," type-value) DQUOTE
>
> Well, all parameters can be implicitly quoted. So why restrict yourself to
> the TYPE parameter?

Because Section 5 specifies that "the property parameter can be multi-valued
in which case the property parameter value elements are separated by a COMMA"
and "property parameter value elements that contain the COLON, SEMICOLON, or
COMMA character separators MUST be specified as quoted-string text values".

As I understand Section 5, there are two value elements ("text" and "voice"),
and what must be quoted is not the property parameter *value* (as in
TYPE="text,voice"), but the property parameter value *elements* (as in
TYPE="text","voice").
.
Since TYPE is defined as "a comma-separated subset of a predefined
enumeration", not only there is no need to escape the comma, but the comma
MUST NOT be escaped since it is the list delimiter instead of a part of the
*parameter value element*.

This is similar to
 N;SORT-AS="Aboville,Marie,Christine":d'Aboville;Marie,Christine;;
instead of
 N;SORT-AS="Aboville","Marie,Christine":d'Aboville;Marie,Christine;;


> If the ABNF is to be fixed, it would need to be done implicitly for all
> parameters at once.

Most of the other parameters either must be quoted (and already allow DQUOTE
in ABNF), or are defined as a single element that cannot contain
comma/semicolon/colon (thus the implicit quote rule is harmless). Even most of
the list types are not ambiguous if the whole value is quoted, for instance
the integer-list value "+1234556790,432109876" can be understood as
"+1234556790","432109876", but there are no conflicting examples or
definitions in RFC 6350.

My concern is that quoting "text,voice" does not conforms Section 5, and
should be explicitly allowed. Whether the requirement of quoting value
elements per Section 5 remains as an implicit rule or it is explicitly stated
in the ABNF, is a separate issue that I didn't intend to discuss.


Best Regards

Javier