Re: [ftpext] New Version of FTP HASH, RANG, LOCK, and HOST

Alun Jones <alun@texis.com> Mon, 28 January 2013 17:00 UTC

Return-Path: <alun@texis.com>
X-Original-To: ftpext@ietfa.amsl.com
Delivered-To: ftpext@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E115521F89E9 for <ftpext@ietfa.amsl.com>; Mon, 28 Jan 2013 09:00:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001]
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 H9Bk-wKPAmSB for <ftpext@ietfa.amsl.com>; Mon, 28 Jan 2013 09:00:37 -0800 (PST)
Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) by ietfa.amsl.com (Postfix) with ESMTP id 94BF821F89C0 for <ftpext@ietf.org>; Mon, 28 Jan 2013 09:00:37 -0800 (PST)
Received: from [192.168.87.215] (74-202-210-82.static.twtelecom.net [74.202.210.82]) by mrelay.perfora.net (node=mrus4) with ESMTP (Nemesis) id 0LmKCI-1UYNXY3SwU-00ZqXB; Mon, 28 Jan 2013 12:00:34 -0500
MIME-Version: 1.0
From: Alun Jones <alun@texis.com>
Date: Mon, 28 Jan 2013 09:00:33 -0800
To: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Content-Type: multipart/alternative; boundary="_D9AE3774-E91C-20EE-DCBD-DF36707AD2B2_"
Message-Id: <0LmKCI-1UYNXY3SwU-00ZqXB@mrelay.perfora.net>
X-Provags-ID: V02:K0:cEgSrCmNl3zjmZLLM4WMP0nFOLxVei8intcJ9AU/K6P G+/xSUvI2ve/tv3MhsUdLvcUUVvNz1u+wqwHZeTagC2NWs7bOF 1BwgS7c0iBezSn54iTmx6qAaciGiqweBtO0qUeBcmurWvqU68S k5LLp0D0HtDp/SERWD5ipbV11ZN2d2eTMSgwmd1ZvmqNkdEJse zJsg0a/VTz1sFWI4spCquuIzQJ4CgvrHjsIAL0G1i0DlKjn9B/ 57XgQViRE+03rdl+R8QI/HDcvqCyHn4ajx8nZov/52cG9OQVo6 fnxiZTYdhULhu5r+SJOQh0lQr5tRRKyEo7U/iIh83l77ecNou5 Lc3mKrZh/mnsodfVLyW7F2pRhmVZmJoIm47JiQhvv
Cc: "ftpext@ietf.org" <ftpext@ietf.org>
Subject: Re: [ftpext] New Version of FTP HASH, RANG, LOCK, and HOST
X-BeenThere: ftpext@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: <ftpext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ftpext>, <mailto:ftpext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ftpext>
List-Post: <mailto:ftpext@ietf.org>
List-Help: <mailto:ftpext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ftpext>, <mailto:ftpext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 28 Jan 2013 17:00:39 -0000

Was there a reason not to simply use RANG without parameters? Or even 0 0 (which would mean no bytes to be transferred), if you insist that the command has to have two numbers.

-----Original Message-----
From: Tatsuhiro Tsujikawa
Sent: 1/28/2013 8:45 AM
To: Alun Jones
Cc: Anthony Bryan; ftpext@ietf.org
Subject: Re: [ftpext] New Version of FTP HASH, RANG, LOCK, and HOST

Hi,

On Mon, Jan 28, 2013 at 9:01 AM, Alun Jones <alun@texis.com> wrote:
> After reading the RANG spec, I note that there isn't anything to state what
> errors are given by RETR if the range specified is incorrect, or by STOR /
> APPE if the range specified starts more than one byte after the end of the
> existing file on the server (and therefore, presumably, incorrect?).
>
> I also think that a simple "RANG" on its own should serve to clear out the
> range on a request. "RANG 1 0" seems an arbitrary choice of numbers (why not
> "RANG 0 -1" or "RANG 0 Inf"?).
>

We discussed internally how to reset ranges set by RANG command.
First we said that "REST 0" resets ranges for RANG too. But, later we decided
not to use REST because in the future we can completely replace REST with RANG.
And we chose invalid range pattern, like "RANG 1 0"
to reset range since it is the obvious parser pattern and checking
range is very easy.
Yes, the numbers are arbitrary. We just chose them. But we avoided negative
numbers or non-digits because the range is inherently non-negative
numbers, we don't want
to make parser accept other than digits just for this.

Best regards,

Tatsuhiro Tsujikawa

> Alun.
> ~~~~
>
>> -----Original Message-----
>> From: ftpext-bounces@ietf.org [mailto:ftpext-bounces@ietf.org] On Behalf
>> Of Anthony Bryan
>> Sent: Sunday, January 20, 2013 9:01 AM
>> To: ftpext@ietf.org
>> Subject: [ftpext] New Version of FTP HASH, RANG, LOCK, and HOST
>>
>> we updated the FTP HASH, RANG, and LOCK drafts, while the authors of
>> HOST have updated their (hopefully final, get any comments or reviews in
>> ASAP) draft.
>>
>> we are mostly interested in finishing up HASH & RANG, but also feel free
> to
>> comment on LOCK. fancy diffs are available. HASH, RANG, & LOCK changes
>> are all editorial or just updating the draft.
>>
>>
>> HASH FTP command to be used by clients to request cryptographic hashes of
>> files.
>> http://tools.ietf.org/html/draft-bryan-ftpext-hash
>>
>>
>> RANG command to be used by clients to designate a start and end point to
>> permit restarts and repairs of interrupted data transfers in STREAM mode.
>> http://tools.ietf.org/html/draft-bryan-ftp-range
>>
>>
>> LOCK command to be used by clients to request the server to use the
> control
>> connection for data transfers, using a single port instead of two.
>> http://tools.ietf.org/html/draft-bryan-ftp-lock
>>
>>
>> also, HOST has been updated:
>>
>> FTP command that provides a mechanism for FTP clients and servers to
>> identify individual virtual hosts on an FTP server.
>>
>> http://datatracker.ietf.org/doc/draft-hethmon-mcmurray-ftpext-ftp-hosts/
>> http://tools.ietf.org/html/draft-hethmon-mcmurray-ftpext-ftp-hosts (diffs)
>>
>> --
>> (( Anthony Bryan ... Metalink [ http://www.metalinker.org ]
>>   )) Easier, More Reliable, Self Healing Downloads
>> _______________________________________________
>> ftpext mailing list
>> ftpext@ietf.org
>> https://www.ietf.org/mailman/listinfo/ftpext
>
> _______________________________________________
> ftpext mailing list
> ftpext@ietf.org
> https://www.ietf.org/mailman/listinfo/ftpext