Re: [calsify] [Technical Errata Reported] RFC5545 (5505)

Bernard Desruisseaux <bernard.desruisseaux@oracle.com> Thu, 27 September 2018 15:09 UTC

Return-Path: <bernard.desruisseaux@oracle.com>
X-Original-To: calsify@ietfa.amsl.com
Delivered-To: calsify@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 48CDA130E23 for <calsify@ietfa.amsl.com>; Thu, 27 Sep 2018 08:09:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.299
X-Spam-Level:
X-Spam-Status: No, score=-4.299 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=oracle.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7ZJ1Mw3TGeQy for <calsify@ietfa.amsl.com>; Thu, 27 Sep 2018 08:09:21 -0700 (PDT)
Received: from userp2130.oracle.com (userp2130.oracle.com [156.151.31.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 16E6F12008A for <calsify@ietf.org>; Thu, 27 Sep 2018 08:09:20 -0700 (PDT)
Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8RF9BKI028199; Thu, 27 Sep 2018 15:09:11 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=corp-2018-07-02; bh=fdzdj8MuDrU87W1MN4xfwsq90wAwAxpy72bMRrOUXR8=; b=hhVKt6UJAsLEWtNZiX8VnmveF/B1GYZjwfudMaF2+BG/vIVI0PnxQhCJCJ3EWf+agB/U Qi56HBECTPidyQXfGqnbII9pbW3PbBkenvAH3QQtRZNKst3VyoS930ELmReYMUz+dxIA 0wgG7HTnE0x5gfaChKXVJmydQLVVhAbUAb5YUkOREBEB4QfLRZDTohLQB/KfxTamX0o8 8j9B3xaVnm6jcSWk/aJj/CSfDd3dAsFR7MGcgf5yu8Be97IVMxo5eNK8nUGWJviTGn9J cZ9wdXngOi2568pz45UYR0rvGAHm+dnr6820TUe6RW7KOHynsrmif3JLfxblns2j5vR4 tA==
Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2mnd5ttt2b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 27 Sep 2018 15:09:10 +0000
Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w8RF94ue012141 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 27 Sep 2018 15:09:04 GMT
Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w8RF94g3029393; Thu, 27 Sep 2018 15:09:04 GMT
Received: from dhcp-10-156-45-121.ca.oracle.com (/10.156.45.121) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 27 Sep 2018 08:09:04 -0700
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Bernard Desruisseaux <bernard.desruisseaux@oracle.com>
In-Reply-To: <19EFCA1E91A6F59ABAE023F7@cyrus.local>
Date: Thu, 27 Sep 2018 11:09:02 -0400
Cc: "Michael A. Douglass" <mikeadouglass@gmail.com>, IETF Calsify <calsify@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <F1063784-CFF4-4CB2-9DA2-E85AE0584135@oracle.com>
References: <20180926090958.74B27B8108E@rfc-editor.org> <983178de-f430-2115-0579-be861b198059@cisco.com> <bc3b0401-7a31-7cc1-d169-7511bdff0319@gmail.com> <19EFCA1E91A6F59ABAE023F7@cyrus.local>
To: Cyrus Daboo <cyrus@daboo.name>
X-Mailer: Apple Mail (2.3124)
X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9028 signatures=668707
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809270144
Archived-At: <https://mailarchive.ietf.org/arch/msg/calsify/8BYGhMMdiLbuCON6A-f6dJSpYtk>
Subject: Re: [calsify] [Technical Errata Reported] RFC5545 (5505)
X-BeenThere: calsify@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <calsify.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/calsify>, <mailto:calsify-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/calsify/>
List-Post: <mailto:calsify@ietf.org>
List-Help: <mailto:calsify-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/calsify>, <mailto:calsify-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 27 Sep 2018 15:09:23 -0000

Hi Cyrus,

Should TZID allow quoted values?  One could easily answer: Why not!   In 2018, though I’m more tempted to ask: Why?

As you rightly mentioned, we now have the IANA Time Zone Database.

Why would someone want / need to specify   TZID=GMT-03:00  instead of  TZID=Etc/GMT-3?

Perhaps this iCalendar inconsistency is actually a good thing for interoperability!

Finally, for the record only, not that it matters, Mozilla.org did use the tzprefix at some point.  See:

	https://www.google.ca/search?q=TZID=/mozilla.org

Cheers,
Bernard

> Le 26 sept. 2018 à 10:27, Cyrus Daboo <cyrus@daboo.name> a écrit :
> 
> Hi Michael,
> 
> --On September 26, 2018 at 1:00:02 PM +0200 Michael Douglass <mikeadouglass@gmail.com> wrote:
> 
>> My belief is that parsers are already expecting this. Certainly ical4j
>> and libical already accept quoted values.
>> 
>> In any case it's broken as it stands. Parameter escaping isn't an option
>> as it assumes parameter value quoting is an option.
> 
> I agree this should be fixed, but the proposed change in the erratum is wrong. This was the proposed new definition:
> 
>      tzidparam  = "TZID" "=" [tzidprefix] param-value
> 
> That does not work because it would allow the optional tzidprefix (which is a single "/" character) to appear before the first quote of any quoted string. I think you really need:
> 
> tzidparam  = "TZID" "=" ([tzidprefix] paramtext) /
>                       (DQUOTE [tzidprefix] *QSAFE-CHAR DQUOTE)
> 
> That ensures the tzidprefix appears inside the quoted string, if that construct is used.
> 
> That said, I don't think I have ever seen tzidprefix being used. It was meant to be used to indicate the the ID was from a globally defined registry - well we have that now (IANA tzdb) and we aren't using the prefix. I would suggest any future revision of 5545 should drop tzidprefix as a formal syntax element, and instead just mention that the tzid value may be prefixed.
> 
> FYI I checked my 5545 code and all implementations parse and generate paramaters based on the generic definition of a parameter:
> 
>    param         = param-name "=" param-value *("," param-value)
> 
> So a quoted TZID would be fine.
> 
> -- 
> Cyrus Daboo
> 
> _______________________________________________
> calsify mailing list
> calsify@ietf.org
> https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ietf.org_mailman_listinfo_calsify&d=DwICAg&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=1KWjrk6WfltMq-xNvZw71GcUXlVStaOFvtc__OOO9f8&m=BvqZ3mUPlLxPK4dmzAOgTYiPUSywS7v8KV8Ybm3XBbI&s=6mggIoTabdhZqrS4rxdSdbK9RHlUdSEx7oHg6CNppKE&e=