Re: [Jcardcal] Barry Leiba's Discuss on draft-ietf-jcardcal-jcal-09: (with DISCUSS and COMMENT)

Philipp Kewisch <kewisch@gmail.com> Tue, 25 March 2014 21:32 UTC

Return-Path: <kewisch@gmail.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 CAEC01A0230; Tue, 25 Mar 2014 14:32:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] 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 VY-6kEF_VRr8; Tue, 25 Mar 2014 14:32:00 -0700 (PDT)
Received: from mail-bk0-x22e.google.com (mail-bk0-x22e.google.com [IPv6:2a00:1450:4008:c01::22e]) by ietfa.amsl.com (Postfix) with ESMTP id DBE661A0236; Tue, 25 Mar 2014 14:31:58 -0700 (PDT)
Received: by mail-bk0-f46.google.com with SMTP id v15so348823bkz.33 for <multiple recipients>; Tue, 25 Mar 2014 14:31:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=nPeAmj/IckVCWm11DPJGmweUCezUJwbKo9Hir5UadEg=; b=hIi6ZN5fI+MY3avihsGY9TDHqs+MdDTNPyQVVffNufmyyk74HvrZO8ugBlx0Vox5S+ j+V8nepvLi3nZ/VdUbE+g/6ZsKT6i+vudK34RXmRd7nVWnARsnX0g7OrriEYqC3tOmrd iCYHbM8MUgwNdYvk7sAHbpsVt6MTTEoXn7OauZTxUpMPwcpdULUj+EAMIii9l5/czNy8 sXUEm7eFdGLAIB2NqNqmdLjP+zhPLdw37pXGM8gAkM23kFdmqqke2IZWwQnQrltG9TK5 CZFohD1j2GUZL8VkesAyWSUhHcf6m6UvTCQPbX55BHh+3D9mg8MMnAzX1X1c9gflWSDm 14fg==
X-Received: by 10.205.99.201 with SMTP id ct9mr82617bkc.90.1395783116869; Tue, 25 Mar 2014 14:31:56 -0700 (PDT)
Received: from [192.168.2.104] (p5DC1549E.dip0.t-ipconnect.de. [93.193.84.158]) by mx.google.com with ESMTPSA id c15sm20455406bky.13.2014.03.25.14.31.55 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Mar 2014 14:31:56 -0700 (PDT)
Message-ID: <5331F5CB.2070709@gmail.com>
Date: Tue, 25 Mar 2014 22:31:55 +0100
From: Philipp Kewisch <kewisch@gmail.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:28.0) Gecko/20100101 Thunderbird/28.0
MIME-Version: 1.0
To: Barry Leiba <barryleiba@computer.org>
References: <20140321235859.8088.83276.idtracker@ietfa.amsl.com> <53309DCE.2000900@gmail.com> <CALaySJ+jsgXo2HskpngW+atLAe_bFaxBtGv6OK4Ybzg6pgTSZw@mail.gmail.com> <5330ACC3.2080209@gmail.com> <CALaySJLXc2jdvdeUc6X+ybrESJfVdSQbtg+yhJdwJYUH7GoH5w@mail.gmail.com>
In-Reply-To: <CALaySJLXc2jdvdeUc6X+ybrESJfVdSQbtg+yhJdwJYUH7GoH5w@mail.gmail.com>
X-Enigmail-Version: 1.6
Content-Type: multipart/alternative; boundary="------------070201070109020601020505"
Archived-At: http://mailarchive.ietf.org/arch/msg/jcardcal/mGGjJ_DTUlyZV15GjKbOauBTc7w
Cc: draft-ietf-jcardcal-jcal@tools.ietf.org, Pete Resnick <presnick@qti.qualcomm.com>, The IESG <iesg@ietf.org>, jcardcal-chairs@tools.ietf.org, "jcardcal@ietf.org" <jcardcal@ietf.org>
Subject: Re: [Jcardcal] Barry Leiba's Discuss on draft-ietf-jcardcal-jcal-09: (with DISCUSS and COMMENT)
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: Tue, 25 Mar 2014 21:32:06 -0000

On 3/24/14, 11:40 PM, Barry Leiba wrote:
>>> Of course, one could also ask why the same normative requirements are
>>> in both sections 3.1 and 4.  Shouldn't it be in one place only?
>> The excerpt in Section 3.1 speaks of the reverse process, which is of
>> course described in more detail in section 4. Its there for convenience
>> and to complement the former paragraph. I guess what we could do is move
>> that paragraph to Section 4 and just mention that the reverse process
>> works similarly, as further described in Section 4. Would you prefer that?
> I would prefer that, because I prefer to have information in one
> place, avoiding errors and confusion caused by imperfect duplication.
> But check with your responsible AD (Pete) for further instruction.
> You have certainly resolved all my DISCUSS issues.
>
> Barry
Hi Barry, Pete, all,

I have taken a look at this issue, here is my proposal to fix it:

First of all, the paragraphs in Section 3.1:

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 [RFC7159] Section 7, MUST be
   applied.  The reverse order applies when converting from jCal to
   iCalendar, which is further described in Section 4.
END

Then I looked into Section 4, I think it requires some additional words
in general. Here is what I changed:


OLD
   When converting component, property and property parameter values,
   the names SHOULD be converted to uppercase.  Although iCalendar names
   are case insensitive, common practice is to keep them all uppercase
   following the actual definitions in [RFC5545].
  
   Character escaping and line folding MUST be applied to the resulting
   iCalendar data as required by [RFC5545] and [RFC6868].
NEW
   Converting jCal to iCalendar reverses the process described in
   Section 3.  This section describes a few additional requirements for
   conversion.

   When converting component, property and property parameter names,
   they names SHOULD be converted to uppercase.  Although iCalendar
   names are case insensitive, common practice is to keep them all
   uppercase following the actual definitions in [RFC5545].

   During conversion, JSON escaping MUST be unescaped.  Afterwards,
   iCalendar escaping, as defined by [RFC5545] and [RFC6868] MUST be
   applied.  Finally, long lines SHOULD be folded as described in
   [RFC5545], Section 3.1.
END

Let me know what you think.
Philipp