Re: [xmpp] 3921bis: probe + unavailable

Dave Cridland <dave@cridland.net> Thu, 28 January 2010 21:40 UTC

Return-Path: <dave@cridland.net>
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 BAA163A677C for <xmpp@core3.amsl.com>; Thu, 28 Jan 2010 13:40:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
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 ArRFO8xFKb8x for <xmpp@core3.amsl.com>; Thu, 28 Jan 2010 13:40:11 -0800 (PST)
Received: from peirce.dave.cridland.net (peirce.dave.cridland.net [217.155.137.61]) by core3.amsl.com (Postfix) with ESMTP id 5B4C63A6804 for <xmpp@ietf.org>; Thu, 28 Jan 2010 13:40:11 -0800 (PST)
Received: from localhost (localhost.localdomain [127.0.0.1]) by peirce.dave.cridland.net (Postfix) with ESMTP id 9788911680B8; Thu, 28 Jan 2010 21:40:28 +0000 (GMT)
X-Virus-Scanned: Debian amavisd-new at peirce.dave.cridland.net
Received: from peirce.dave.cridland.net ([127.0.0.1]) by localhost (peirce.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aH70zzx7we87; Thu, 28 Jan 2010 21:40:28 +0000 (GMT)
Received: from puncture (puncture.local [IPv6:2001:838:378:0:221:85ff:fe3f:1696]) by peirce.dave.cridland.net (Postfix) with ESMTPA id 488E611680B3; Thu, 28 Jan 2010 21:40:28 +0000 (GMT)
References: <4B6202CF.6070702@stpeter.im>
In-Reply-To: <4B6202CF.6070702@stpeter.im>
MIME-Version: 1.0
Message-Id: <14795.1264714828.295077@puncture>
Date: Thu, 28 Jan 2010 21:40:28 +0000
From: Dave Cridland <dave@cridland.net>
To: Peter Saint-Andre <stpeter@stpeter.im>, XMPP Working Group <xmpp@ietf.org>
Content-Type: text/plain; delsp="yes"; charset="us-ascii"; format="flowed"
Subject: Re: [xmpp] 3921bis: probe + unavailable
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: Thu, 28 Jan 2010 21:40:12 -0000

On Thu Jan 28 21:34:07 2010, Peter Saint-Andre wrote:
> a. My sense of existing implementations is that people would prefer  
> a
> definitive answer to the probe (i.e., <presence  
> type='unavailable'/>).
> Therefore I would like to change "SHOULD reply with unavailable but  
> MAY
> opt to not reply at all" to "MUST reply with unavailable".
> 
> 
I agree - I think it's a change that's sorely needed - but I'd note  
that this will render several servers no longer conformant. So a  
note's needed at minimum to explain that this didn't used to be a  
requirement, and clients (and servers) SHOULD cope with no response  
as meaning unavailable.

> b. Someone poked me offlist about a potential security issue here:  
> what
> if the probing user was blocked from receiving the contact's  
> presence at
> that time (e.g. via privacy lists)?

Right.

>    2.  Else, if the contact has no available resources, then the  
> server
>        MUST reply to the presence probe by sending to the user a
>        presence stanza of type "unavailable"; this presence stanza
>        SHOULD be empty but (subject to local security policies) MAY
>        include the full XML of the last unavailable presence stanza  
> that
>        the server received from the contact.

Replace SHOULD with "will typically be". You can't have SHOULD but  
MAY, I think, and it's not an interop requirement.

Also, you might stamp it with a delay, in which case it's not empty...

Dave.
-- 
Dave Cridland - mailto:dave@cridland.net - xmpp:dwd@dave.cridland.net
  - acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
  - http://dave.cridland.net/
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade