Re: [sipcore] WGLC: draft-ietf-sipcore-name-addr-guidance
Yehoshua Gev <yoshigev@gmail.com> Wed, 29 March 2017 09:05 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 E2DF3129698 for <sipcore@ietfa.amsl.com>; Wed, 29 Mar 2017 02:05:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.698
X-Spam-Level:
X-Spam-Status: No, score=-2.698 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, RCVD_IN_DNSWL_LOW=-0.7, 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=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 vD43DI3VFClu for <sipcore@ietfa.amsl.com>; Wed, 29 Mar 2017 02:05:26 -0700 (PDT)
Received: from mail-qk0-x22b.google.com (mail-qk0-x22b.google.com [IPv6:2607:f8b0:400d:c09::22b]) (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 88EF71293DA for <sipcore@ietf.org>; Wed, 29 Mar 2017 02:05:26 -0700 (PDT)
Received: by mail-qk0-x22b.google.com with SMTP id r142so7243274qke.2 for <sipcore@ietf.org>; Wed, 29 Mar 2017 02:05:26 -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 :cc; bh=rvxYnUZP2DNV+mjEkchA4Vf0yG5hGoiQIt8coyPyRDo=; b=i5cw1XX1wv9X3wLgsdEAfxDmz/tbzo5kSikKemZGqQvFP5EVfdnZrOuq2232j0YUCm GeJDLzQq6XBRgktTKwY3FSkvg0dBxt7w8gmZAnqPpgOY5odMQmpMUdRjwqX6l9+lzS6Y Ugc6LEw6XDobkoi0IbscYsORlFpWjgVLNHQc4PvzmV3c9rTAPw5sOgzHsfyo2Vlw59TG SIME/9aFAZbUEUc4P7/sEsYtkFkV4L01Hv+zdf/3UvV5LkbvQlJtXGTyMQ74zkEJQoyo LsOgvA2h6o0ZTPfDFGm5W9y/ttp6Gn9nQ5KmHDVrSgXPkTHjmLF02FT/UuP7bsEH4FGf k3RQ==
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:cc; bh=rvxYnUZP2DNV+mjEkchA4Vf0yG5hGoiQIt8coyPyRDo=; b=iGEoz5rzn/7qw00K7EHOIT4L4Z8mmpQLLiKJtjH2pvKbURdNmncTbSl0tRqaspFB8q vWdRRwnvyaPYRoN3OsRIoqRJ3B1zPFVwGWtTAVXr2gYdJpZxd6k+msc2ZQ4/0Bpuzv9G TmUbz3Di9ESvyxxXP3HEECxhDop1z7rg6LuPeUp2LJrvR4u1WR3nvKR+CoR4ZKsybZUj T0zGZv+WREQAONyg1f2DqtEDIS4Vn2vaq3QFy9u7uxVEuiAfIX3/uM2ECeLo2iORJa1h 4YsW2qZuaVtYyuEr8IPsXC0vOafqVNkE3T6F1c7Tv+0RXHuSi40/rwBw0NHQwG7ES9gV TBuw==
X-Gm-Message-State: AFeK/H23Hswfwc64QzzUVXuCwzAaWhcrWmR/pB0aUTUYp3f4qi/BzQkulLzrRyPbvUqGuzjPF/ewWNBlXNSB+w==
X-Received: by 10.55.157.67 with SMTP id g64mr11816128qke.192.1490778325746; Wed, 29 Mar 2017 02:05:25 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.12.150.171 with HTTP; Wed, 29 Mar 2017 02:05:25 -0700 (PDT)
In-Reply-To: <877f38kigj.fsf@hobgoblin.ariadne.com>
References: <CAF_j7yYeRKCbg=4dOVozM5ocPoGWfaF6nFDoZE4tJcdz6xURCg@mail.gmail.com> <877f38kigj.fsf@hobgoblin.ariadne.com>
From: Yehoshua Gev <yoshigev@gmail.com>
Date: Wed, 29 Mar 2017 12:05:25 +0300
Message-ID: <CAF_j7yae5+izSSkB7dK6+F5WJGBO=fFePRb9MqaBP3L=x8kzOw@mail.gmail.com>
To: "Dale R. Worley" <worley@ariadne.com>
Cc: Robert Sparks <rjsparks@nostrum.com>, sipcore <sipcore@ietf.org>
Content-Type: multipart/alternative; boundary="94eb2c05626e8bb979054bdae0ef"
Archived-At: <https://mailarchive.ietf.org/arch/msg/sipcore/P7vd1xP_D2PmlbBiLFiXxcyFg7U>
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 09:05:29 -0000
On Wed, Mar 29, 2017 at 3:57 AM, Dale R. Worley <worley@ariadne.com> wrote: > 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 > > will all be syntactically invalid using the interpretation proposed by > the > > draft. > > I think this is ok and corresponds to my current understanding of RFC > 3261. > > > > However, in the above thread, it seemed to me that on first sight, both > Dale > > and Robert thought that those examples are valid. > > After the discussion there, I think (IIUC) they agreed that those are not > > valid. > > You have to be careful about the terminology. Within the context of > draft-ietf-sipcore-name-addr-guidance, there is the BNF, and then there > is an extra-BNF constraint. So what does the term "syntactically valid" > mean? In the context of parsing as it is used in computer programming > languages, "syntactic" is usually used only in regard to what is > expressed in BNF. So from that point of view, you could say that the > two examples are "syntactically valid" but that they are invalid > relative to the non-BNF restriction. > 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. Also, RFC 3261 section 20: 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. only has normative text regarding Contact, From, and To header fields. I didn't see similar normative text for other headers, so the text int the draft: "The characters after the comma, question mark, or semicolon would be interpreted..." is a new disambiguation rule (for other headers). Given so, IMHO the disambiguation rule should be stated as a normative text. Thanks, Yehoshua Gev
- Re: [sipcore] WGLC: draft-ietf-sipcore-name-addr-… Yehoshua Gev
- Re: [sipcore] WGLC: draft-ietf-sipcore-name-addr-… Robert Sparks
- [sipcore] WGLC: draft-ietf-sipcore-name-addr-guid… Adam Roach
- Re: [sipcore] WGLC: draft-ietf-sipcore-name-addr-… Dale R. Worley
- Re: [sipcore] WGLC: draft-ietf-sipcore-name-addr-… Robert Sparks
- Re: [sipcore] WGLC: draft-ietf-sipcore-name-addr-… Dale R. Worley
- Re: [sipcore] WGLC: draft-ietf-sipcore-name-addr-… Yehoshua Gev
- Re: [sipcore] WGLC: draft-ietf-sipcore-name-addr-… Dale R. Worley
- Re: [sipcore] WGLC: draft-ietf-sipcore-name-addr-… Yehoshua Gev
- Re: [sipcore] WGLC: draft-ietf-sipcore-name-addr-… Dale R. Worley
- Re: [sipcore] WGLC: draft-ietf-sipcore-name-addr-… Yehoshua Gev
- Re: [sipcore] WGLC: draft-ietf-sipcore-name-addr-… Robert Sparks
- Re: [sipcore] WGLC: draft-ietf-sipcore-name-addr-… Paul Kyzivat
- Re: [sipcore] WGLC: draft-ietf-sipcore-name-addr-… Yehoshua Gev