Re: [apps-discuss] Fwd: I-D Action: draft-yevstifeyev-ftp-uri-scheme-04.txt

Frank Ellermann <hmdmhdfmhdjmzdtjmzdtzktdkztdjz@gmail.com> Thu, 14 July 2011 23:44 UTC

Return-Path: <hmdmhdfmhdjmzdtjmzdtzktdkztdjz@gmail.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A3E6621F86DF for <apps-discuss@ietfa.amsl.com>; Thu, 14 Jul 2011 16:44:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.007
X-Spam-Level:
X-Spam-Status: No, score=-103.007 tagged_above=-999 required=5 tests=[AWL=0.092, BAYES_00=-2.599, FROM_LOCAL_NOVOWEL=0.5, RCVD_IN_DNSWL_LOW=-1, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wXnvcqVgCSiV for <apps-discuss@ietfa.amsl.com>; Thu, 14 Jul 2011 16:44:57 -0700 (PDT)
Received: from mail-pz0-f52.google.com (mail-pz0-f52.google.com [209.85.210.52]) by ietfa.amsl.com (Postfix) with ESMTP id AC31621F86DE for <apps-discuss@ietf.org>; Thu, 14 Jul 2011 16:44:57 -0700 (PDT)
Received: by pzd13 with SMTP id 13so1034210pzd.39 for <apps-discuss@ietf.org>; Thu, 14 Jul 2011 16:44:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=I3mE8pwH9sqBBQKimMhqnJ2NAI+VHS1PLLKQc3dG7AU=; b=NCRmAW+uyWKsPHu+E7SUAvHL3QzEHR5SaUEZ7ZbnAh+3JCqXHE4OEJY5BTmS6rOapC LkrMi10avy5HZqChlJrs4Ny6cWlceR3iYzPAS9wUjtWwx4CqLCxByytbhmIeX91ZqL6R ni2T2q0CfJ7FStb9vM6B5UjjK+oGLRJcJ5S4M=
Received: by 10.142.250.13 with SMTP id x13mr1247124wfh.9.1310687097291; Thu, 14 Jul 2011 16:44:57 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.142.88.9 with HTTP; Thu, 14 Jul 2011 16:44:37 -0700 (PDT)
In-Reply-To: <4E1E62AB.2070608@gmail.com>
References: <4E15C895.6020701@gmail.com> <4E1B3270.40601@gmail.com> <CAHhFybpG-eoLb0uQ-JR9k7r1-NUohihXWS+w4Vsznpx=zYbGYA@mail.gmail.com> <4E1E62AB.2070608@gmail.com>
From: Frank Ellermann <hmdmhdfmhdjmzdtjmzdtzktdkztdjz@gmail.com>
Date: Fri, 15 Jul 2011 01:44:37 +0200
Message-ID: <CAHhFyboH+EfdBzNTZtr9T9VNmUh6=psx2uBsS7Pc-HYmdWL65g@mail.gmail.com>
To: Mykyta Yevstifeyev <evnikita2@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Cc: Apps-discuss list <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] Fwd: I-D Action: draft-yevstifeyev-ftp-uri-scheme-04.txt
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Jul 2011 23:44:58 -0000

On 14 July 2011 05:29, Mykyta Yevstifeyev wrote:

> "@" is in <gen-delims>, so we can safely assume that it won't
> apper anywhere else except the authority non-percent-encoded.

Quoting RFC 3986 section 3.3, page 23:

 segment-nz-nc = 1*( unreserved / pct-encoded / sub-delims / "@" )
                   ; non-zero-length segment without any colon ":"

 pchar         = unreserved / pct-encoded / sub-delims / ":" / "@"


That allows an unencoded '@' in the <path>, not the '@' you are
interested in while trying to skip any <userinfo>@.

 query         = *( pchar / "/" / "?" )

Ditto, unencoded '@' in the <query> (section 3.4, page 24).

  fragment     = *( pchar / "/" / "?" )

Ditto, unencoded '@' in the <fragment> (section 3.5, page 24).


> it is also assumed that there will be no "@" chars before the
> "@" delimiting userinfo from host

ACK, all parts of the <authority> including odd beasts such as
a <reg-name> or <IPvFuture> do not permit unencoded '@' (apart
from the <userinfo>@ case).

> So, "@" will normally occur only 1 time, and won't occur in
> the <userinfo> itself, query or fragment identifier.

See above wrt <path>, <query>, and <fragment>.  I recall that
it took me more than a year to grok the fine print in STD 66.

-Frank