Re: [sipcore] WGLC: draft-ietf-sipcore-name-addr-guidance
Yehoshua Gev <yoshigev@gmail.com> Thu, 30 March 2017 10:57 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 931A31293F5 for <sipcore@ietfa.amsl.com>; Thu, 30 Mar 2017 03:57:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 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] 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 rncxR1_KH5Fk for <sipcore@ietfa.amsl.com>; Thu, 30 Mar 2017 03:57:15 -0700 (PDT)
Received: from mail-qk0-x22a.google.com (mail-qk0-x22a.google.com [IPv6:2607:f8b0:400d:c09::22a]) (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 8E3A7129471 for <sipcore@ietf.org>; Thu, 30 Mar 2017 03:57:15 -0700 (PDT)
Received: by mail-qk0-x22a.google.com with SMTP id p22so35957523qka.3 for <sipcore@ietf.org>; Thu, 30 Mar 2017 03:57:15 -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=ttsHzhrYQz9YwQbQ/92vmr8Av5f8nm4Sw60OuIRKD+M=; b=n9xUGatsfwz22+ozAqFQKS8gGS3lsugdVsh8rEa3iRCy33CZXRzrcVm5/oWRp3d9LL I8fygqEOo2O5uitgxFG3tGiX1XFvN0525oBDu7KUbZjcphabeHQ0G1OwHS+Bv/w/xaK/ SUN9YqsE1MInJmyFEgKVweK5D95s7aftPgfU2p6yEcL5ApbqePbo2mvY/MM81gVZpxx/ OKPB+HCMsq02XoBVCKxRzFMoA5lA2iCtryMI+YAyjt2jkYAKnMXkEr3FDDdbQImIRNrA 8MOTFYPV0s1Cb3qRgvXAgydoCnI65tYBwYYzQOc3CElO/HP2yebTELTjIOQGqVwMZEwR ELDw==
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=ttsHzhrYQz9YwQbQ/92vmr8Av5f8nm4Sw60OuIRKD+M=; b=ZxH1KFdHybdhpzbtZjY9xnXYc9Cd48zg51NaLsHPsuR614EiYWcf2xndlsfMQleBXI 5BIublT/Dax/iymkY0/2XWkr5vV/XXFtcYkAtsPkEzIRpXGG+mGdzyo43HBRy4PQ1jj/ Pb1PjtoJUFWymwoCSPTF4/VNb8r7Lnp9i3Qbxwpoik233G4g6+JAsHN6bfaFaE6ujL5Q OvetpZgljTJ6UG6jHYD9Xnk86yw1pfF7GjZdtzZZl+Dd/TW5JvxZt8rxsfKNuvR2KdMN dVfUsQhHt8uwo2Wbb2jWdkT1ZIpIY8S3ijj48Q4iuBtDGtwkk2+BNvYS+BZW+CkjF+sn 0QoA==
X-Gm-Message-State: AFeK/H3+9QiqUdMvdcIpn+dpnw5x2dZP7avARnEg7NxC90wGzwkILWwveDC+XCW8Au/PhytbrfWUyc8nVTJClg==
X-Received: by 10.55.165.11 with SMTP id o11mr5111430qke.193.1490871434741; Thu, 30 Mar 2017 03:57:14 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.12.150.171 with HTTP; Thu, 30 Mar 2017 03:57:14 -0700 (PDT)
In-Reply-To: <87mvc3iym3.fsf@hobgoblin.ariadne.com>
References: <CAF_j7yae5+izSSkB7dK6+F5WJGBO=fFePRb9MqaBP3L=x8kzOw@mail.gmail.com> <87mvc3iym3.fsf@hobgoblin.ariadne.com>
From: Yehoshua Gev <yoshigev@gmail.com>
Date: Thu, 30 Mar 2017 13:57:14 +0300
Message-ID: <CAF_j7yYz+68ps2-0vOMG6PQzFCb868h7V3beOVyaxe40MiHXgw@mail.gmail.com>
To: "Dale R. Worley" <worley@ariadne.com>
Cc: sipcore <sipcore@ietf.org>
Content-Type: multipart/alternative; boundary="001a114d8fdc461039054bf08e17"
Archived-At: <https://mailarchive.ietf.org/arch/msg/sipcore/UrGfmi7OOBDlEQ0UIkyMeBST3X8>
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, 30 Mar 2017 10:57:18 -0000
On Thu, Mar 30, 2017 at 12:04 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 > > > 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". Thanks, Yehoshua
- 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