Re: [xmpp] <optional> and <required/>

Waqas Hussain <waqas20@gmail.com> Wed, 16 March 2011 08:15 UTC

Return-Path: <waqas20@gmail.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 3C6943A679C for <xmpp@core3.amsl.com>; Wed, 16 Mar 2011 01:15:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.524
X-Spam-Level:
X-Spam-Status: No, score=-3.524 tagged_above=-999 required=5 tests=[AWL=0.075, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9IMVXlLeqE-a for <xmpp@core3.amsl.com>; Wed, 16 Mar 2011 01:15:34 -0700 (PDT)
Received: from mail-yx0-f172.google.com (mail-yx0-f172.google.com [209.85.213.172]) by core3.amsl.com (Postfix) with ESMTP id 394363A6876 for <xmpp@ietf.org>; Wed, 16 Mar 2011 01:15:34 -0700 (PDT)
Received: by yxk30 with SMTP id 30so682914yxk.31 for <xmpp@ietf.org>; Wed, 16 Mar 2011 01:17:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=OutDy3d2z2KPmMc4yUYXcguo7lt2FgtYixgo/82wfgg=; b=MOW11l539coawmycKNQ+sUN3+w8Y8HO1Mha5cpshPZbYd47Lj8D2lGxYCRg5A5Sg8U CttZq1R/cdNkkGWpEr9eY7iI5zni24C5mXkKSSMoJSSBwA0GEOj+sFRpPBea5XQOTZ+6 1N/Y1uI2WcpL2BNCt0/09byeY2nM0jyvwuy2w=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=gYuTeUoXD8hkmnEH+nFi/SjHNyjMIJxlJo1x5rFQ+im6R4+pXgVz3uyCMKSadmewi8 ZgolJ6XmJjS/q2TaUw2AnlFFN1GJcsxCN1pERoWwshD1TsrbZtd+csdW5oLxOV0bHCu+ 6P4KAEGXO5Yzbk2MP+znbpD3gzvAJ7G6teU5E=
Received: by 10.150.93.9 with SMTP id q9mr1051179ybb.306.1300263420094; Wed, 16 Mar 2011 01:17:00 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.151.106.7 with HTTP; Wed, 16 Mar 2011 01:16:40 -0700 (PDT)
In-Reply-To: <4D8014EA.3060702@stpeter.im>
References: <1299638843.18776.76.camel@spinachia> <4D76EE02.2010807@stpeter.im> <AANLkTi=S7v4UjH+LVxUT_LaBR_20Jocye=pve41mS+UF@mail.gmail.com> <4D7FE877.8050505@stpeter.im> <4D8014EA.3060702@stpeter.im>
From: Waqas Hussain <waqas20@gmail.com>
Date: Wed, 16 Mar 2011 13:16:40 +0500
Message-ID: <AANLkTi=-Q-9CHFbKNxBdDe8tmtuZ10-bcZHdJ-h=1j0X@mail.gmail.com>
To: Peter Saint-Andre <stpeter@stpeter.im>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Cc: xmpp@ietf.org
Subject: Re: [xmpp] <optional> and <required/>
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 16 Mar 2011 08:15:35 -0000

On Wed, Mar 16, 2011 at 6:39 AM, Peter Saint-Andre <stpeter@stpeter.im> wrote:
> On 3/15/11 4:30 PM, Peter Saint-Andre wrote:
>> On 3/13/11 12:54 PM, Waqas Hussain wrote:
>>> On Wed, Mar 9, 2011 at 8:03 AM, Peter Saint-Andre <stpeter@stpeter.im> wrote:
>>>> On 3/8/11 7:47 PM, Kim Alvefur wrote:
>>>>> Hi!
>>>>>
>>>>> Just to point out that these sections[1][2] seems to conflict with this
>>>>> tread[3]. Otherwise, how does it make sense for roster versioning to be
>>>>> required?
>>>>>
>>>>> [1]: http://tools.ietf.org/html/draft-ietf-xmpp-3920bis-22#section-4.9.3.23
>>>>> [2]: http://tools.ietf.org/html/draft-ietf-xmpp-3921bis-20#section-2.6.1
>>>>> [3]: http://www.ietf.org/mail-archive/web/xmpp/current/msg01125.html
>>>>
>>>> There are two different topics here:
>>>>
>>>> 1. Whether any given feature is mandatory-to-negotiate or
>>>> voluntary-to-negotiate.
>>>>
>>>> 2. Whether to define a generalized mechanism for such signalling, which
>>>> would apply to all features.
>>>>
>>>> The mailing list post you've cited applies to #2. Section 2.6.1 of
>>>> 3921bis applies to #1.
>>>>
>>>> I see your point about the <unsupported-feature/> stream error: it might
>>>> not make much sense to define such an error condition if there is no
>>>> generalized mechanism for signalling that any given feature is
>>>> mandatory-to-negotiate...
>>>>
>>>> Peter
>>>>
>>>
>>> I think the <optional/> in 3921bis should go.
>>>
>>> 3921bis defines two stream features. Both are optional. One wants
>>> <optional/> inside, the other doesn't. I think this <optional/> is a
>>> leftover from when we tried having a generalized mechanism for
>>> required features, and the only purpose it serves in this instance is
>>> to add redundant inconsistency.
>>
>> You might be correct. I will look at this during AUTH48, i.e., right now.
>
> I've thought about this a bit more.
>
> I agree that the <optional/> element here (copied from XEP-0237) is an
> artifact of discussions ~12 months ago.
>
> I would also assert that the roster versioning stream feature is merely
> informative (as is true of the subscription pre-approval stream feature
> in section 3.4), and that it would never be mandatory-to-negotiate.
> Therefore I would prefer that we modify the text of Section 2.6.1 as
> follows:
>
>   If a server supports roster versioning, then it MUST advertise the
>   following stream feature during stream negotiation:
>
>      <ver xmlns='urn:xmpp:features:rosterver'/>
>
>   The roster versioning stream feature is merely informative and
>   therefore is never mandatory-to-negotiate.
>
> (The latter sentence is copied from Section 3.4.)
>
> Peter

Thanks, that's perfect.

--
Waqas Hussain