Re: [Jcardcal] Genart LC review: draft-ietf-jcardcal-jcal-09

Robert Sparks <rjsparks@nostrum.com> Thu, 20 March 2014 22:21 UTC

Return-Path: <rjsparks@nostrum.com>
X-Original-To: jcardcal@ietfa.amsl.com
Delivered-To: jcardcal@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CF0E01A077C; Thu, 20 Mar 2014 15:21:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.447
X-Spam-Level:
X-Spam-Status: No, score=-2.447 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.547] autolearn=ham
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 VDuCW3y3zFNb; Thu, 20 Mar 2014 15:21:09 -0700 (PDT)
Received: from nostrum.com (raven-v6.nostrum.com [IPv6:2001:470:d:1130::1]) by ietfa.amsl.com (Postfix) with ESMTP id 09B9D1A0751; Thu, 20 Mar 2014 15:21:08 -0700 (PDT)
Received: from unnumerable.local (pool-173-71-10-88.dllstx.fios.verizon.net [173.71.10.88]) (authenticated bits=0) by nostrum.com (8.14.8/8.14.7) with ESMTP id s2KMKrIS003116 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=OK); Thu, 20 Mar 2014 17:20:53 -0500 (CDT) (envelope-from rjsparks@nostrum.com)
X-Authentication-Warning: raven.nostrum.com: Host pool-173-71-10-88.dllstx.fios.verizon.net [173.71.10.88] claimed to be unnumerable.local
Message-ID: <532B69C8.305@nostrum.com>
Date: Thu, 20 Mar 2014 17:20:56 -0500
From: Robert Sparks <rjsparks@nostrum.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
MIME-Version: 1.0
To: Philipp Kewisch <kewisch@gmail.com>, General Area Review Team <gen-art@ietf.org>, draft-ietf-jcardcal-jcal@tools.ietf.org, jcardcal@ietf.org
References: <531F5C0D.5040903@nostrum.com> <532B5066.5050803@gmail.com>
In-Reply-To: <532B5066.5050803@gmail.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/jcardcal/JuxCBEehArE8zDlemai6JMxaq6A
Subject: Re: [Jcardcal] Genart LC review: draft-ietf-jcardcal-jcal-09
X-BeenThere: jcardcal@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: JSON data formats for vCard and iCalendar WG <jcardcal.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jcardcal>, <mailto:jcardcal-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jcardcal/>
List-Post: <mailto:jcardcal@ietf.org>
List-Help: <mailto:jcardcal-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jcardcal>, <mailto:jcardcal-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 20 Mar 2014 22:21:12 -0000

Inline
On 3/20/14, 3:32 PM, Philipp Kewisch wrote:
> Hi Robert,
>
> Thank you for your valuable comments.
>> I agree with moving the reference to RFC4627 to normative, as already
>> discussed.
> Done.
>
>> Please consider adding a reference to clarify "JSON escaping" where it
>> is mentioned in the 2nd paragraph of page 5.
>> Perhaps section 2.5 of rfc4627 would be a good reference?
> Sounds good. Here is my suggestion:
>
> OLD
>     When converting from iCalendar to jCal, first iCalendar lines MUST be
>     unfolded.  Afterwards, any iCalendar escaping MUST be unescaped.
>     Finally JSON escaping (e.g., for control characters) MUST be applied.
>
>     The reverse order applies when converting from jCal to iCalendar.
>     First, JSON escaping MUST be unescaped.  Afterwards, iCalendar
>     escaping MUST be applied.  Finally, long lines SHOULD be folded as
>     described in [RFC5545].
> NEW
>     When converting from iCalendar to jCal, first iCalendar lines MUST be
>     unfolded.  Afterwards, any iCalendar escaping MUST be unescaped.
>     Finally JSON escaping, as described in [RFC7195] Section 7, MUST be
>     applied.
>
>     The reverse order applies when converting from jCal to iCalendar.
>     First, JSON escaping MUST be unescaped.  Afterwards, iCalendar
>     escaping MUST be applied.  Finally, long lines SHOULD be folded as
>     described in [RFC5545].
> END
wfm
>
>
>> The MUST in the third paragraph of 3.4.1.1 stuck out - is looks like a
>> restatement of RFC5545 - that spec doesn't _allow_ anything but a
>> semicolon for this particular separator. Would this be better written
>> without 2119?
>> Perhaps: "When converting from jCal to iCalendar, be careful to use a
>> semi-colon as the separator between the two values as required by
>> RFC5545."
> Thanks for the suggestion, I've changed it locally.
>
>> (This may be more than a nit): In the ABNF in section 3.6.5, where is
>> the implementer supposed to go to find the definition of 'zone'? (Or
>> the other production names?) I think _this_ chunk of ABNF (as opposed
>> to that compiled in the appendix) is intended to be normative, yes?
>> FWIW, it's not reflected in Appendix B.
> Indeed, there are some shortcomings here. For the
> year/month/day/hour/minute/second production names I can add an explicit
> reference to ISO.8601.2004 Section 2.2. The zone designator is only
> marginally mentioned in ISO.8601.2004 Section 4.3.2.
>
> The exact date format is not reflected in Appendix B because the
> Appendix does not intend to capture the structure of each different
> property type.
>
> As the two jcardcal drafts are my first rfc documents, I am not quite
> sure when its a good idea to make the ABNF normative. I could probably
> declare it informative by virtue of the reference to ISO 8601 and
> RFC5545. The ABNF was added in draft 08, in alignment with the changes
> we've made in jcard (rfc7095). There was a lot of discussion on the
> jcardcal list on the date formats and it became clear that the specific
> variations of ISO 8601 2001 and 2004 used in iCalendar and vCard make it
> hard to grasp. By explicitly mentioning the date format I wanted to
> counteract.
>
> I'd appreciate some feedback on how to further handle this issue.
Please work with your AD on this one.
It's a little detail, not a big problem, but we do need to be clear 
about what the grammar actually is.
>
>> I haven't extracted the BNF in appendix B and verified it, but it must
>> fail - there is at least one typo. The expansion of param-multi
>> includes "value-separtor" which should have been "value-separator".
>> Where is value-separator defined?
> I've fixed two typos and run it through
> <http://www.apps.ietf.org/content/chris-newmans-abnf-validator>.
> Validation was successful.
>
> value-separator is defined in section 2 of rfc 7159.
Provide that reference at the point it's used in the document please.
>
>> Just curious - has anyone tried converting a document from
>> iCal->xCal->jCal->iCal? That might turn up some interesting corners
>> that simple round-tripping might mask.
> I haven't tried that, it might be interesting though. My library cannot
> convert xCal to jCal (yet), but maybe Cyrus' library does it and he can
> take a look.
>
> Regards,
> Philipp