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

Robert Stepanek <rsto@fastmailteam.com> Mon, 21 December 2020 12:31 UTC

Return-Path: <rsto@fastmailteam.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 4644C3A0F13 for <calsify@ietfa.amsl.com>; Mon, 21 Dec 2020 04:31:47 -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, HTML_MESSAGE=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=fastmailteam.com header.b=PMKgbrpR; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=nroR+5Bm
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 DBkOm4OCw7UN for <calsify@ietfa.amsl.com>; Mon, 21 Dec 2020 04:31:45 -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 6B6FA3A0E58 for <calsify@ietf.org>; Mon, 21 Dec 2020 04:31:45 -0800 (PST)
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 969F65C0101 for <calsify@ietf.org>; Mon, 21 Dec 2020 07:31:44 -0500 (EST)
Received: from imap7 ([10.202.2.57]) by compute4.internal (MEProxy); Mon, 21 Dec 2020 07:31:44 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= fastmailteam.com; h=mime-version:message-id:in-reply-to :references:date:from:to:subject:content-type; s=fm1; bh=2yZ047w 8DFj9y2zOHoN4JyT6zIvRxukaXPIJb0XVr84=; b=PMKgbrpRDAjB7hETscrhgeN a3yQ/TwQoXc+4hVwzTk/BLAuiZX3B/gz2MYNT/7LE8uWqpbRH4T0PRJXaDUjck5S YctyJfclMesot+OUBnqYXSdft8NrRfzaVvs0KFDsao5Pq8p0Xf4fQ6M3wFxsPCve 0DVm2CeBAEQ/kd617oi3iO6IsMHUPAxPjO/lO/n9EW5IlEw5C3z7P5hmD5ggPI31 HdOBDRYe+1yQ//f2tGEiOEYbqRgocCVYK6yl9x5ruPJrCZ1sMR88DJSBSn5VnLag xrocWwdVQLN2QvGEIyrj5LQQPyM+Ri2yqn3gODO+G3pZFBQB/0glIGub6PwmwuA= =
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=2yZ047 w8DFj9y2zOHoN4JyT6zIvRxukaXPIJb0XVr84=; b=nroR+5BmtsIuKk8d5syLai sFumqI3e7zdN1eXOZzPFrSvUhrDsDJI5KvSyhrQln7IFIqsFZZZS++ifkWKfPRWP Igg8zCN3AZSJvabd0/X3CsW20BpSDdn8C4L8qveu8IadPh5TnMmUpmFmwIQSia00 /9QkKwDIRGh2CI+6VgTbiHDYKtdE1ayt1JQJFGeTXFiH8FNcgiOBsGCrMIdBdYnX Zq035r9ZeH/BXv3Y9KuWumW7IoS38YF3c5mk30UUP0Oszd3+flMQCR7aEEpoIqu8 W7pkBZA0RDNzieGyG1bo1F+lEbyVTtnO1WYwRkYUh1TlF56YPNN08GinITL41M/g ==
X-ME-Sender: <xms:sJXgXzCDzpRkolWkN5NNFOypWe59RmYCaFt-QE5UAvmTnWx0TW6FjQ> <xme:sJXgX5gXAb4xJ8vWP3ArbvJoicOOqq2SHLm7ryMwo0cAsScs1eXWH3FTpeiKvb1mm JYp2oQX03G9GA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddtvddggeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsegrtd erreerredtnecuhfhrohhmpedftfhosggvrhhtucfuthgvphgrnhgvkhdfuceorhhsthho sehfrghsthhmrghilhhtvggrmhdrtghomheqnecuggftrfgrthhtvghrnheptefhffffke eukeevleelgeelhfegfeejueegteekjeekgfdthfehhedvheehvdfhnecuffhomhgrihhn pehivghtfhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehrshhtohesfhgrshhtmhgrihhlthgvrghmrdgtohhm
X-ME-Proxy: <xmx:sJXgX-nzKWlZcxON3LfX-a8GPRrYDZ6jqDot_0H7PwE3vQgieioLWA> <xmx:sJXgX1ycr6V-Y7jHw5AdM3ua_h8-qCY4vwhXCUloP0ro-getMUfM8A> <xmx:sJXgX4T_U3t1EryRuKxzHoI0BqBjTkrPrErioRFTcB7A6QiihV4t1g> <xmx:sJXgX_cjWsTcrBz8ia-ktnYE5NvEthX7-5LzQ7iMHjDTkmXiCyo1kA>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 499D91800C1; Mon, 21 Dec 2020 07:31:44 -0500 (EST)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.3.1-61-gb52c239-fm-20201210.001-gb52c2396
Mime-Version: 1.0
Message-Id: <6eb94ffd-2d3f-4e42-88bb-ef352495351d@www.fastmail.com>
In-Reply-To: <9595a7c0-2fb8-4e68-cd45-ce97bc13532f@fastmail.com>
References: <57f81335-b7a9-6a9f-df5f-bab580689a33@fastmail.com> <bedb37af-67f1-17d0-b785-c4c9a27418e0@gmail.com> <9595a7c0-2fb8-4e68-cd45-ce97bc13532f@fastmail.com>
Date: Mon, 21 Dec 2020 13:31:24 +0100
From: Robert Stepanek <rsto@fastmailteam.com>
To: calsify@ietf.org
Content-Type: multipart/alternative; boundary="9912e59f48ec4d10bfc3fd08f6ee0859"
Archived-At: <https://mailarchive.ietf.org/arch/msg/calsify/g2ie79CtjN1ewz71zNusmjujgn4>
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:31:47 -0000

As noted in my previous email: we already agreed to not set the complete timestamp in the FRACTIONAL parameter value. 

Instead we will set a SUBSECONDS parameter which will be defined to a FLOAT value with MUST be positive and less than 1.0.

Cheers,
Robert

On Mon, Dec 21, 2020, at 1:17 PM, Ken Murchison wrote:
> 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 <https://www.fastmail.com/mail/draft-ietf-calext-jscalendar-icalendar-02?u=e4d9409a> 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
> _______________________________________________
> calsify mailing list
> calsify@ietf.org
> https://www.ietf.org/mailman/listinfo/calsify
>