Re: [sipcore] WGLC: draft-ietf-sipcore-name-addr-guidance

Yehoshua Gev <yoshigev@gmail.com> Thu, 04 May 2017 18:22 UTC

Return-Path: <yoshigev@gmail.com>
X-Original-To: sipcore@ietfa.amsl.com
Delivered-To: sipcore@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BFB5C12940E for <sipcore@ietfa.amsl.com>; Thu, 4 May 2017 11:22:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.299
X-Spam-Level:
X-Spam-Status: No, score=-1.299 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 H-zq9uVTfJrQ for <sipcore@ietfa.amsl.com>; Thu, 4 May 2017 11:22:14 -0700 (PDT)
Received: from mail-vk0-x236.google.com (mail-vk0-x236.google.com [IPv6:2607:f8b0:400c:c05::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B72C81293EC for <sipcore@ietf.org>; Thu, 4 May 2017 11:22:13 -0700 (PDT)
Received: by mail-vk0-x236.google.com with SMTP id y190so13188204vkc.1 for <sipcore@ietf.org>; Thu, 04 May 2017 11:22:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=7v0gLkl7EJZ48YQnyWZA6EWItyCm5f8+zbWuxskECl4=; b=UkrrPjs1NuPn28xKyrLk1O2X+r4aVWZPqPaLX2VCV4UYSAqBU5veGDdVCpUz59FIgP Hrxaisxv342HDQUWgD2UejnFXR8veD7a9b9Gkm1mWqsHD2p7kPJfmdWV6bEwDcS4TRQh NtQdSy2GUiDjuOhJXl1/Gt3SJ8C7cIfpjmOuHeD/kq563VLgdpzmc6cIQhRSou3POqSk G0WCa6YMb0/06r0lp3bqn5uUVroMdo5kbAFYnosgiIJqC3GwQCTyYNXamRECVJR0I6mR auftAwiyJDxIB23xoNqIUn5fxpsyRPOiZMNDJIufE6TKhbiGjaXcjVKKJ79AtcKd8bq2 SBxg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=7v0gLkl7EJZ48YQnyWZA6EWItyCm5f8+zbWuxskECl4=; b=n2IUbuqQYCR0pz170g3/1VqHwPMGmJzwtGsCp0E5bqgJGbzU+T7+lTU+pqv8tKWvIN /shQQNPMEf/lUAzjI67cDYfvwMqeaOtp4Mo5RdyQ59nlqUR5DO5M9WzIfxOwAwO4a+M1 yaksRspnAgNO5o4hBIaosZRVSBvjQW+2M5SbUnQn6BiRrAL+hrKJ1PTsckKSk3mA6Eaw oEW0ikg0+weESaag2Ks/Z/AQYnjJwJ4DQsqqmmVozevXWyY8iV7ynOoV/4SDbDIDRDCF 75BA85QtUB3UzeKS7XEj9/NiLA0Beg8dSjUyUXVfqlsiSy05+d1FJoWRBUyPeB+HGCvG dfcg==
X-Gm-Message-State: AN3rC/6IRNhvbCb3QJ39fETG6pTUWN+pD9G9aFtYJexlliPOzpY8fU90 2wX01PqhMMsYQQ2KPfWsG0Hha5hOs2Mx
X-Received: by 10.31.133.135 with SMTP id h129mr17325127vkd.55.1493922132595; Thu, 04 May 2017 11:22:12 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.176.24.204 with HTTP; Thu, 4 May 2017 11:22:12 -0700 (PDT)
In-Reply-To: <da0e15e4-e9d6-4780-6e7d-33502db840f6@comcast.net>
References: <CAF_j7yae5+izSSkB7dK6+F5WJGBO=fFePRb9MqaBP3L=x8kzOw@mail.gmail.com> <87mvc3iym3.fsf@hobgoblin.ariadne.com> <CAF_j7yYz+68ps2-0vOMG6PQzFCb868h7V3beOVyaxe40MiHXgw@mail.gmail.com> <6c99cbac-212e-dbc0-5328-57222e8547b7@nostrum.com> <CAF_j7ybaeraC=MTbCekrXDoHZYuJcXoyMR14AfgVd_DsxaivKQ@mail.gmail.com> <a799edc2-8357-c775-2260-c96996a6df53@nostrum.com> <da0e15e4-e9d6-4780-6e7d-33502db840f6@comcast.net>
From: Yehoshua Gev <yoshigev@gmail.com>
Date: Thu, 04 May 2017 21:22:12 +0300
Message-ID: <CAF_j7yZ0kP7ZD9o3+bMOJzmsuqHDaSpWmaYTHJ=+tDtf_Wmx8w@mail.gmail.com>
To: sipcore <sipcore@ietf.org>
Content-Type: multipart/alternative; boundary="001a114123bc091950054eb6da71"
Archived-At: <https://mailarchive.ietf.org/arch/msg/sipcore/oEBzAAlJO-udWV2aY5esApckJA8>
Subject: Re: [sipcore] WGLC: draft-ietf-sipcore-name-addr-guidance
X-BeenThere: sipcore@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: SIP Core Working Group <sipcore.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sipcore>, <mailto:sipcore-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/sipcore/>
List-Post: <mailto:sipcore@ietf.org>
List-Help: <mailto:sipcore-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sipcore>, <mailto:sipcore-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 04 May 2017 18:22:17 -0000

Hi Robert,

Yes, this is exactly what I was looking for.
I think that in my previous mail I tried to propose a text with similar
meaning, but your suggestion is much more strightforward.
One bit (actually not a new problem) - The term "header-parameters" is
never really defined. In other places "XXX header parameter" is used, but
only when referencing specific header. IMHO this term clear enough, but
nevertheless I raise this point.

Thanks,
Yehoshua

On Tue, May 2, 2017 at 1:57 AM, Paul Kyzivat <paul.kyzivat@comcast.net>
wrote:

> Robert,
>
> Please see inline.
>
>
> On 5/1/17 3:22 PM, Robert Sparks wrote:
>
>> Hi Yehoshua -
>>
>> It was that last paragraph of the introduction to section 20 that I was
>> pointing to. The change made by this document doesn't take those
>> sentences away.
>>
>> I still don't agree that new normative text is the necessary (I actually
>> feel it's dangerous - it adds yet another opportunity for
>> misinterpretation).
>>
>> But I re-read the end of the introduction to section 20 with the changes
>> this document specifies applied to it, and I think I see an improvement
>> that might ease the discomfort you're feeling with it.
>>
>> Section 2 currently says this:
>>
>> 2. Updates to RFC3261
>>>
>>>    This text from the introduction to section 20 of [RFC3261]:
>>>
>>>      The Contact, From, and To header fields contain a URI.  If the URI
>>>      contains a comma, question mark or semicolon, the URI MUST be
>>>      enclosed in angle brackets (< and >).
>>>
>>>    is replaced with:
>>>
>>>      When constructing the value of any SIP header field whose grammar
>>>      allows choosing between name-addr and addr-spec, such as those
>>>      that use the form '(name-addr / addr-spec)', the "addr-spec" form
>>>      MUST NOT be used if its value would contain a comma, semicolon,
>>>      or question mark.
>>>
>>>      The header fields defined in this specification that allow this
>>>      choice are "To", "From", "Contact",  and "Reply-To".
>>>
>> We could change it to say this (being more explicit with what happens to
>> the rest of the paragraph being operated on).
>>
>> 2. Updates to RFC3261
>>>
>>>    This text from the introduction to section 20 of [RFC3261]:
>>>
>>>      The Contact, From, and To header fields contain a URI.  If the URI
>>>      contains a comma, question mark or semicolon, the URI MUST be
>>>      enclosed in angle brackets (< and >).  Any URI parameters are
>>>      contained within these brackets.  If the URI is not enclosed in
>>> angle
>>>      brackets, any semicolon-delimited parameters are header-parameters,
>>>      not URI parameters.
>>>
>>>
>>>    is replaced with:
>>>
>>>      When constructing the value of any SIP header field whose grammar
>>>      allows choosing between name-addr and addr-spec, such as those
>>>      that use the form '(name-addr / addr-spec)', the "addr-spec" form
>>>      MUST NOT be used if its value would contain a comma, semicolon,
>>>      or question mark.
>>>      When a URI appears in such a header field, any URI parameters are
>>>      contained within these brackets.  If the URI is not enclosed in
>>> angle
>>>      brackets, any semicolon-delimited parameters are header-parameters,
>>>      not URI parameters.
>>>      The header fields defined in this specification that allow this
>>>      choice are "To", "From", "Contact",  and "Reply-To".
>>>
>>
> What you are trying to do seems very good. But there is still trouble with
> the wording. The use of "these brackets" has no referent. How about this:
>
>    When a URI appears in such a header field, any URI parameters are
>    contained within angle brackets (< and >).  If the URI is not
>    enclosed in angle brackets, any semicolon-delimited parameters are
>    header-parameters, not URI parameters.
>
> (Or the first "are" above might be replaced by "MUST be".)
>
>         Thanks,
>         Paul
>
> Does that ease your concern?
>>
>> RjS
>>
>> On 4/18/17 2:42 AM, Yehoshua Gev wrote:
>>
>>> Hi Robert,
>>> Can you point me to the text on 3261 that has the disambiguation rule?
>>> I could only find it in the last paragraph of section 20, which only
>>> speaks about "Contact, From, and To".
>>> I believe the intention of this draft is to expand this paragraph to
>>> cover all other "problematic" headers,
>>> so it should also expand the disambiguation rule to the other headers.
>>> Thanks,
>>> Yehoshua
>>> On Fri, Apr 14, 2017 at 12:43 AM, Robert Sparks <rjsparks@nostrum.com
>>> <mailto:rjsparks@nostrum.com>> wrote:
>>>
>>>     Hi Yehoshua -
>>>
>>>     On 3/30/17 5:57 AM, Yehoshua Gev wrote:
>>>
>>>>     On Thu, Mar 30, 2017 at 12:04 AM, Dale R. Worley
>>>>     <worley@ariadne.com <mailto:worley@ariadne.com>> wrote:
>>>>
>>>>         Yehoshua Gev <yoshigev@gmail.com <mailto:yoshigev@gmail.com>>
>>>>
>>>>         writes: >> > The examples of: >> >    Refer-To:
>>>>         sip:123@host?Replaces=1111 >> >    Refer-To:
>>>>         sip:123@host;user=phone?Replaces=1111 > So, the interpreting
>>>>         the string "sip:123@host" as the addr-spec alone, > renders
>>>>         the > header non-parsable by the BNF of 3515. Yes... but if
>>>>         you're only considering the BNF, "sip:123@host?Replaces=1111"
>>>>         can be parsed as an addr-spec, so the header is valid (by the
>>>>         BNF alone).  (Actually, even "sip:123@host" can't be parsed
>>>>         as a name-addr, because it doesn't have "<...>".)
>>>>
>>>>     Ok. I see your point. So when parsing header like  "Refer-To:
>>>>     sip:123@host;user=phone", the BNF parser will give two possible
>>>>     interpretation, and the non-BNF restriction will rule out one of
>>>>     them. And for "Refer-To: sip:123@host?Replaces=1111", the BNF
>>>>     parser will give one possible interpretation, which will be ruled
>>>>     out by the restriction. I believe my first understanding was that
>>>>     the restriction is applied to addr-spec, disallowing it from
>>>>     having uri-parameters/headers. And if the restriction if applied
>>>>     after parsing the add-spec, prior to parsing the rest of the
>>>>     Refer-To header, it will make the header syntactically invalid.
>>>>     But I guess it's a philosophical question.
>>>>
>>>>
>>>>         > Given so, IMHO the disambiguation rule should be stated as
>>>>         a normative text. ... So, yes, the new disambiguation rule is
>>>>         stated as a normative text.
>>>>
>>>>     The normative text in the draft only considers the "construction"
>>>>     of the header,
>>>>     it doesn't handle parsing/interpretation of a "constructed" header.
>>>>     Specifically, a sentence like "If the URI is not enclosed in
>>>>     angle brackets,
>>>>     any semicolon-delimited parameters are header-parameters, not URI
>>>>     parameters" (from RFC 3261 section 20) is missing.
>>>>     I suggest adding a text like:
>>>>     "If the URI in such headers is not enclosed in angle brackets,
>>>>     any characters
>>>>     after a comma, a question mark, or a semicolon SHOULD NOT be
>>>>     parsed as
>>>>     part of the URI".
>>>>     Alternatively:
>>>>     "When a URI is part of addr-spec which is not part of name-addr,
>>>>     the addr-spec
>>>>     SHOULD NOT be parsed to include a comma, a question mark, or a
>>>>     semicolon".
>>>>
>>>     3261 does already say this. and there's no ambiguity to clear up -
>>>     we'd be restating it here, and restating things that are required
>>>     by a base specification is something we avoid.
>>>
>>>>     Thanks,
>>>>     Yehoshua
>>>>
>>>>     _______________________________________________
>>>>     sipcore mailing list
>>>>     sipcore@ietf.org <mailto:sipcore@ietf.org>
>>>>     https://www.ietf.org/mailman/listinfo/sipcore
>>>>     <https://www.ietf.org/mailman/listinfo/sipcore>
>>>>
>>>     _______________________________________________ sipcore mailing
>>>     list sipcore@ietf.org <mailto:sipcore@ietf.org>
>>>     https://www.ietf.org/mailman/listinfo/sipcore
>>>     <https://www.ietf.org/mailman/listinfo/sipcore>
>>>
>>>
>>
>> _______________________________________________
>> sipcore mailing list
>> sipcore@ietf.org
>> https://www.ietf.org/mailman/listinfo/sipcore
>>
>>
> _______________________________________________
> sipcore mailing list
> sipcore@ietf.org
> https://www.ietf.org/mailman/listinfo/sipcore
>