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

worley@ariadne.com (Dale R. Worley) Wed, 29 March 2017 21:04 UTC

Return-Path: <worley@alum.mit.edu>
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 8669D124217 for <sipcore@ietfa.amsl.com>; Wed, 29 Mar 2017 14:04:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.934
X-Spam-Level:
X-Spam-Status: No, score=-1.934 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_SOFTFAIL=0.665] autolearn=no autolearn_force=no
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 oJ4U8bZ4WFuC for <sipcore@ietfa.amsl.com>; Wed, 29 Mar 2017 14:04:08 -0700 (PDT)
Received: from resqmta-ch2-07v.sys.comcast.net (resqmta-ch2-07v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3D9AE12947E for <sipcore@ietf.org>; Wed, 29 Mar 2017 14:04:08 -0700 (PDT)
Received: from resomta-ch2-05v.sys.comcast.net ([69.252.207.101]) by resqmta-ch2-07v.sys.comcast.net with SMTP id tKkTc5RIQU9z5tKlDc4C9s; Wed, 29 Mar 2017 21:04:07 +0000
Received: from hobgoblin.ariadne.com ([24.60.114.4]) by resomta-ch2-05v.sys.comcast.net with SMTP id tKlBcDYp0xrGZtKlCcM98q; Wed, 29 Mar 2017 21:04:07 +0000
Received: from hobgoblin.ariadne.com (hobgoblin.ariadne.com [127.0.0.1]) by hobgoblin.ariadne.com (8.14.7/8.14.7) with ESMTP id v2TL45L1016957; Wed, 29 Mar 2017 17:04:05 -0400
Received: (from worley@localhost) by hobgoblin.ariadne.com (8.14.7/8.14.7/Submit) id v2TL44Y9016954; Wed, 29 Mar 2017 17:04:04 -0400
X-Authentication-Warning: hobgoblin.ariadne.com: worley set sender to worley@alum.mit.edu using -f
From: worley@ariadne.com
To: Yehoshua Gev <yoshigev@gmail.com>
Cc: sipcore@ietf.org
In-Reply-To: <CAF_j7yae5+izSSkB7dK6+F5WJGBO=fFePRb9MqaBP3L=x8kzOw@mail.gmail.com> (yoshigev@gmail.com)
Sender: worley@ariadne.com
Date: Wed, 29 Mar 2017 17:04:04 -0400
Message-ID: <87mvc3iym3.fsf@hobgoblin.ariadne.com>
X-CMAE-Envelope: MS4wfBP86kjbX7BEgWhmMrgjRTSxo71s4ldHdG79vT0e0HX3pAYIj250ikVL1lJKPQif3KOa12RTSUts435h8+PzE0h4VasuG7ML10C24cPaQGCxWl5PdQjh mmni5fkjNiowPHwQKKS4ZgJrJCuqLkDHtnllor7xoD0COHNLxTBIbOak0XkZYlIkGYqLEbt53x5OBehQFJTsuXxNTPH6VwqB6HA=
Archived-At: <https://mailarchive.ietf.org/arch/msg/sipcore/xB2xHUwpKtrQKoUFKsKtOJNbAc4>
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: Wed, 29 Mar 2017 21:04:10 -0000

Yehoshua Gev <yoshigev@gmail.com> writes:
>> > The examples of:
>> >    Refer-To: sip:123@host?Replaces=1111
>> >    Refer-To: sip:123@host;user=phone?Replaces=1111

> I believe that the examples above are not valid according to the BNF -
> that of RFC 3515, not of 3261:
>       Refer-To = ("Refer-To" / "r") HCOLON ( name-addr / addr-spec ) *
>       (SEMI generic-param)
> This BNF does not allow for a question mark after the name-addr.
> 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 "<...>".)

> Given so, IMHO the disambiguation rule should be stated as a normative text.

Well, in section 2 of draft-ietf-sipcore-name-addr-guidance-00, it says:

   This text from the introduction to section 20 of [RFC3261]:
     ...
   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.
     ...

So, yes, the new disambiguation rule is stated as a normative text.

Dale