Re: [xmpp] draft-ietf-xmpp-address
Bruce Campbell <b+jabber@bruce-2010.zerlargal.org> Wed, 07 July 2010 21:02 UTC
Return-Path: <b+jabber@bruce-2010.zerlargal.org>
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 329FE3A68EA for <xmpp@core3.amsl.com>; Wed, 7 Jul 2010 14:02:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.999
X-Spam-Level:
X-Spam-Status: No, score=-3.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, GB_I_LETTER=-2, J_CHICKENPOX_37=0.6]
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 lJryo64xxfkF for <xmpp@core3.amsl.com>; Wed, 7 Jul 2010 14:02:06 -0700 (PDT)
Received: from zularific.zerlargal.org (zularific.zerlargal.org [173.203.119.164]) by core3.amsl.com (Postfix) with ESMTP id 4BB203A6876 for <xmpp@ietf.org>; Wed, 7 Jul 2010 14:02:06 -0700 (PDT)
Received: from [127.0.0.1] (helo=mailrelay) by zularific.zerlargal.org with smtp (Exim 4.71) (envelope-from <b+jabber@bruce-2010.zerlargal.org>) id 1OWbkv-0007nw-6w; Wed, 07 Jul 2010 21:02:09 +0000
Received: from mailrelay by localhost; Wed, 7 Jul 2010 21:02:09 +0000
Received: from MUA by mailrelay; Wed, 7 Jul 2010 21:00:40 +0000
Date: Wed, 07 Jul 2010 14:00:38 -0700
From: Bruce Campbell <b+jabber@bruce-2010.zerlargal.org>
To: Peter Saint-Andre <stpeter@stpeter.im>
In-Reply-To: <4C33D36D.7000707@stpeter.im>
Message-ID: <alpine.CYG.2.00.1007071238080.5224@mhgneonet>
References: <B27ACCD0-2352-4068-9358-4FDA38E273E5@nostrum.com> <alpine.CYG.2.00.1006281708470.4220@mhgneonet> <4C33CB96.8080209@stpeter.im> <4C33D36D.7000707@stpeter.im>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"; format="flowed"
Cc: xmpp@ietf.org
Subject: Re: [xmpp] draft-ietf-xmpp-address
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, 07 Jul 2010 21:02:07 -0000
On Tue, 6 Jul 2010, Peter Saint-Andre wrote: > On 7/6/10 6:34 PM, Peter Saint-Andre wrote: >> On 6/29/10 11:47 AM, Bruce Campbell wrote: >> >>> Alternatively, the ABNF for the JID address draft could be brought into >>> alignment with 3986 by specifying: >> >>> 2.1. >>> domain = fqdn / IPv4address / IP-literal >>> ; the "IPv4address" and "IP-literal" rules are >>> ; defined in RFC3986. >> >>> which would result in domainpart allowing a bare IPv4 address ( >>> foo@1.2.3.4/bar ), and IPv6 and other literal addresses needing to be >>> enclosed in '[]' as per RFC3986 . >> >> Although I have never seen a domainpart consisting of an IPv6 address >> (and have rarely seen one consisting of an IPv4 address), I think it >> would be best to be consistent with RFC 3986 on this point. > > Looking at this more closely, I wonder if we could re-use the ihost > definition from RFC 3987. That would yield: > > jid = [ localpart "@" ] ihost [ "/" resource ] > ; the "ihost" rule is defined in RFC 3987 > > where: > > ihost = IP-literal / IPv4address / ireg-name > ireg-name = *( iunreserved / pct-encoded / sub-delims ) > iunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" / ucschar > ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF > / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD > / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD > / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD > / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD > / %xD0000-DFFFD / %xE1000-EFFFD > > and where the "IP-literal" and "IPv4address" rules are as in RFC 3896. > > This is a step in the right direction, because it appears (!) that the > ABNF in RFC 3920 doesn't allow anything but letter-digit-hyphen (i.e., > nothing outside the US-ASCII range). > > However, ireg-name isn't quite right either because some its aspects > (pct-encoded and sub-delims) are included for compabitility with URI > syntax, and we don't need those in native JIDs. > > Thus we could do this: > > jid = [ localpart "@" ] domainpart [ "/" resourcepart ] Do we need a comment about implementations identifying the localpart, domainpart and resourcepart portions before applying any transformations? A quick glance shows %x2215 (division slash) just lurking there for the implementer who applies ToASCII to the domainpart before picking out the resourcepart. > domainpart = IP-literal / IPv4address / ifqdn > ifqdn = 1*( iunreserved ) > ; the "iunreserved" rule is defined in RFC 3987 > > I'm not an ABNF guru, so feedback is welcome. Apart from personally disliking '~' and '_' in the domainpart, WFM. You may want to add an additional comment pointing people to IDNA2003 or IDNA2008 for rules regarding "ifqdn"/"domain name slot" when used on public networks, eg: ; the "iunreserved" rule is defined in RFC 3987 ; [IDNA-DEFS] defines additional rules for "ifqdn" if used on public ; networks; see "domain name slot" in that document. -- Bruce.
- Re: [xmpp] draft-ietf-xmpp-address Peter Saint-Andre
- [xmpp] draft-ietf-xmpp-address Ben Campbell
- Re: [xmpp] draft-ietf-xmpp-address Peter Saint-Andre
- Re: [xmpp] draft-ietf-xmpp-address Bruce Campbell
- Re: [xmpp] draft-ietf-xmpp-address Peter Saint-Andre
- Re: [xmpp] draft-ietf-xmpp-address Peter Saint-Andre
- Re: [xmpp] draft-ietf-xmpp-address Bruce Campbell
- Re: [xmpp] draft-ietf-xmpp-address Peter Saint-Andre
- Re: [xmpp] draft-ietf-xmpp-address Bruce Campbell
- Re: [xmpp] draft-ietf-xmpp-address Peter Saint-Andre
- Re: [xmpp] draft-ietf-xmpp-address Peter Saint-Andre