Re: [calsify] draft-ietf-calext-jscalendar-icalendar-02

Ken Murchison <murch@fastmail.com> Mon, 21 December 2020 12:17 UTC

Return-Path: <murch@fastmail.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 8F2843A0F22 for <calsify@ietfa.amsl.com>; Mon, 21 Dec 2020 04:17:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, NICE_REPLY_A=-0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-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=fastmail.com header.b=XMd30ACG; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=PoIwNFV3
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 ZphBjZJpoSpK for <calsify@ietfa.amsl.com>; Mon, 21 Dec 2020 04:17:07 -0800 (PST)
Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DD3EE3A0F0F for <calsify@ietf.org>; Mon, 21 Dec 2020 04:17:06 -0800 (PST)
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 2E7BB5C017E; Mon, 21 Dec 2020 07:17:06 -0500 (EST)
Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 21 Dec 2020 07:17:06 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type; s=fm1; bh=JmQnLiXGCtbC/03yI5yjcsS973c 2M8mVKV4rzHBMF/w=; b=XMd30ACGd3CjCS78QJZDkLYkixhQCEOH6o3RJiXlZeQ Q2Z0hxPTefuKcTYt7vuuTlh/tU8mMYzs6n1yIExiSXei82NKWk9D7e2J6Vf5kRKN w2Lx3q7tPc9bwHRKkCnwKR6jV5g56XJNB8uqKSppUHi+GyYL/znrCE7CTc/eLlF1 KjGumaA9PQGtOrEiSL0FJYpQRogCosEFEkilshlnK6QZiZ6QEJMZI/egfIiweCW6 ypqeeib93AmkEq15csbFmGTTNTKWHcivZ4zfgifA+VzX9tJFXkVoZpleCbiDVccm fdXOICuXYNZQ5vpoplh9QI8kJuAA9xvoBzLFLpgJJrg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=JmQnLi XGCtbC/03yI5yjcsS973c2M8mVKV4rzHBMF/w=; b=PoIwNFV3St4cL9KqUEcmkU uZrdEsHqXKXyLyxjPkdM3Rs6fXq0i4I5v4FoI0XmkiGglGgGNuCLUBwvBNCQLoPJ n3mI3TZywdjOnoDgefP1ZYiBm60l/uiSxBiX2G7gdx3Dou484fKgHLzNrmRH2aPD E5VtVFe88R3B0uXAmugtafPBugDSFQl63Z4XuZnuYr3HlQrc+PxFWmFcuDH82/kl 3lIWDvqAIoZO6krp6WXc6IrANspiV+9lnnqseIOc1gN/FjiFCWsi1r18st2qai42 UrV4NW/yeMe+6y0CWSl3C6HK/uFxxuvH3UR7WcgMFLO+ouQ9tVN3tMFaND/791oA ==
X-ME-Sender: <xms:QZLgX3sLqA2KenvYJVgJCBHlVF5K6M-ZW6uUb93rRMfy1JQJSIpZiA> <xme:QZLgX4bmtnLf1hP1rmfNAJincV_7mML7m5gboYxSuozt8ncmrfqtTdoDI7WfWknBk R9DbrxLi1VmYw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddtvddggeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtsegrtderredtfeejnecuhfhrohhmpefmvghnucfo uhhrtghhihhsohhnuceomhhurhgthhesfhgrshhtmhgrihhlrdgtohhmqeenucggtffrrg htthgvrhhnpeekheevhfduleeufeduhfellefffeeigeeguddvveekiefhvdeujeeffeej tdegfeenucfkphepjeegrdejjedrkeehrddvhedtnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhurhgthhesfhgrshhtmhgrihhlrdgtohhm
X-ME-Proxy: <xmx:QpLgX3qAqYN6k4Au0xl8a-JtEBIXWs9rFHNU3ZgYzB4DNcDtYz_NKQ> <xmx:QpLgX988vFbN0Ij75qLOPIDA-7RXYGxGfsDvPGCPHMxbdXRrH3_G1w> <xmx:QpLgX29OaZs3ViBthlOhN2yBD8HerRbLvl6vkcIjV-ZYDajxcZ1GSg> <xmx:QpLgXxkPxM-ChXGkBEn3JVF-JDsIDO9WHjJxRfhU5ezsiPrILqYFXA>
Received: from [192.168.1.22] (cpe-74-77-85-250.buffalo.res.rr.com [74.77.85.250]) by mail.messagingengine.com (Postfix) with ESMTPA id CF4CE24005C; Mon, 21 Dec 2020 07:17:05 -0500 (EST)
To: Michael Douglass <mikeadouglass@gmail.com>, Calsify <calsify@ietf.org>
References: <57f81335-b7a9-6a9f-df5f-bab580689a33@fastmail.com> <bedb37af-67f1-17d0-b785-c4c9a27418e0@gmail.com>
From: Ken Murchison <murch@fastmail.com>
Message-ID: <9595a7c0-2fb8-4e68-cd45-ce97bc13532f@fastmail.com>
Date: Mon, 21 Dec 2020 07:17:04 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0
MIME-Version: 1.0
In-Reply-To: <bedb37af-67f1-17d0-b785-c4c9a27418e0@gmail.com>
Content-Type: multipart/alternative; boundary="------------B28A566E3D1C7FC7F506B1A6"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/calsify/JV6hzjFUVhvo0hOs2AQjKF5utTw>
Subject: Re: [calsify] draft-ietf-calext-jscalendar-icalendar-02
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: Mon, 21 Dec 2020 12:17:09 -0000

Hi Mike,


On 12/21/20 12:09 AM, Michael Douglass wrote:
>
> On 12/19/20 13:50, Ken Murchison wrote:
>>
>> All,
>>
>> I just had cause to consult jscalendar-icalendar Section 2.1 
>> <draft-ietf-calext-jscalendar-icalendar-02> and I have a couple of 
>> issues:
>>
>>  1. Why is this value specified to be the entire date-time plus
>>     fractional seconds?  Wouldn't the fractional seconds be sufficient?
>>  2. The definition of the parameter is incorrect:
>>      1. It doesn't include the game of the parameter in the definition
>>      2. The value isn't DATE-TIME or DURATION, its value is an
>>         extension of date-time.  If keeping a full time
>>         representation it should be something like "date-time "." 1*DIGIT
>>
> 1.This was my suggestion - way back in April
>
> As I recall my main problem with the previous approach - which was 
> just the fractional part - was that it led to ambiguities and having 
> to define how the full value was rounded to produce the truncated 
> iCalendar value. Having the full value means you just choose to use 
> either the (possibly adjusted) property value or the (possibly more 
> accurate) FRACTIONAL parameter value. No processing or worrying about 
> edge cases.
>

Now that you refreshed my memory, I do recall this discussion. If we 
allow the fractional part to be positive OR negative, doesn't this solve 
the rounding problem?  If the full value is rounded with value R, the 
fractional part can be set to -R.

> 2. I think FRACTIONAL can be used for DURATION as well as as for 
> DTSTART and the abnf is wrong anyway. We have
>
> fractional-param = DATE-TIME or DURATION
>
> shouldn't it be something like
>
> fractional-param = "FRACTIONAL" = (date-time | dur-value) ["." 1*DIGIT]
> ; Value is extended date-time when used with the DTSTART property
> ; Value is extended dur-value when used with the DURATION property


If we're going to keep FRACTIONAL as being the full value, we will have 
to be more creative with the ABNF because date-time has [time-utc] as 
its last component, and for durations, we probably only want/need the 
fractional part when the duration includes dur-second.  So perhaps:

fractional-param = "FRACTIONAL" "=" (date-time-frac / dur-frac)

date-time-frac = date "T" time-frac

time-frac = time-hour time-minute time-second frac-sec [time-utc]

frac-sec = "." 1*DIGIT

dur-frac = (["+"] / "-") "P" dur-day dur-time-frac

dur-time-frac = 1*DIGIT "H" 1*DIGIT "M" dur-second frac-sec


Having gone through this exercise, I think it would be a lot simpler to 
just do:

fractional-param = "FRACTIONAL" "=" (["+"] / "-") "." 1*DIGIT

-- 

Kenneth Murchison
Senior Software Developer
Fastmail US LLC